diff options
author | Philipp Gesang <megas.kapaneus@gmail.com> | 2011-08-28 15:33:12 +0200 |
---|---|---|
committer | Philipp Gesang <megas.kapaneus@gmail.com> | 2011-08-28 15:33:12 +0200 |
commit | 1c91f585a6d21a0967a306ab5e186b9cfb5509c6 (patch) | |
tree | dcc7637dd7c6452cd2a4b1bd4b28b4acdaac000d /scripts/context/lua | |
parent | 287b7ae51105b043c9714431bf642de7e34236b5 (diff) | |
parent | 2deaed21fc7da8fd14eb729818b90ffca0be2623 (diff) | |
download | transliterator-1c91f585a6d21a0967a306ab5e186b9cfb5509c6.tar.gz |
merge
Diffstat (limited to 'scripts/context/lua')
-rw-r--r-- | scripts/context/lua/mtx-transliterate.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/context/lua/mtx-transliterate.lua b/scripts/context/lua/mtx-transliterate.lua index 17150f3..a6e3968 100644 --- a/scripts/context/lua/mtx-transliterate.lua +++ b/scripts/context/lua/mtx-transliterate.lua @@ -45,7 +45,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 |