Skip to content

Commit

Permalink
Automatically use Armenian uppercasing for Armenian text
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed May 3, 2022
1 parent 26a0ae9 commit bf770ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/luaotfload-case.lua
Expand Up @@ -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
Expand Down

0 comments on commit bf770ca

Please sign in to comment.