summaryrefslogtreecommitdiff
path: root/tex/generic
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-10-29 19:40:10 +0300
committerMarius <mariausol@gmail.com>2010-10-29 19:40:10 +0300
commitb8fc800cde67f29f4724b642d87278f864ec2d58 (patch)
tree8f18fe23caa67ee267782f0f7421623de00c26a0 /tex/generic
parent42c4d16ce1daa37425d12be6c87d6f64a72b5094 (diff)
downloadcontext-b8fc800cde67f29f4724b642d87278f864ec2d58.tar.gz
beta 2010.10.29 18:15
Diffstat (limited to 'tex/generic')
-rw-r--r--tex/generic/context/luatex-fonts-merged.lua20
1 files changed, 18 insertions, 2 deletions
diff --git a/tex/generic/context/luatex-fonts-merged.lua b/tex/generic/context/luatex-fonts-merged.lua
index 0cdeaeba6..6075ae6a1 100644
--- a/tex/generic/context/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : luatex-fonts-merged.lua
-- parent file : luatex-fonts.lua
--- merge date : 10/29/10 11:35:59
+-- merge date : 10/29/10 18:15:03
do -- begin closure to overcome local limits and interference
@@ -6614,6 +6614,7 @@ actions["prepare unicodes"] = function(data,filename,raw)
local criterium = fonts.privateoffset
local private = criterium
local glyphs = data.glyphs
+ -- todo: nofmultiples
for index, glyph in next, glyphs do
if index > 0 then
local name = glyph.name -- really needed ?
@@ -6633,7 +6634,22 @@ actions["prepare unicodes"] = function(data,filename,raw)
unicodes[name] = unicode
end
-- maybe deal with altuni here in the future but first we need
- -- to encounter a proper font that sets them
+ -- to encounter a proper font that sets them; we have to wait till
+ -- a next luatex binary as currently the unicode numbers can be out
+ -- of bounds
+ if false then
+ local altuni = glyph.altuni
+ if altuni then
+ local un = { unicodes[name] }
+ for i=1,#altuni do
+ local unicode = altuni[i].unicode
+ multiples[#multiples+1] = name
+ un[i+1] = unicode
+ indices[unicode] = index -- maybe check for duplicates
+ end
+ unicodes[name] = un
+ end
+ end
else
-- message that something is wrong
end