soimort / translate-shell

:speech_balloon: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc.
https://www.soimort.org/translate-shell
The Unlicense
6.85k stars 388 forks source link

Add HTML output mode to trans for integration with scripts #410

Open MurzNN opened 3 years ago

MurzNN commented 3 years ago

At now trans have console-friendly formatting and colors. But very often we integrate trans to scrips, so will be good to have HTML mode for output format, instead of formatted as plain text. Is this hard to implement?

soimort commented 2 years ago

Sounds good to me:+1:

Currently trans formats the output text with ANSI escape codes only, but it's definitely possible to make those configurable with HTML opening/closing tags.