diff options
Diffstat (limited to 'tex/context/base/mkiv/typo-dha.lua')
-rw-r--r-- | tex/context/base/mkiv/typo-dha.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/typo-dha.lua b/tex/context/base/mkiv/typo-dha.lua index bdba20878..a32f72e46 100644 --- a/tex/context/base/mkiv/typo-dha.lua +++ b/tex/context/base/mkiv/typo-dha.lua @@ -58,6 +58,7 @@ local getlist = nuts.getlist local getfield = nuts.getfield local getattr = nuts.getattr local getprop = nuts.getprop +local getdir = nuts.getdir local isglyph = nuts.isglyph -- or ischar local setfield = nuts.setfield @@ -312,7 +313,7 @@ local function process(start) elseif id == kern_code then setprop(current,"direction",'k') elseif id == dir_code then - local dir = getfield(current,"dir") + local dir = getdir(current) if dir == "+TRT" then autodir = -1 elseif dir == "+TLT" then @@ -329,7 +330,7 @@ local function process(start) textdir = autodir setprop(current,"direction",true) elseif id == localpar_code then - local dir = getfield(current,"dir") + local dir = getdir(current) if dir == 'TRT' then autodir = -1 elseif dir == 'TLT' then |