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 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 |