diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2021-11-21 20:14:40 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2021-11-21 20:25:58 +0100 |
commit | a2b5961f647f1f9677d11fb5ebe7d1514fb6d1c6 (patch) | |
tree | 8a1df0491a7c33be76cbde269c934ca4493bf3ab /src | |
parent | 6569665a3ec236411285294b0c0a0d03d81b9020 (diff) | |
download | transliterator-master.tar.gz |
fix references to unicode apisHEADrelease_2021-2master
Where the hell is unicode.upper?
Diffstat (limited to 'src')
-rw-r--r-- | src/trans_tables_sr.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/trans_tables_sr.lua b/src/trans_tables_sr.lua index 4f549c5..92162df 100644 --- a/src/trans_tables_sr.lua +++ b/src/trans_tables_sr.lua @@ -130,7 +130,10 @@ if not translit.done_serbian then } local P = lpeg.P - local sub, upper = unicode.utf8.sub, unicode.utf8.upper + local utf8 = unicode and unicode.utf8 or utf or utf8 + local sub = utf8.sub + local toupper = lpeg.patterns.toupper + local upper = function (s) return lpegmatch (toupper, s) end local p_tocy, p_i_tocy, p_tolt, p_i_tolt |