[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Move special case handling variants around (2b28136)

Marcel Fabian Krüger tex at 2krueger.de
Sun May 1 17:46:05 CEST 2022


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/2b28136edde8380ac19bb2436350c1e9769e1ca4

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

commit 2b28136edde8380ac19bb2436350c1e9769e1ca4
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun May 1 17:46:05 2022 +0200

    Move special case handling variants around


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

2b28136edde8380ac19bb2436350c1e9769e1ca4
 src/luaotfload-case.lua    | 6 +-----
 src/luaotfload-unicode.lua | 8 ++++++++
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/src/luaotfload-case.lua b/src/luaotfload-case.lua
index 5bbfbf6..828f8d4 100644
--- a/src/luaotfload-case.lua
+++ b/src/luaotfload-case.lua
@@ -35,13 +35,9 @@ local disc = node.id'disc'
 -- * Final_Sigma is never language dependent
 -- * Other contexts are always language dependent
 -- * The only languages with special mappings are Lithuanian (lt/"LTH "/lit), Turkish (tr/"TRK "/tur), and Azeri/Azerbaijani (az/"AZE "/aze)
+--   (Additionally we add special mappings for de-x-eszett, el, el-x-iota, hy which are not present in SpecialCasing.txt)
 ]]
 
--- Here we manipulate the uppercase table a bit to add the `de-alt` language using capital eszett.
-
-uppercase[0x00DF]['de-x-eszett'] = { _ = { 0x1E9E } }
-uppercase[0x00DF]['de-alt'] = uppercase[0x00DF]['de-x-eszett']
-
 local UPPER_MASK = 0x3FF
 local HAS_VOWEL = 0x200000
 local HAS_YPOGEGRAMMENI = 0x400000
diff --git a/src/luaotfload-unicode.lua b/src/luaotfload-unicode.lua
index 0b3846d..ae239a3 100644
--- a/src/luaotfload-unicode.lua
+++ b/src/luaotfload-unicode.lua
@@ -273,6 +273,14 @@ do
   cleanup(lowercase)
 end
 
+-- Here we manipulate the uppercase table a bit to add the `de-alt` language using capital eszett.
+uppercase[0x00DF]['de-x-eszett'] = { _ = { 0x1E9E } }
+uppercase[0x00DF]['de-alt'] = uppercase[0x00DF]['de-x-eszett']
+
+-- Special handling for Eastern Armenian based on Unicode document L2/20-143.
+-- TODO: Coordinate variant name with l3text
+uppercase[0x0587]['hy'] = { _ = { 0x0535, 0x054E } }
+
 return {
   casefold = casefold,
   alphnum_only = alphnum_only,





More information about the latex3-commits mailing list.