summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2021-11-21 20:14:40 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2021-11-21 20:25:58 +0100
commita2b5961f647f1f9677d11fb5ebe7d1514fb6d1c6 (patch)
tree8a1df0491a7c33be76cbde269c934ca4493bf3ab
parent6569665a3ec236411285294b0c0a0d03d81b9020 (diff)
downloadtransliterator-a2b5961f647f1f9677d11fb5ebe7d1514fb6d1c6.tar.gz
fix references to unicode apisHEADrelease_2021-2master
Where the hell is unicode.upper?
-rw-r--r--doc/transliterator.tex3
-rw-r--r--src/trans_tables_sr.lua5
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/transliterator.tex b/doc/transliterator.tex
index d8e392c..6491185 100644
--- a/doc/transliterator.tex
+++ b/doc/transliterator.tex
@@ -93,9 +93,10 @@
\setupalign [hanging,hz]
\usemodule[bib]
+\usemodule[bibl-tra]
\usemodule[transliterator]
-\setupcite[authoryear][compress=no]
+%\setupcite[authoryear][compress=no]
\setuppublications[%
alternative=apa,%
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