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

βŒˆβŒ‹ βŽ‡ branch:  PageTranslate


Artifact [913059dd4b]

Artifact 913059dd4bf8d11eb74f04ce5fb20f2e4d34e64f:

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

# encoding: utf-8
import translationbackends as tb, os
import pytest

def systran(params):
    print(params)
    t = tb.SysTran(**params)
    assert t.translate("Die Kuh schlΓ€ft. Der Frosch tanzt.") == "The cow is asleep. The frog is dancing."