diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-10-02 23:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-10-02 23:15:04 +0200 |
commit | b7b69c20fae6b104e134dae90ac34a35221b82ed (patch) | |
tree | 65bc6bec2c952cf4f8569d772ef4ab6297aa8597 /tex/context/base/typo-dig.lua | |
parent | 88d3592cd343756d65898179a0fbae66d6418112 (diff) | |
download | context-b7b69c20fae6b104e134dae90ac34a35221b82ed.tar.gz |
2014-10-02 23:09:00
Diffstat (limited to 'tex/context/base/typo-dig.lua')
-rw-r--r-- | tex/context/base/typo-dig.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/typo-dig.lua b/tex/context/base/typo-dig.lua index 67849c6d4..f5b8a6ddd 100644 --- a/tex/context/base/typo-dig.lua +++ b/tex/context/base/typo-dig.lua @@ -103,15 +103,14 @@ end actions[1] = function(head,start,attr) local font = getfont(start) local char = getchar(start) - local unic = chardata[font][char].tounicode - local what = unic and tonumber(unic,16) or char - if charbase[what].category == "nd" then + local unic = chardata[font][char].unicode or char + if charbase[unic].category == "nd" then -- ignore unic tables local oldwidth = getfield(start,"width") local newwidth = getdigitwidth(font) if newwidth ~= oldwidth then if trace_digits then report_digits("digit trigger %a, instance %a, char %C, unicode %U, delta %s", - attr%100,div(attr,100),char,what,newwidth-oldwidth) + attr%100,div(attr,100),char,unic,newwidth-oldwidth) end head, start = nodes.aligned(head,start,start,newwidth,"middle") return head, start, true |