summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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