diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-02-06 20:42:35 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2018-02-06 20:42:35 +0100 |
commit | 1687077b0a63417ad4dce58f6c869a6e115d9b72 (patch) | |
tree | ec1d4ac5ea55b732c13c12c0c0e67739afa93ef8 /tex/context/base/mkiv/font-ots.lua | |
parent | 7ce2f30f31421eb46d07ff65cbf9fcbda1d6612a (diff) | |
download | context-1687077b0a63417ad4dce58f6c869a6e115d9b72.tar.gz |
2018-02-06 18:19:00
Diffstat (limited to 'tex/context/base/mkiv/font-ots.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ots.lua | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots.lua index 75b99e999..faed8ec1e 100644 --- a/tex/context/base/mkiv/font-ots.lua +++ b/tex/context/base/mkiv/font-ots.lua @@ -2404,7 +2404,6 @@ local function handle_contextchain(head,start,dataset,sequence,contexts,rlmode,s local startchar = nofcontext == 1 or ischar(start,currentfont) -- only needed in a chain - for k=1,nofcontexts do -- does this disc mess work well with n > 1 local ck = contexts[k] @@ -3654,6 +3653,56 @@ local function pardirstate(start) return getnext(start), new, new end +-- -- some day we move to this: +-- +-- local function txtdirstate1(start,stack,top,rlparmode) +-- local dir, sub = getdirection(start) +-- local new +-- if sub then +-- if top == 1 then +-- top = 0 +-- new = rlparmode +-- elseif dir < 2 then +-- top = top - 1 +-- if stack[top] == 1 then +-- new = -1 +-- else +-- new = 1 +-- end +-- else +-- new = rlparmode +-- end +-- elseif dir == 1 then +-- top = top + 1 +-- stack[top] = 1 +-- new = -1 +-- elseif dir == 0 then +-- top = top + 1 +-- stack[top] = 0 +-- new = 1 +-- else +-- new = rlparmode +-- end +-- if trace_directions then +-- report_process("directions after txtdir %a: parmode %a, txtmode %a, level %a",dir,mref(rlparmode),mref(new),top) +-- end +-- return getnext(start), top, new +-- end +-- +-- local function pardirstate(start) +-- local dir = getdirection(start) +-- local new = 0 +-- if dir == 0 then +-- new = 1 +-- elseif dir == 1 then +-- new = -1 +-- end +-- if trace_directions then +-- report_process("directions after pardir %a: parmode %a",dir,mref(new)) +-- end +-- return getnext(start), new, new +-- end + otf.helpers = otf.helpers or { } otf.helpers.txtdirstate = txtdirstate otf.helpers.pardirstate = pardirstate |