summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-29 23:29:20 +0000
committerKarl Berry <karl@freefriends.org>2018-04-29 23:29:20 +0000
commitc5ecf8f48fcefe89049e257fe8f1dcd1e2180cf5 (patch)
tree1f79d99a0f97e98c4c2e01ea072b0db5b3023bed /Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
parentaf34251c41518c17dacd9d36c2902294a2491058 (diff)
babel (25apr18)
git-svn-id: svn://tug.org/texlive/trunk@47497 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua')
-rw-r--r--Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua14
1 files changed, 13 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua b/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
index f394eaafec3..ab455dc3d4c 100644
--- a/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
+++ b/Master/texmf-dist/tex/generic/babel/babel-bidi-basic-r.lua
@@ -50,7 +50,19 @@ local function dir_mark(head, from, to, outer)
node.insert_after(head, to, d)
end
-function Babel.pre_otfload(head)
+function Babel.pre_otfload_v(head)
+ -- head = Babel.numbers(head)
+ head = Babel.bidi(head, true)
+ return head
+end
+
+function Babel.pre_otfload_h(head)
+ -- head = Babel.numbers(head)
+ head = Babel.bidi(head, false)
+ return head
+end
+
+function Babel.bidi(head, ispar)
local first_n, last_n -- first and last char with nums
local last_es -- an auxiliary 'last' used with nums
local first_d, last_d -- first and last char in L/R block