[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Automatically use Armenian uppercasing for Armenian text (bf770ca)
Marcel Fabian Krüger
tex at 2krueger.de
Tue May 3 20:11:29 CEST 2022
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/bf770cac1bb9744bdecdbcf10b0eae0c09132acd
>---------------------------------------------------------------
commit bf770cac1bb9744bdecdbcf10b0eae0c09132acd
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Tue May 3 20:10:52 2022 +0200
Automatically use Armenian uppercasing for Armenian text
>---------------------------------------------------------------
bf770cac1bb9744bdecdbcf10b0eae0c09132acd
src/luaotfload-case.lua | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/luaotfload-case.lua b/src/luaotfload-case.lua
index 578e6be..f5a1473 100644
--- a/src/luaotfload-case.lua
+++ b/src/luaotfload-case.lua
@@ -120,7 +120,12 @@ local function font_lang(feature)
local lang = features[feature]
if type(lang) ~= 'string' or lang == 'auto' then
lang = features.language
- lang = lang == 'lth' and 'lt' or lang == 'trk' and 'tr' or lang == 'aze' and 'az' or (lang == 'ell' or lang == 'pgr') and 'el' or false
+ lang = lang == 'lth' and 'lt'
+ or lang == 'trk' and 'tr'
+ or lang == 'aze' and 'az'
+ or lang == 'hye' and 'hy'
+ or (lang == 'ell' or lang == 'pgr') and 'el'
+ or false
end
t[fid] = lang
return lang
More information about the latex3-commits
mailing list.