[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Pre lowercase script identifiers (e9dd9f7)

Marcel Fabian Krüger tex at 2krueger.de
Wed Feb 5 13:32:33 CET 2020


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

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

commit e9dd9f7b96dbca9c990bb32477d614dfc5122ed0
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Feb 5 01:14:12 2020 +0100

    Pre lowercase script identifiers


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

e9dd9f7b96dbca9c990bb32477d614dfc5122ed0
 src/luaotfload-multiscript.lua | 90 +++++++++++++++++++++---------------------
 1 file changed, 45 insertions(+), 45 deletions(-)

diff --git a/src/luaotfload-multiscript.lua b/src/luaotfload-multiscript.lua
index 6f67f5f..cf2b330 100644
--- a/src/luaotfload-multiscript.lua
+++ b/src/luaotfload-multiscript.lua
@@ -66,52 +66,52 @@ end
 local script_mapping do
   -- We could extract these from PropertyValueAliases.txt...
   local script_aliases = {
-    Adlam = "Adlm", Caucasian_Albanian = "Aghb", Ahom = "Ahom", Arabic = "Arab",
-    Imperial_Aramaic = "Armi", Armenian = "Armn", Avestan = "Avst",
-    Balinese = "Bali", Bamum = "Bamu", Bassa_Vah = "Bass", Batak = "Batk",
-    Bengali = "Beng", Bhaiksuki = "Bhks", Bopomofo = "Bopo", Brahmi = "Brah",
-    Braille = "Brai", Buginese = "Bugi", Buhid = "Buhd", Chakma = "Cakm",
-    Canadian_Aboriginal = "Cans", Carian = "Cari", Cham = "Cham",
-    Cherokee = "Cher", Coptic = "Copt", Cypriot = "Cprt", Cyrillic = "Cyrl",
-    Devanagari = "Deva", Dogra = "Dogr", Deseret = "Dsrt", Duployan = "Dupl",
-    Egyptian_Hieroglyphs = "Egyp", Elbasan = "Elba", Elymaic = "Elym",
-    Ethiopic = "Ethi", Georgian = "Geor", Glagolitic = "Glag",
-    Gunjala_Gondi = "Gong", Masaram_Gondi = "Gonm", Gothic = "Goth",
-    Grantha = "Gran", Greek = "Grek", Gujarati = "Gujr", Gurmukhi = "Guru",
-    Hangul = "Hang", Han = "Hani", Hanunoo = "Hano", Hatran = "Hatr",
-    Hebrew = "Hebr", Hiragana = "Hira", Anatolian_Hieroglyphs = "Hluw",
-    Pahawh_Hmong = "Hmng", Nyiakeng_Puachue_Hmong = "Hmnp",
-    Katakana_Or_Hiragana = "Hrkt", Old_Hungarian = "Hung", Old_Italic = "Ital",
-    Javanese = "Java", Kayah_Li = "Kali", Katakana = "Kana",
-    Kharoshthi = "Khar", Khmer = "Khmr", Khojki = "Khoj", Kannada = "Knda",
-    Kaithi = "Kthi", Tai_Tham = "Lana", Lao = "Laoo", Latin = "Latn",
-    Lepcha = "Lepc", Limbu = "Limb", Linear_A = "Lina", Linear_B = "Linb",
-    Lisu = "Lisu", Lycian = "Lyci", Lydian = "Lydi", Mahajani = "Mahj",
-    Makasar = "Maka", Mandaic = "Mand", Manichaean = "Mani", Marchen = "Marc",
-    Medefaidrin = "Medf", Mende_Kikakui = "Mend", Meroitic_Cursive = "Merc",
-    Meroitic_Hieroglyphs = "Mero", Malayalam = "Mlym", Modi = "Modi",
-    Mongolian = "Mong", Mro = "Mroo", Meetei_Mayek = "Mtei", Multani = "Mult",
-    Myanmar = "Mymr", Nandinagari = "Nand", Old_North_Arabian = "Narb",
-    Nabataean = "Nbat", Newa = "Newa", Nko = "Nkoo", Nushu = "Nshu",
-    Ogham = "Ogam", Ol_Chiki = "Olck", Old_Turkic = "Orkh", Oriya = "Orya",
-    Osage = "Osge", Osmanya = "Osma", Palmyrene = "Palm", Pau_Cin_Hau = "Pauc",
-    Old_Permic = "Perm", Phags_Pa = "Phag", Inscriptional_Pahlavi = "Phli",
-    Psalter_Pahlavi = "Phlp", Phoenician = "Phnx", Miao = "Plrd",
-    Inscriptional_Parthian = "Prti", Rejang = "Rjng", Hanifi_Rohingya = "Rohg",
-    Runic = "Runr", Samaritan = "Samr", Old_South_Arabian = "Sarb",
-    Saurashtra = "Saur", SignWriting = "Sgnw", Shavian = "Shaw",
-    Sharada = "Shrd", Siddham = "Sidd", Khudawadi = "Sind", Sinhala = "Sinh",
-    Sogdian = "Sogd", Old_Sogdian = "Sogo", Sora_Sompeng = "Sora",
-    Soyombo = "Soyo", Sundanese = "Sund", Syloti_Nagri = "Sylo",
-    Syriac = "Syrc", Tagbanwa = "Tagb", Takri = "Takr", Tai_Le = "Tale",
-    New_Tai_Lue = "Talu", Tamil = "Taml", Tangut = "Tang", Tai_Viet = "Tavt",
-    Telugu = "Telu", Tifinagh = "Tfng", Tagalog = "Tglg", Thaana = "Thaa",
-    Thai = "Thai", Tibetan = "Tibt", Tirhuta = "Tirh", Ugaritic = "Ugar",
-    Vai = "Vaii", Warang_Citi = "Wara", Wancho = "Wcho", Old_Persian = "Xpeo",
-    Cuneiform = "Xsux", Yi = "Yiii", Zanabazar_Square = "Zanb",
-    Inherited = "Zinh", Common = "Zyyy", Unknown = "Zzzz",
+    Adlam = "adlm", Caucasian_Albanian = "aghb", Ahom = "ahom", Arabic = "arab",
+    Imperial_Aramaic = "armi", Armenian = "armn", Avestan = "avst",
+    Balinese = "bali", Bamum = "bamu", Bassa_Vah = "bass", Batak = "batk",
+    Bengali = "beng", Bhaiksuki = "bhks", Bopomofo = "bopo", Brahmi = "brah",
+    Braille = "brai", Buginese = "bugi", Buhid = "buhd", Chakma = "cakm",
+    Canadian_Aboriginal = "cans", Carian = "cari", Cham = "cham",
+    Cherokee = "cher", Coptic = "copt", Cypriot = "cprt", Cyrillic = "cyrl",
+    Devanagari = "deva", Dogra = "dogr", Deseret = "dsrt", Duployan = "dupl",
+    Egyptian_Hieroglyphs = "egyp", Elbasan = "elba", Elymaic = "elym",
+    Ethiopic = "ethi", Georgian = "geor", Glagolitic = "glag",
+    Gunjala_Gondi = "gong", Masaram_Gondi = "gonm", Gothic = "goth",
+    Grantha = "gran", Greek = "grek", Gujarati = "gujr", Gurmukhi = "guru",
+    Hangul = "hang", Han = "hani", Hanunoo = "hano", Hatran = "hatr",
+    Hebrew = "hebr", Hiragana = "hira", Anatolian_Hieroglyphs = "hluw",
+    Pahawh_Hmong = "hmng", Nyiakeng_Puachue_Hmong = "hmnp",
+    Katakana_Or_Hiragana = "hrkt", Old_Hungarian = "hung", Old_Italic = "ital",
+    Javanese = "java", Kayah_Li = "kali", Katakana = "kana",
+    Kharoshthi = "khar", Khmer = "khmr", Khojki = "khoj", Kannada = "knda",
+    Kaithi = "kthi", Tai_Tham = "lana", Lao = "laoo", Latin = "latn",
+    Lepcha = "lepc", Limbu = "limb", Linear_A = "lina", Linear_B = "linb",
+    Lisu = "lisu", Lycian = "lyci", Lydian = "lydi", Mahajani = "mahj",
+    Makasar = "maka", Mandaic = "mand", Manichaean = "mani", Marchen = "marc",
+    Medefaidrin = "medf", Mende_Kikakui = "mend", Meroitic_Cursive = "merc",
+    Meroitic_Hieroglyphs = "mero", Malayalam = "mlym", Modi = "modi",
+    Mongolian = "mong", Mro = "mroo", Meetei_Mayek = "mtei", Multani = "mult",
+    Myanmar = "mymr", Nandinagari = "nand", Old_North_Arabian = "narb",
+    Nabataean = "nbat", Newa = "newa", Nko = "nkoo", Nushu = "nshu",
+    Ogham = "ogam", Ol_Chiki = "olck", Old_Turkic = "orkh", Oriya = "orya",
+    Osage = "osge", Osmanya = "osma", Palmyrene = "palm", Pau_Cin_Hau = "pauc",
+    Old_Permic = "perm", Phags_Pa = "phag", Inscriptional_Pahlavi = "phli",
+    Psalter_Pahlavi = "phlp", Phoenician = "phnx", Miao = "plrd",
+    Inscriptional_Parthian = "prti", Rejang = "rjng", Hanifi_Rohingya = "rohg",
+    Runic = "runr", Samaritan = "samr", Old_South_Arabian = "sarb",
+    Saurashtra = "saur", SignWriting = "sgnw", Shavian = "shaw",
+    Sharada = "shrd", Siddham = "sidd", Khudawadi = "sind", Sinhala = "sinh",
+    Sogdian = "sogd", Old_Sogdian = "sogo", Sora_Sompeng = "sora",
+    Soyombo = "soyo", Sundanese = "sund", Syloti_Nagri = "sylo",
+    Syriac = "syrc", Tagbanwa = "tagb", Takri = "takr", Tai_Le = "tale",
+    New_Tai_Lue = "talu", Tamil = "taml", Tangut = "tang", Tai_Viet = "tavt",
+    Telugu = "telu", Tifinagh = "tfng", Tagalog = "tglg", Thaana = "thaa",
+    Thai = "thai", Tibetan = "tibt", Tirhuta = "tirh", Ugaritic = "ugar",
+    Vai = "vaii", Warang_Citi = "wara", Wancho = "wcho", Old_Persian = "xpeo",
+    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/string.lower))^-1 * (1-lpeg.P'\n')^0 * '\n'
+  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.Cc(true))^-1 * (1-lpeg.P'\n')^0 * '\n'
   local file = lpeg.Cf(
       lpeg.Ct''





More information about the latex3-commits mailing list.