diff options
Diffstat (limited to 'tex/context')
-rw-r--r-- | tex/context/third/transliterator/trans_tables_sr.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/third/transliterator/trans_tables_sr.lua b/tex/context/third/transliterator/trans_tables_sr.lua index 0fab540..5163035 100644 --- a/tex/context/third/transliterator/trans_tables_sr.lua +++ b/tex/context/third/transliterator/trans_tables_sr.lua @@ -179,7 +179,12 @@ local function sr (mode, text) _p_sr = t.serbian_exceptions[modestr .. "_hint"] + _p_sr end - local p_sr = Cs(_p_sre_i^-1 * (_p_macro + _p_sre + _p_sr + utfchar)^0) + local p_sr + if translit.sr_except then + p_sr = Cs(_p_sre_i^-1 * (_p_macro + _p_sre + _p_sr + utfchar)^0) + else + p_sr = Cs((_p_macro + _p_sr + utfchar)^0) + end return p_sr:match(text) end |