[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev, oberdiek-dev: Lowercase scripts (4b30604)

Marcel Fabian Krüger tex at 2krueger.de
Wed Dec 11 14:18:51 CET 2019


Repository : https://github.com/latex3/luaotfload
On branches: dev,oberdiek-dev
Link       : https://github.com/latex3/luaotfload/commit/4b30604f5fb697c81ec7c74acbede323e8ba4411

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

commit 4b30604f5fb697c81ec7c74acbede323e8ba4411
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Dec 11 13:56:26 2019 +0100

    Lowercase scripts


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

4b30604f5fb697c81ec7c74acbede323e8ba4411
 src/luaotfload-multiscript.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-multiscript.lua b/src/luaotfload-multiscript.lua
index 8a98b9b..b018aea 100644
--- a/src/luaotfload-multiscript.lua
+++ b/src/luaotfload-multiscript.lua
@@ -35,7 +35,7 @@ local function multirawset(table, key1, key2, value)
   return table
 end
 local script_extensions do
-  local entry = lpeg.Cg(codepoint_range * sep * lpeg.Ct((lpeg.C(lpeg.R'AZ' * lpeg.R'az'^1))^1 * ' ') * '#')^-1 * (1-lpeg.P'\n')^0 * '\n'
+  local entry = lpeg.Cg(codepoint_range * sep * lpeg.Ct((lpeg.C(lpeg.R'AZ' * lpeg.R'az'^1)/string.lower)^1 * ' ') * '#')^-1 * (1-lpeg.P'\n')^0 * '\n'
   local file = lpeg.Cf(
       lpeg.Ct''
     * entry^0
@@ -98,7 +98,7 @@ local script_mapping do
     Cuneiform = "Xsux", Yi = "Yiii", Zanabazar_Square = "Zanb",
     Inherited = "Zinh", Common = "Zyyy", Unknown = "Zzzz",
   }
-  local entry = lpeg.Cg(codepoint_range * sep * ((lpeg.R'AZ' + lpeg.R'az' + '_')^1/script_aliases))^-1 * (1-lpeg.P'\n')^0 * '\n'
+  local entry = lpeg.Cg(codepoint_range * sep * ((lpeg.R'AZ' + lpeg.R'az' + '_')^1/script_aliases/string.lower))^-1 * (1-lpeg.P'\n')^0 * '\n'
   -- local entry = lpeg.Cg(codepoint_range * sep * lpeg.Cc(true))^-1 * (1-lpeg.P'\n')^0 * '\n'
   local file = lpeg.Cf(
       lpeg.Ct''
@@ -156,7 +156,7 @@ function domultiscript(head, _, _, _, direction)
     end
     if last_fonts then
       local mapped_scr = script_mapping[cid]
-      if mapped_scr == "Zinh" then
+      if mapped_scr == "zinh" then
         mapped_scr = last_script
       else
         local additional_scr = script_extensions[cid]
@@ -172,7 +172,7 @@ function domultiscript(head, _, _, _, direction)
               end
             end
           end
-        elseif mapped_scr == "Zyyy" then
+        elseif mapped_scr == "zyyy" then
           mapped_scr = last_script
         end
       end





More information about the latex3-commits mailing list