diff options
Diffstat (limited to 'tex/context/base/lang-ini.lua')
-rw-r--r-- | tex/context/base/lang-ini.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/context/base/lang-ini.lua b/tex/context/base/lang-ini.lua index 507d59a9a..8744bff95 100644 --- a/tex/context/base/lang-ini.lua +++ b/tex/context/base/lang-ini.lua @@ -16,6 +16,7 @@ if not modules then modules = { } end modules ['lang-ini'] = { --~ lang:hyphenation(string) string = lang:hyphenation() lang:clear_hyphenation() +local type, tonumber = type, tonumber local utf = unicode.utf8 local utfbyte = utf.byte local format, gsub = string.format, string.gsub @@ -160,6 +161,10 @@ function languages.installed(separator) context(concat(table.sortedkeys(registered),separator or ",")) end +function languages.current(n) + return numbers[n and tonumber(n) or tex.language] +end + function languages.associate(tag,script,language) -- not yet used associated[tag] = { script, language } end |