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

⌈⌋ branch:  PageTranslate


Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

44 check-ins by user mario

2020-05-25
17:33
remove configfile stub Leaf check-in: 6d343a41cc user: mario tags: trunk
17:22
Remove some logging, fix setLevel on debug mode. Move config dialog into Language settings leave. Remove `crlf` in favour of `quick` mode. check-in: 10276ceb8e user: mario tags: trunk, 1.3
16:56
(no comment) check-in: 6eee08c41f user: mario tags: trunk
15:20
Fix missing settings(ctx), and apply crlf and debug options. check-in: 344007a58a user: mario tags: trunk
15:15
Use https:// for google translate right away check-in: 637033a4ef user: mario tags: trunk
15:15
Use registry instead of config file for storing settings. check-in: 238574ae6e user: mario tags: trunk
2020-05-24
19:04
Rename pagetranslate_opts to settings. Adapt registry leave, automate property name detection, safeguard against unknown control types (e.g. framebox), prepare transition to registry read/write (instead of config file). Simplify argparse() and self.params update. check-in: 23054650f3 user: mario tags: trunk
19:01
Add cli(), translate_python() providers, basic deepl_api(), and non-working deepl_web() implementation. check-in: 85d939b85a user: mario tags: trunk
18:59
Introduce more options (microsoft, mymemory, cli) check-in: 4232826ef2 user: mario tags: trunk
08:51
Extract via_* classes into pythonpath/translationbackends. As well as requests/http/urllib-fallback code into separate module. Apply new nodepath for ConfigurationUpdateAccess (but keep using .json config file for now). check-in: 9287fd7b5e user: mario tags: trunk, 1.2
08:48
Add dialog option for python-translate (deepl_web might be too difficult after all). Add schema.xcs in manifest.xml (So, that's why it never took effect! *surprised_pikachu_face*) check-in: 99cd577149 user: mario tags: trunk
08:46
v1.1 check-in: 985ee95169 user: mario tags: trunk, 1.1
2020-05-23
19:36
Introduce config file ~/.config/libreoffice/pagetranslate.json, rather than trying to figure out how to use LO configuration access and apply XCS. check-in: f8d5fa7518 user: mario tags: trunk
19:35
Use project repository url instead of mailto: check-in: 09db75c1a5 user: mario tags: trunk
19:35
Still doesn't apply in LO registry, no matter the package name. check-in: 139aa25ac9 user: mario tags: trunk
19:34
slightly move text box around check-in: 8c2dabc86f user: mario tags: trunk
14:05
Introduce pt_opts handler for settings window check-in: 748623aaf6 user: mario tags: trunk
09:37
move Addons.xcu out from excessively nested folder structure (serves no factual purpose AFAIK; prolly just a Javaism) prepare Makefile for pythonloader/ population. check-in: 90cf15335d user: mario tags: trunk
09:35
move license text to pkg-desc/ check-in: 3ab89c30c4 user: mario tags: trunk
09:34
Add basic OpenOffice options dialog registry, definition and schema. (Just decorative for now. Requires WindowEventHandler still to be of any use.) check-in: b7a0126051 user: mario tags: trunk
09:33
Introduce requests, restructure regex+http methods into classes to allow different translation backends (deepl), prepare for config settings. check-in: ebfff6744f user: mario tags: trunk
2020-05-08
19:48
Update note about Draw/Impress check-in: aed4ec98e1 user: mario tags: trunk
19:48
Unicode flags for languages in submenu check-in: 964ca1d35b user: mario tags: trunk
19:47
resized, lighter blue tones check-in: 092b994217 user: mario tags: trunk
19:47
version update before zip check-in: a11baf6627 user: mario tags: trunk
2020-05-06
17:08
Add preliminary support for Draw/Impress documents. Second toolbar button for translation to system language. check-in: c03c78cbb6 user: mario tags: trunk, 1.0
17:04
Addons.xcu image references require `vnd.sun.star.extension://vnd.include-once.pagetranslate/` instead of just `%origin%` to actually get picked up. Also, PNGs work just fine, no BMP required. Add secondary button to translate to system locale/language. check-in: b1775e90db user: mario tags: trunk
2020-05-04
13:52
Use gettempdir() for log file. check-in: 5611c1345a user: mario tags: trunk, 0.9
13:32
Restructure Addons.xcu to prepare for additional toolbar buttons. Fix =="auto" check. Wrap initial document checks into try/catch (for yet unsupported Draw docs). check-in: c436e44ae3 user: mario tags: trunk
2020-05-03
19:02
More langauge options in Extra> menu, explicit support for paragraph/system language targets; to unify option handling for textselection method. check-in: 4e60f20156 user: mario tags: trunk
14:53
Reenable cursor/selection mode (Tradutor trigger). Prepare binding to Draw documents. check-in: d4530cf627 user: mario tags: trunk
00:09
Crude table translation via Cell-wise .getText.getString/setString (which obviously strips all formatting/linebreaks) check-in: 4dba4de60d user: mario tags: trunk
2020-05-02
23:31
Introduce text splitting (paragraphs longer than 1900 characters); untested. check-in: dad79f3503 user: mario tags: trunk
23:03
Try to traverse TextTable cells (seemingly no compatible Enumerator interface for that) check-in: 4996dce9a8 user: mario tags: trunk
16:49
more renaming for OOo registration check-in: df208eb46c user: mario tags: trunk
16:24
More comments, add traceback.format_exc import check-in: 11b8a41e7b user: mario tags: trunk
16:19
Forgot rx_ for GTrans div extraction and paragraph splitting. check-in: bf4b991f21 user: mario tags: trunk
16:18
Introduce new trigger() main invocation point, add traverse() for TextContent/Paragraph traversal check-in: 092af6c3a3 user: mario tags: trunk
16:17
remove LanguageError exception check-in: 0dd762c2fc user: mario tags: trunk
16:16
Change urlopen code. Use regex for google translate extraction. check-in: b2ed2a9bc5 user: mario tags: trunk
16:15
dissable main trigger function, add some PMD comment check-in: 5746c98ed8 user: mario tags: trunk
16:08
Rename some meta references from Tradutor to pagetranslate check-in: 6e4fac5cff user: mario tags: trunk
16:03
Fork from TradutorLibreText 1.3.1 check-in: 99a69d8f82 user: mario tags: trunk
15:56
initial empty check-in check-in: 1e8b02394e user: mario tags: trunk