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

⌈⌋ ⎇ branch:  PageTranslate


Check-in [3c6f3e31f5]

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

Overview
Comment:Strip log=None, because importing the module inherits the settings from __main__ anyway.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3c6f3e31f5797a4fd6e3e7b1d0bc2a91cce94fe0
User & Date: mario 2020-05-29 15:05:17
Context
2020-05-29
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pythonpath/httprequests.py.

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Wraps requests or fakes a http.get() implementation.
#


__all__ = ["http", "urllib", "urlencode", "quote", "quote_plus"]

# http preparations
from tempfile import gettempdir
import logging as log
log.basicConfig(filename='%s/pagetranslate-libreoffice.log'%gettempdir(), level=log.DEBUG)
import sys
import urllib
try:
    from urllib.parse import urlencode, quote, quote_plus
    from urllib.request import urlopen, Request
except:
    from urllib import urlencode, quote, quote_plus







<

<







12
13
14
15
16
17
18

19

20
21
22
23
24
25
26
# Wraps requests or fakes a http.get() implementation.
#


__all__ = ["http", "urllib", "urlencode", "quote", "quote_plus"]

# http preparations

import logging as log

import sys
import urllib
try:
    from urllib.parse import urlencode, quote, quote_plus
    from urllib.request import urlopen, Request
except:
    from urllib import urlencode, quote, quote_plus