Update of "PageTranslate"
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Artifact ID: | 68bb5889b9cf1934c84a0444781d6499ac5e818c |
---|---|
Page Name: | PageTranslate |
Date: | 2020-05-09 18:29:19 |
Original User: | mario |
Mimetype: | text/x-markdown |
Parent: | 7460c10274af3b580f3bcac79af02afedf33e93c (diff) |
Next | aae3cb20f5ae074e48f5c8f8c46d08625df181c8 |
Content
OpenOffice/LibreOffice plugin to get whole pages translated.
- Iterates over paragraphs / text segments / and tables (with crude formatting retained)
- Utilizes Google translate.
- And is therefore rather slow.
(Writer freezes during process for long documents!) - Still allows for text-selection mode translation (from original extension), but does not honor status bar/paragraph language setting for now.
Test/Install
From LibreOffice extensions: https://extensions.libreoffice.org/extensions/pagetranslate
Or the development version β might not always work:
pagetranslate.oxt
(Previously broken because of subdirectory wrapping.)
Usage
- Hit the Tβπ¬π§ toolbar button to get entire document translated to English. Have some trust and patience for longer documents.
- The second button π΄ translates to the local/system language.
- Or select a paragraph, to get a partial translation.
- Alternatively pick a menu entry from Extras > PageTranslate.
- The βSystem lang entry refers to your OpenOffice/Desktop setting.
- Whereas β Paragraph locale respects the text language as set in the Writer status bar.
Caveats
Does not yet support anything but Writer documents. (Structure is entirely distinct for Draw/Impress).- The plugin is also likely to crash (won't affect Writer) when encountering complex documents (embedded drawings, Calc sheets, OLE elements, etc). It's only been tested with flow text and text tables.
- Generally there's a log file in /tmp.
Not sure if the toolbar icons work at all, or if that's a bug in the Linux version of LibreOffice.- For direct content.xml translations, there's an inconvenient tool in off/. (Each office document .odt/.odc is a zip file. Extract the content.xml, apply the script, then repackage the content.xml into the .odc)