summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-brk.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-03-26 13:38:18 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-03-26 13:38:18 +0100
commit788487819ccf38a8478cc2afd88e0c0b088d0ec1 (patch)
tree215addbe3b9e293c2958227e7fc8923880b2e71f /tex/context/base/mkiv/typo-brk.lua
parentadfe72d5a0c9d7bdc1bd7bc8faabb4d05e21d70a (diff)
downloadcontext-788487819ccf38a8478cc2afd88e0c0b088d0ec1.tar.gz
2016-03-26 13:07:00
Diffstat (limited to 'tex/context/base/mkiv/typo-brk.lua')
-rw-r--r--tex/context/base/mkiv/typo-brk.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/typo-brk.lua b/tex/context/base/mkiv/typo-brk.lua
index 2f97f1869..9bccf91ea 100644
--- a/tex/context/base/mkiv/typo-brk.lua
+++ b/tex/context/base/mkiv/typo-brk.lua
@@ -29,11 +29,11 @@ local getnext = nuts.getnext
local getprev = nuts.getprev
local getboth = nuts.getboth
local getsubtype = nuts.getsubtype
-local getchar = nuts.getchar
local getfont = nuts.getfont
local getid = nuts.getid
local getfield = nuts.getfield
local getattr = nuts.getattr
+local isglyph = nuts.isglyph
local setfield = nuts.setfield
local setattr = nuts.setattr
@@ -209,8 +209,8 @@ function breakpoints.handler(head)
local map = nil
local current = nead
while current do
- local id = getid(current)
- if id == glyph_code then
+ local char, id = isglyph(current)
+ if char then
local a = getattr(current,a_breakpoints)
if a and a > 0 then
if a ~= attr then
@@ -223,7 +223,7 @@ function breakpoints.handler(head)
attr = a
end
if map then
- local cmap = map[getchar(current)]
+ local cmap = map[char]
if cmap then
-- for now we collect but when found ok we can move the handler here
-- although it saves nothing in terms of performance
@@ -291,9 +291,9 @@ function breakpoints.handler(head)
local cright = 0
local next = getnext(current)
while next and nright ~= cright do
- local id = getid(next)
- if id == glyph_code then
- if cright == 1 and cmap[getchar(next)] then
+ local char, id = isglyph(next)
+ if char then
+ if cright == 1 and cmap[char] then
-- let's not make it too messy
break
end