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.

50 most recent check-ins

2020-06-21
14:35
Move help pages into Extensions>Pagetranslate>… Leaf 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
2020-05-26
19:48
Fix reference to translate-python method (Translator().translate) check-in: c6d98420bd user: mario tags: trunk
2020-05-25
17:33
remove configfile stub 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