Package: tinycat
tinycatTiny Computer-Assisted translation tool. Created forendcoronavirus.org.Installationpip install tinycatExampleText you want to translate is indocument.txtfile:This is the first paragrapth.

This is the second paragraph. Paragraphs have multiple sentences.

This is the third paragraph.
This is still the third paragraphs.
Paragraphs are divided by empty lines.Run following command to generate translation from English to Polish:python3 -m tinycat.cli translate --input-file document.txt --patch-file patch.txt --lang-in english --lang-out polishGeneratedpatch.txt:----------------------------------------------------------------
This is the first paragrapth.

To jest pierwszy paragraf.
----------------------------------------------------------------

----------------------------------------------------------------
This is the second paragraph. Paragraphs have multiple sentences.

To jest drugi akapit. Akapity mają wiele zdań.
----------------------------------------------------------------

----------------------------------------------------------------
This is the third paragraph.
This is still the third paragraphs.
Paragraphs are divided by empty lines.

To jest trzeci akapit. To wciąż trzeci akapit. Akapity są podzielone pustymi wierszami.
----------------------------------------------------------------Modifypatch.txtand save it topatch_corrected.txt.
In this case we correctedparagraftoakapitin the first sentence, and in third paragraph put each sentence
in the new line for readability.Apply the patch using:python3 -m tinycat.cli update --patch-file patch_corrected.txt --dict-file en-pl.dictNow the text can be translated as following (note that we are passingen-pl.dict:python3 -m tinycat.cli translate --input-file document.txt --patch-file translated.txt --dict-file en-pl.dict --lang-in english --lang-out polishtranslated.txtfile does not contain any paragraphs to translate, as all the translations are taken fromen-pl.dictdictionary. Content oftranslated.txtis:To jest pierwszy akapit.

To jest drugi akapit. Akapity mają wiele zdań.

To jest trzeci akapit.
To wciąż trzeci akapit.
Akapity są podzielone pustymi wierszami.In the next step we modifydocument.txtto add new paragraph, and correct typo in first sentence:This is the first paragraph.

This is the second paragraph. Paragraphs have multiple sentences.

This is the third paragraph.
This is still the third paragraphs.
Paragraphs are divided by empty lines.

Final paragraph.Let's create new patch for human translator:python3 -m tinycat.cli translate --input-file document.txt --patch-file patch-2.txt --dict-file en-pl.dict --lang-in english --lang-out polishpatch-2.txtcontains new translations that has to be checked:----------------------------------------------------------------
This is the first paragraph.

To jest pierwszy akapit.
----------------------------------------------------------------

To jest drugi akapit. Akapity mają wiele zdań.

To jest trzeci akapit.
To wciąż trzeci akapit.
Akapity są podzielone pustymi wierszami.

----------------------------------------------------------------
Final paragraph.

Ostatni akapit.
----------------------------------------------------------------This time all is fine so we can apply this patch:python3 -m tinycat.cli update --patch-file patch-2.txt --dict-file en-pl.dictAnd see final translated text with (if we don't pass--patch-fileit will print to the console):python3 -m tinycat.cli translate --input-file document.txt --dict-file en-pl.dict --lang-in english --lang-out polishHelppython3 -m tinycat.cli translate --help
python3 -m tinycat.cli update --help