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.

129 check-ins using file pythonpath/six.py version 0dfec0d1d4

2022-10-15
04:18
split BackendUtils from GoogleWeb, document API check-in: 204f7ec8ff user: mario tags: trunk
2022-10-14
23:43
Python2 compatibility (no super().__init__ with unohelper.Base), more lazy logging check-in: f694114c03 user: mario tags: trunk
21:37
implement local LibreTranslate check-in: 7afe9de861 user: mario tags: trunk
15:07
more pylint pleasing, update deep-translator bindings, add LibreTranslate (might have a builtin version) check-in: e816f87f6f user: mario tags: trunk
12:56
pylint whitespace etc. check-in: 1956886c24 user: mario tags: trunk
12:56
pylint fixes (whitespace), class-wise loggers, regex r"" strings check-in: eab7fe59b3 user: mario tags: trunk
12:55
more pylint, separate loggers, merge argparse into update_params(), bring back MessageBox, more %placeholder logging check-in: 0ca9b63a6b user: mario tags: trunk
2022-10-13
23:00
AOO/Python2 compatibility (unicode string and lambda: args), more pylint concessions check-in: 2cc29c419d user: mario tags: trunk
19:52
crude pylint fixes check-in: 93efedae5d user: mario tags: trunk
15:50
uniform log prefixes, enable functioning .insertTextContent() as fallback for comment.attach() check-in: 4e70849c1e user: mario tags: trunk
13:49
switch back to comment.attach() check-in: b8d169eb34 user: mario tags: trunk
13:34
move with_properties() to unocompat, simplify Annotation creation check-in: 5d2ae04725 user: mario tags: trunk
11:14
get eventListener buttons in options page working check-in: 5bf569cb63 user: mario tags: trunk
08:59
note new option and potential exception check-in: 148f8a2956 user: mario tags: trunk
08:35
doc --setup flag check-in: ca7d968d49 user: mario tags: trunk
08:34
Introduced --setup option check-in: d995967f72 user: mario tags: trunk
08:33
notes from 1.9.77 check-in: 3eff8fb9cb user: mario tags: trunk
08:33
Enable annotations for table cells. check-in: 6b0be26269 user: mario tags: trunk
08:27
add annotate option check-in: c05353ea1c user: mario tags: trunk
08:19
introduce comment-preservation of original text check-in: 6a653f14b2 user: mario tags: trunk
2022-08-08
21:17
break long titles, man page updates check-in: 887d7dac36 user: mario tags: trunk
2022-08-07
08:53
Add --help flag, restructure a bit check-in: e6b2149002 user: mario tags: trunk
05:28
fix --synonym.com, add --moby and --hippo check-in: 8d3456a4b7 user: mario tags: trunk
2022-01-01
22:24
readd proper icon url check-in: 287c5372dc user: mario tags: trunk
2021-12-30
02:18
Update documentation on new option. check-in: e2c879925e user: mario tags: trunk
02:10
Added pt-BR (Brazilian-Portuguese) menu entry check-in: a1aea47667 user: mario tags: trunk
02:07
Add `selectonly` mode as per user request. check-in: a80c65db71 user: mario tags: trunk
2021-09-16
14:59
Hurried fixes for --merriamwebster and --synonyms.com check-in: b0666af4c8 user: mario tags: trunk
2021-06-10
14:53
Change exception names, and use `LangSelection` for dialog (makes error more understandable). check-in: c62b11cb0e user: mario tags: trunk
14:52
Notes about ArgosTranslate, CLI alternative check-in: b1b7271886 user: mario tags: trunk
14:50
Move MessageBox() to unocompat (not actually used anymore, doesn't work in LO-dev-7.2 anyway), sys.excepthook doesn't suffice for dialog hookup. Add config btn_map{} for external tools from settings dialog. check-in: 3f945d5495 user: mario tags: trunk
2021-06-06
20:49
Simplify Argos backend, conclude that it only works with distro-LibreOffice check-in: c4b8a7b58b user: mario tags: trunk
15:28
Add ArgosTranslate (offline/python-based backend), albeit it probably can't be used within LO`s python runtime (blocking numpy.so loading) check-in: 5ea14334ba user: mario tags: trunk
2021-06-03
09:35
Add Systran backend (untested). check-in: f6fc8d0070 user: mario tags: trunk
2021-06-02
18:08
Release as 1.9 check-in: 46ae0fdcbc user: mario tags: trunk, 1.9
17:30
Remove sys.modules check, just import always check-in: 42900dac95 user: mario tags: trunk
17:27
Generalize langdetect into base class as `self.lang(text)` check-in: e233f76db8 user: mario tags: trunk
16:45
Disable ToggleDropdown, update dependencies check-in: c82a3fa68a user: mario tags: trunk
16:45
Adapt tooltips check-in: cd67c85797 user: mario tags: trunk
16:44
New error note check-in: 6cf288401b user: mario tags: trunk
16:44
Fix GogoleAjax to rejoin split up ssentences (from nested list). check-in: 7b8ef174e0 user: mario tags: trunk
2021-05-31
23:22
document config: options where used check-in: 83b827c27b user: mario tags: trunk
14:48
Add alternative "GoogleApis Ajax Translate" endpoint. check-in: e257d8dd7d user: mario tags: trunk
10:39
Add papago translator from D-T check-in: aeeab5bf1f user: mario tags: trunk
10:38
replace debug menu entry with "mri-debug" 🏴 action (to inspect whole document) check-in: 24fa22684d user: mario tags: trunk
10:37
Turn `cmd` into ComboBox, slightly move input positions (x/y=5/5 like other dialogs), and add flag icon bottom right. check-in: 0d6f99d9eb user: mario tags: trunk
2021-05-20
08:31
Can't believe this actually works: `OptionsPageURL:string=%origin%/*.xdl` is the magic incantation. @doc: https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=66473&p=295561&hilit=OptionsPageURL#p295561 check-in: 9f1b68fead user: mario tags: trunk
04:54
ToggleDropdownButton in toolbar; unclear how to craft popup/submenu Leaf check-in: 3f1b1c963c user: mario tags: dropdown
04:53
HTML entity for black flag, also doesn't display in OOhelp. check-in: ec9e4b3f08 user: mario tags: trunk
2021-05-17
16:04
Fix `True` typo check-in: fb9192bec6 user: mario tags: trunk
2021-05-16
17:38
Remove dispatch_dialog/create_dialog again in favour of plain .uno:OptionsTreeDialog menu link check-in: 0af806d815 user: mario tags: trunk
15:36
document 1.8 changes check-in: 642f764b0f user: mario tags: trunk
15:36
minor doc updates check-in: 5fcc712e48 user: mario tags: trunk
15:35
dispatch_dialog() is not working, and create_dialog() too much overhead for a working AWT window; abort. check-in: 4c9cb82bf1 user: mario tags: trunk
15:34
Split out .skip() test, and wrap regexen in rx. classs check-in: 7512074bcc user: mario tags: trunk
2021-05-15
16:27
Update notes on PONS and button config. check-in: 2bb2861a0a user: mario tags: trunk
16:26
Introduce 🏴 button configuration to change default language/behaviour. check-in: 57703cade1 user: mario tags: trunk
16:21
Transform OptionsPageURL= into code; switching to our dialog still non-functional. check-in: 93f1a54882 user: mario tags: trunk
05:42
Add PONS Text Translation backend. check-in: 4620700b36 user: mario tags: trunk
05:37
Minor documentation updates, yield errors for DeepL failures. check-in: ead6fe2706 user: mario tags: trunk, 1.8
2021-05-14
03:19
Simplified params["backend"] string instead of individual flags, shorten mapping and parameterization in deep_translator backend, abbreviate D-T and T-P in new config dialog, add DT duplicates, minor manual updates. check-in: c28be6ec87 user: mario tags: trunk
2021-05-13
15:41
Expand D-T backend hooks, abbreviate any ln-CT language specifier, document new backends. check-in: 293badd94c user: mario tags: trunk
05:28
support all 4 new Deep-Translate backends, still needs some rework to omit "auto" source language check-in: 7ad6ace92e user: mario tags: trunk
03:57
Split out/optionalize version tool, note on Shift+F1 debugging check-in: 390c402fd5 user: mario tags: trunk
03:56
Note on deep-translate cli usage. check-in: 1385072d3c user: mario tags: trunk
03:56
Add settings link in Tools→PageTranslate menu (albeit to general OO settings dialog, not PT leaf). check-in: 8d54c76a7b user: mario tags: trunk
03:55
Rework config dialog to use dropdown/listbox for selecting service. Change config schema, and uno control handling. check-in: 0790399062 user: mario tags: trunk
2021-05-12
20:31
Prepare DeepL free API (albeit probably broken), and deep-translate pacakge, also allow more shell-like placeholders for CLI usage and fix for Python 2.7 support. check-in: d8bb91403f user: mario tags: trunk, 1.7
20:30
Add bugreport link to exception dialog check-in: 069fe7a49b user: mario tags: trunk
05:02
mark as 1.6.90 check-in: f115d0bf81 user: mario tags: trunk
04:58
Disable ctx→desktop lookup (not needed anyway) check-in: 861791da97 user: mario tags: trunk
04:58
Fix html.unescape (overwritten with local var). Also might not be present across all Python versions, so add fallback. check-in: 4622c0cf56 user: mario tags: trunk
2021-03-04
15:08
dingonyms 0.5: minor fixes to params handlind, and method names check-in: da276907c6 user: mario tags: trunk
2021-03-03
21:30
Add --dictcc mode, rewritten parameter handling check-in: 0a323cc8e7 user: mario tags: trunk
2021-03-02
13:35
dingonyms: use f-strings, move title prints, standard markdown table for man page check-in: 7dcb8494b4 user: mario tags: trunk
2021-02-28
14:06
dingonyms: add --async and synonme_de backend check-in: 6dd5cbb278 user: mario tags: trunk
2021-02-27
17:47
dingonyms: add --reverso and language params, and --nh, --no-antonyms options. check-in: a48bf46e7e user: mario tags: trunk
13:41
added related/subproject: dingonyms check-in: 5894146f61 user: mario tags: trunk
2021-02-10
16:36
overwrite self.params["from"] on each init (becasue it's a class property) check-in: 5c19793b64 user: mario tags: trunk
16:35
Fix from="auto"/"select" from sticking around check-in: 891ce56de3 user: mario tags: trunk
2021-02-09
16:27
Use world map for new menu entry "From ➜ To 🗺<" check-in: 9b23b4db86 user: mario tags: trunk
16:26
More error notes and changed MyMemory behaviour. check-in: 76510a454a user: mario tags: trunk
2021-02-08
16:00
Prettier error/esxception dialog, and From→To language selection mode now available per menu entry. (Only used by MyMemory for now.) check-in: ab2252ef7a user: mario tags: trunk
05:57
Minor reshuffling in config dialog (and get rid of parenthesis) check-in: 1bb59b3af8 user: mario tags: trunk
05:48
Add langdetect as dependency/bundle (used by mymemory) check-in: 3f3f41295e user: mario tags: trunk
05:47
new dialogs for excpetion display and manual language selection check-in: 8224584b9f user: mario tags: trunk
05:46
Add errors, update help tree check-in: fb718f90a0 user: mario tags: trunk
05:46
Prepare for additional dialogs (generated from unodit) check-in: fb46a4da36 user: mario tags: trunk
05:45
Add mymemory backend without dependency on python-translate. check-in: 979729eaed user: mario tags: trunk
2021-02-04
18:01
Add a few more languages. check-in: 805811f8ff user: mario tags: trunk
2021-02-03
20:25
Add more languages ('le continental submenus) check-in: bc8c7befa0 user: mario tags: trunk
2021-02-02
12:32
Apply googletranslate patch to standalone content.xml script check-in: 4449172e82 user: mario tags: trunk
2021-01-31
13:34
Note on extraction failures in google result page / logs. check-in: 1495c467bf user: mario tags: trunk
13:33
Add more menu entries/languages check-in: 83985abf9b user: mario tags: trunk
2021-01-30
13:44
New translate url uses &tl= instead of hl= check-in: 7a9c1a74a6 user: mario tags: trunk
13:08
Fix for new Google Translate page (div "result-container" instead of "t0") check-in: 0dcd6f88a1 user: mario tags: trunk
12:08
Reenable some debug messages check-in: 708514c151 user: mario tags: trunk, 1.6
12:05
Note on buggy options dialog check-in: c9ba80cd17 user: mario tags: trunk
12:02
Check for existence of create_default_context check-in: 01879969de user: mario tags: trunk
11:06
remove if sys.platform != 'win32': test for adhoc ssl support check-in: c90a192a1a user: mario tags: trunk
11:06
Log exceptions for config store read/write access check-in: 596be85ff3 user: mario tags: trunk
11:04
Note on untraversable text sections check-in: d1e904da13 user: mario tags: trunk
2020-06-21
14:35
Move help pages into Extensions>Pagetranslate>… check-in: b7f90e8be1 user: mario tags: trunk
14:34
Add a few more help pages (errors, extending, project infos) check-in: fe1e3cf24f user: mario tags: trunk
2020-06-12
04:42
Fix to dlg:help-url=… Now context-sensitive help pops up for F1 in settings window. (For LibreOffice before 7.0 at least) check-in: 29abf22448 user: mario tags: trunk
2020-06-11
18:49
Use saxonb-xslt for help pages, add short usage/intro page. check-in: 53081278cb user: mario tags: trunk
2020-06-10
05:10
Add help-uri=vnd.sun.star.help://help/vnd.include-once.pagetranslate/config.xhp?Language=en&…; doesn't work of course. check-in: 15c0def16d user: mario tags: trunk
05:09
Introduce crude help file for config options. check-in: a2bf060c6d user: mario tags: trunk
05:08
Add default flags `-o -t {lang}` for cli backend. check-in: 5a0ee83349 user: mario tags: trunk
2020-06-02
16:59
Rewrite TextPortion handling (slow mode) according to reality. (.supportsService("XEnumeration") won't work, and getString/setString on TextPortion) However, formatting bleeds into adjoining text segments, so probably a useless operation mode. (Machine translations are expectedly worse.) check-in: 46943916e1 user: mario tags: trunk
2020-06-01
19:07
Implement deepl_web instanceId/sessId/cookie retrieval, still yields 429 though. Add {text} and {lang} placeholders for cli backend. check-in: d0a93e3bf3 user: mario tags: trunk
19:06
Add super slow mode: paragraph enumeration - breaks up sentences on style variations, but harms coherent translations and performance, obviously. check-in: ded540533c user: mario tags: trunk
19:05
Introduce cmd and email fields, redesign dialog to make association clearer. check-in: 534df482b5 user: mario tags: trunk
2020-05-30
16:55
Add TextFrames support and config option. Seems to work alright, but keep it optional. check-in: 82c71bbb30 user: mario tags: trunk, 1.5
16:54
add format_exc() for import translate.Translator failure check-in: dcaa58f47b user: mario tags: trunk
16:53
Introduce XNamedAsEnumeration wrapper check-in: aba3df934c user: mario tags: trunk
16:53
Add <kbd>🏴</kbd> to Draw/Impress. Submenus still missing there however. check-in: 75f1bf7f56 user: mario tags: trunk
2020-05-29
15:07
Move `translationbackends.assign_service()` into separate function, because it needs to be called at three distinct places - to honor .params[lang] change without having to (pricely) reinstate backend. check-in: 88f481e92b user: mario tags: trunk
15:06
Remove log. module predeclaration. Prepare for DeepL web support (some more extraction docs.) check-in: 5aad8acfb9 user: mario tags: trunk
15:05
Strip log=None, because importing the module inherits the settings from __main__ anyway. check-in: 3c6f3e31f5 user: mario tags: trunk
15:04
AOO compat. OptionsDialog XCU requires leaf name to equal handler ID. check-in: 2d2c5955a6 user: mario tags: trunk
2020-05-28
17:40
Also strip `.leaf` from &lt;node oor:name= suffix, which now leaves two leaves however. (Prior extension cached?) check-in: 88248edbe0 user: mario tags: trunk
17:35
Shorten dialog height, as that was the sole reason for AOO not showing it up and yielding window=None in the handler. check-in: 12b8021197 user: mario tags: trunk
17:23
Requires prepopulated log. interface, not just stub And urllib/urllib2 fallback for Python2 was all wrong. check-in: 73958b1b69 user: mario tags: trunk
13:47
Release anyway. check-in: e301a66d9c user: mario tags: trunk, 1.4
13:47
Prepare for TextFrame support, reinstate self.t=translationbackends.* after lang= change in selection mode. Dialogs´ callHandlerMethod throws empty window in AOO. check-in: 0b1b17e5df user: mario tags: trunk
13:45
UTF-8 fixes for Py2+3 check-in: 07d99dabfb user: mario tags: trunk
2020-05-27
07:59
AOO compatibility with unocompat, and urllib (Py2/3) handling. PropertyValue() simplification for tradutor/selection mode. check-in: 45519ab008 user: mario tags: trunk
07:57
Compatibility with AOO uno and python (2.7, not 3.x), PropertyValue() simpification applied to tradutor/selection mode. Added six.py (just in case, simple urllib fallback suffices for now). check-in: 6d1b4df0a3 user: mario tags: trunk