[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Pass numeric directions to fontloader (0e137f9)

Marcel Fabian Krüger tex at 2krueger.de
Mon Aug 24 16:52:15 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/0e137f97e168f0ad1fe4a488ded619aee5f41271

>---------------------------------------------------------------

commit 0e137f97e168f0ad1fe4a488ded619aee5f41271
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Mon Aug 24 16:52:15 2020 +0200

    Pass numeric directions to fontloader


>---------------------------------------------------------------

0e137f97e168f0ad1fe4a488ded619aee5f41271
 src/luaotfload-init.lua | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/luaotfload-init.lua b/src/luaotfload-init.lua
index d5923ba..1c16ec2 100644
--- a/src/luaotfload-init.lua
+++ b/src/luaotfload-init.lua
@@ -427,7 +427,9 @@ local init_post_install_callbacks = function ()
   local handler = luaotfload.fontloader.nodes.simple_font_handler
   local callback = function(head, groupcode, _, _, direction)
     if not direction then
-      direction = tex.get'textdir'
+      direction = tex.get'textdirection'
+    else
+      direction = direction == "TRT" and 1 or 0
     end
     multiscript(head, nil, nil, nil, direction)
     fallback(head, nil, nil, nil, direction)





More information about the latex3-commits mailing list.