summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-dir.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/typo-dir.lua')
-rw-r--r--tex/context/base/typo-dir.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/typo-dir.lua b/tex/context/base/typo-dir.lua
index 620862e85..13c0aec97 100644
--- a/tex/context/base/typo-dir.lua
+++ b/tex/context/base/typo-dir.lua
@@ -276,7 +276,7 @@ function directions.process(namespace,attribute,start) -- todo: make faster
end
end
elseif d == "l" or d == "en" then -- european number
- if autodir <= 0 then
+ if autodir <= 0 then -- could be option
force_auto_left_before()
end
elseif d == "r" or d == "al" then -- arabic number
@@ -285,9 +285,11 @@ function directions.process(namespace,attribute,start) -- todo: make faster
end
elseif d == "an" then -- arabic number
-- actually this is language dependent ...
- if autodir <= 0 then
---~ force_auto_right_before()
- force_auto_left_before()
+-- if autodir <= 0 then
+-- force_auto_left_before()
+-- end
+ if autodir >= 0 then
+ force_auto_right_before()
end
elseif d == "lro" then -- Left-to-Right Override -> right becomes left
if trace_directions then