summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-dua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/typo-dua.lua')
-rw-r--r--tex/context/base/mkiv/typo-dua.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/typo-dua.lua b/tex/context/base/mkiv/typo-dua.lua
index f31cd9d54..c4b359745 100644
--- a/tex/context/base/mkiv/typo-dua.lua
+++ b/tex/context/base/mkiv/typo-dua.lua
@@ -334,7 +334,7 @@ end
local function get_baselevel(head,list,size) -- todo: skip if first is object (or pass head and test for localpar)
local id = getid(head)
- if id == localpar_code then
+ if id == localpar_code and getsubtype(head) == 0 then
local direction = getdirection(head)
if direction == righttoleft_code or direction == "TRT" then -- for old times sake we we handle strings too
return 1, righttoleft_code, true
@@ -710,8 +710,8 @@ local function insert_dir_points(list,size)
begindir = righttoleft_code
enddir = righttoleft_code
else
- begindir = righttoleft_code
- enddir = righttoleft_code
+ begindir = lefttoright_code
+ enddir = lefttoright_code
end
for i=1,size do
local entry = list[i]
@@ -771,7 +771,7 @@ local function apply_to_list(list,size,head,pardir)
enddir = false
end
elseif begindir then
- if id == localpar_code then
+ if id == localpar_code and getsubtype(current) == 0 then
-- localpar should always be the 1st node
local d = new_direction(begindir)
setprop(d,"directions",true)