summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-08-30 09:30:06 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-08-30 09:30:06 +0200
commit2deaed21fc7da8fd14eb729818b90ffca0be2623 (patch)
tree59d5f08bf0a1fad218a756d41f774982688418ac
parentebebb1a66fa7500ca1644a868d8378bccaf281ca (diff)
downloadtransliterator-2deaed21fc7da8fd14eb729818b90ffca0be2623.tar.gz
non-verbose script mode
-rw-r--r--scripts/context/lua/mtx-transliterate.lua6
-rw-r--r--tex/context/third/transliterator/trans_tables_sr.lua1
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-transliterate.lua b/scripts/context/lua/mtx-transliterate.lua
index 10e4ad8..3188256 100644
--- a/scripts/context/lua/mtx-transliterate.lua
+++ b/scripts/context/lua/mtx-transliterate.lua
@@ -43,7 +43,11 @@ local application = logs.application {
scripts.transliterate.input = ea("s")
scripts.transliterate.out = function (sin, sout)
- io.write(string.format("\n“%s” -> “%s”\n", sin, sout))
+ if ea("silent") then
+ io.write(sout)
+ else
+ io.write(string.format("\n“%s” -> “%s”\n", sin, sout))
+ end
end
if scripts.transliterate.input then
diff --git a/tex/context/third/transliterator/trans_tables_sr.lua b/tex/context/third/transliterator/trans_tables_sr.lua
index 3f18be5..0371b75 100644
--- a/tex/context/third/transliterator/trans_tables_sr.lua
+++ b/tex/context/third/transliterator/trans_tables_sr.lua
@@ -153,7 +153,6 @@ if not translit.done_serbian then
end
end
- --local _p_hintchar = P"*" / ""
local _p_hintchar = P"*" / ""
local hintme = "dln"
local _p_tocy_hint, _p_tolt_hint