summaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
parentebebb1a66fa7500ca1644a868d8378bccaf281ca (diff)
downloadtransliterator-2deaed21fc7da8fd14eb729818b90ffca0be2623.tar.gz
non-verbose script mode
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-transliterate.lua6
1 files changed, 5 insertions, 1 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