LibreOffice plugin to pipe whole Writer documents through Google Translate, that ought to keep most of the page formatting.

⌈⌋ ⎇ branch:  PageTranslate


Artifact [02174ff7fb]

Artifact 02174ff7fbe221b08efb55a45d7fbc0a624a5421:

  • File test/cli.py — part of check-in [00e5bb6299] at 2022-10-22 22:17:32 on branch trunk — compact via fixture (user: mario size: 148)

import translationbackends as tb

def tr(params):
    t = tb.CommandLine(cmd="echo -n -e {text}", **params)
    assert t.translate("Abc") == "Abc"