summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ota.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-10-17 20:20:13 +0300
committerMarius <mariausol@gmail.com>2012-10-17 20:20:13 +0300
commit3d3b6af2a13fb57dd36377954669124ceac73b3d (patch)
tree07d6438c44c9ba2ab5cebabf0479092dcc56a63c /tex/context/base/font-ota.lua
parent25454333dc3c49ab6607696ad221d4f9de91e1ef (diff)
downloadcontext-3d3b6af2a13fb57dd36377954669124ceac73b3d.tar.gz
beta 2012.10.17 19:02
Diffstat (limited to 'tex/context/base/font-ota.lua')
-rw-r--r--tex/context/base/font-ota.lua25
1 files changed, 18 insertions, 7 deletions
diff --git a/tex/context/base/font-ota.lua b/tex/context/base/font-ota.lua
index 962f5d4d3..8262f983e 100644
--- a/tex/context/base/font-ota.lua
+++ b/tex/context/base/font-ota.lua
@@ -48,11 +48,22 @@ local registerotffeature = otffeatures.register
process features right.</p>
--ldx]]--
+analyzers.constants = {
+ init = 1,
+ medi = 2,
+ fina = 3,
+ isol = 4,
+ -- devanagari
+ rphf = 5,
+ half = 6,
+ pref = 7,
+ blwf = 8,
+ pstf = 9,
+}
+
-- todo: analyzers per script/lang, cross font, so we need an font id hash -> script
-- e.g. latin -> hyphenate, arab -> 1/2/3 analyze -- its own namespace
-local state = attributes.private('state')
-
function analyzers.setstate(head,font)
local useunicodemarks = analyzers.useunicodemarks
local tfmdata = fontdata[font]
@@ -234,11 +245,11 @@ local isol_fina_medi_init = {
-- syriac
- [0x0712] = true, [0x0713] = true, [0x0714] = true, [0x071A] = true,
- [0x071B] = true, [0x071C] = true, [0x071D] = true, [0x071F] = true,
- [0x0720] = true, [0x0721] = true, [0x0722] = true, [0x0723] = true,
- [0x0724] = true, [0x0725] = true, [0x0726] = true, [0x0727] = true,
- [0x0729] = true, [0x072B] = true,
+ [0x0712] = true, [0x0713] = true, [0x0714] = true, [0x071A] = true,
+ [0x071B] = true, [0x071C] = true, [0x071D] = true, [0x071F] = true,
+ [0x0720] = true, [0x0721] = true, [0x0722] = true, [0x0723] = true,
+ [0x0724] = true, [0x0725] = true, [0x0726] = true, [0x0727] = true,
+ [0x0729] = true, [0x072B] = true,
-- also