diff options
Diffstat (limited to 'tex/context/base/mkiv/scrp-eth.lua')
-rw-r--r-- | tex/context/base/mkiv/scrp-eth.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/scrp-eth.lua b/tex/context/base/mkiv/scrp-eth.lua index f6a994b88..f20d4b9f5 100644 --- a/tex/context/base/mkiv/scrp-eth.lua +++ b/tex/context/base/mkiv/scrp-eth.lua @@ -18,10 +18,10 @@ local getattr = nuts.getattr local nodecodes = nodes.nodecodes local glyph_code = nodecodes.glyph -local a_scriptstatus = attributes.private('scriptstatus') +local getscriptstatus = scripts.getstatus -local numbertocategory = scripts.numbertocategory local inserters = scripts.inserters +local colors = scripts.colors -- syllable [zerowidthspace] syllable -- syllable [zerowidthspace] word @@ -33,7 +33,6 @@ local inserters = scripts.inserters -- sentence [space] word -- sentence [space] sentence - local injectors = { -- [previous] [current] ethiopic_syllable = { ethiopic_syllable = inserters.zerowidthspace_before, @@ -52,6 +51,10 @@ local injectors = { -- [previous] [current] }, } +colors.ethiopic_syllable = "trace:1" +colors.ethiopic_word = "trace:2" +colors.ethiopic_sentence = "trace:3" + local function process(head,first,last) if first ~= last then local injector = false @@ -59,8 +62,7 @@ local function process(head,first,last) while current do local char, id = ischar(current) if char then - local scriptstatus = getattr(current,a_scriptstatus) - local category = numbertocategory[scriptstatus] + local category = getscriptstatus(current) if injector then local action = injector[category] if action then |