summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ota.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-04-13 10:40:15 +0300
committerMarius <mariausol@gmail.com>2011-04-13 10:40:15 +0300
commit930f95164ea82514ff24bf71c6baddd40a569766 (patch)
treeafb4207c4831a30390a0e2f2c76354dd583da27f /tex/context/base/font-ota.lua
parent2721c3d0c46d65ee01f935ddd959abdd53212377 (diff)
downloadcontext-930f95164ea82514ff24bf71c6baddd40a569766.tar.gz
beta 2011.04.13 09:23
Diffstat (limited to 'tex/context/base/font-ota.lua')
-rw-r--r--tex/context/base/font-ota.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/base/font-ota.lua b/tex/context/base/font-ota.lua
index cb41194ee..1bf736531 100644
--- a/tex/context/base/font-ota.lua
+++ b/tex/context/base/font-ota.lua
@@ -56,8 +56,6 @@ process features right.</p>
-- 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
--- an example analyzer (should move to font-ota.lua)
-
local state = attributes.private('state')
function analyzers.setstate(head,font)
@@ -165,7 +163,8 @@ registerotffeature {
methods.latn = analyzers.setstate
--- this info eventually will go into char-def
+-- this info eventually will go into char-def adn we will have a state
+-- table for generic then
local zwnj = 0x200C
local zwj = 0x200D
@@ -351,3 +350,7 @@ function methods.arab(head,font,attr) -- maybe make a special version with no tr
first, last = finish(first,last)
return head, done
end
+
+directives.register("otf.analyze.useunicodemarks",function(v)
+ analyzers.useunicodemarks = v
+end)