From 3c5a6e89ebe41cd1168188156b4148025d1afb60 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 10 May 2011 22:25:56 +0200 Subject: made serbian exceptions toggleable --- tex/context/third/transliterator/trans_tables_sr.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3