From b821116421f0d942052ad225f4ea62aef2696817 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 13 Jul 2020 17:21:34 +0200 Subject: 2020-07-13 16:31:00 --- tex/context/base/mkiv/font-sol.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tex/context/base/mkiv/font-sol.lua') diff --git a/tex/context/base/mkiv/font-sol.lua b/tex/context/base/mkiv/font-sol.lua index 2017afcb2..643080788 100644 --- a/tex/context/base/mkiv/font-sol.lua +++ b/tex/context/base/mkiv/font-sol.lua @@ -111,6 +111,8 @@ local whatsit_code = nodecodes.whatsit local fontkern_code = kerncodes.fontkern +local righttoleft_code = nodes.dirvalues.righttoleft + local userdefinedwhatsit_code = whatsitcodes.userdefined local nodeproperties = nodes.properties.data @@ -379,7 +381,7 @@ function splitters.split(head) -- best also pass the direction end end if r2l then - local dirnode = new_direction(righttoleft) -- brrr, we don't pop ... to be done (when used at all) + local dirnode = new_direction(righttoleft_code) -- brrr, we don't pop ... to be done (when used at all) setlink(dirnode,list) list = dirnode end @@ -434,13 +436,13 @@ function splitters.split(head) -- best also pass the direction flush() end local direction, pop = getdirection(current) - r2l = not pop and direction == righttoleft + r2l = not pop and direction == righttoleft_code elseif id == localpar_code and start_of_par(current) then if start then flush() -- very unlikely as this starts a paragraph end local direction = getdirection(current) - r2l = direction == righttoleft or direction == "TRT" -- for old times sake + r2l = direction == righttoleft_code else if start then flush() -- cgit v1.2.3