From b8fc800cde67f29f4724b642d87278f864ec2d58 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 29 Oct 2010 19:40:10 +0300 Subject: beta 2010.10.29 18:15 --- tex/generic/context/luatex-fonts-merged.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'tex/generic') 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 -- cgit v1.2.3