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

⌈⌋ ⎇ branch:  PageTranslate


Artifact [3883008149]

Artifact 3883008149d1a467853eccb5d42f167e225c3a94:

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

import translationbackends as tb

def run(params):
    params["from"] = "de"
    t = tb.LibreTranslate(**params)
    assert t.translate("rennen") == "run"