diff options
Diffstat (limited to 'scripts')
-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 |