diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-06 21:58:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-06 21:58:15 +0000 |
commit | 974640d66e61e81cb197ad96fdff7b08343e4c5a (patch) | |
tree | 2e1f75f32f312b7f24ba82b4590ae230bcd6f399 /Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua | |
parent | b4fa72e61230aca75f7f6fbf988821f71edfb6b2 (diff) |
context
git-svn-id: svn://tug.org/texlive/trunk@58167 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua b/Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua index f6a994b884b..f20d4b9f50b 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/scrp-eth.lua +++ b/Master/texmf-dist/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 |