summaryrefslogtreecommitdiff
path: root/tex/context/third
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-05-10 22:25:56 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-05-10 22:25:56 +0200
commit3c5a6e89ebe41cd1168188156b4148025d1afb60 (patch)
tree498c43d96d954f433d3eb568b5a1d03e6c40b783 /tex/context/third
parentc3fcd6a29999502c8c0e080c780c24284a754207 (diff)
downloadtransliterator-3c5a6e89ebe41cd1168188156b4148025d1afb60.tar.gz
made serbian exceptions toggleable
Diffstat (limited to 'tex/context/third')
-rw-r--r--tex/context/third/transliterator/trans_tables_sr.lua7
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