[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Case-insensitive matching of table names (589dab0)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Jan 25 18:53:38 CET 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/589dab0b269847853ffd94c6c83ecb3a2b90add9
>---------------------------------------------------------------
commit 589dab0b269847853ffd94c6c83ecb3a2b90add9
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Jan 25 18:53:38 2020 +0100
Case-insensitive matching of table names
>---------------------------------------------------------------
589dab0b269847853ffd94c6c83ecb3a2b90add9
src/luaotfload-colors.lua | 2 ++
src/luaotfload-fallback.lua | 2 ++
src/luaotfload-multiscript.lua | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index c93447c..41c6923 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -442,6 +442,8 @@ function luaotfload.add_colorscheme(name, colortable)
if fonts == nil then
fonts = name
name = #glyph_color_tables + 1
+ else
+ name = name:lower()
end
glyph_color_tables[name] = colortable
return name
diff --git a/src/luaotfload-fallback.lua b/src/luaotfload-fallback.lua
index 8449788..0ecf991 100644
--- a/src/luaotfload-fallback.lua
+++ b/src/luaotfload-fallback.lua
@@ -110,6 +110,8 @@ function luaotfload.add_fallback(name, fonts)
if fonts == nil then
fonts = name
name = #fallback_table_fontnames + 1
+ else
+ name = name:lower()
end
fallback_table_fontnames[name] = fonts
fallback_table[name] = nil
diff --git a/src/luaotfload-multiscript.lua b/src/luaotfload-multiscript.lua
index 864c56a..f9585d6 100644
--- a/src/luaotfload-multiscript.lua
+++ b/src/luaotfload-multiscript.lua
@@ -321,6 +321,8 @@ function luaotfload.add_multiscript(name, fonts)
if fonts == nil then
fonts = name
name = #additional_scripts_fonts + 1
+ else
+ name = name:lower()
end
additional_scripts_tables[name] = fonts
return name
More information about the latex3-commits
mailing list