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

⌈⌋ ⎇ branch:  PageTranslate


Check-in [a0244ed81d]

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

Overview
Comment:sample keyboard bindings (disabled in manifest.xml however)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1: a0244ed81d0180c8baa0828b2dcb6bc5e713c39f
User & Date: mario 2023-02-01 09:09:14
Context
2023-02-01
09:09
sample keyboard bindings (disabled in manifest.xml however) Leaf check-in: a0244ed81d user: mario tags: trunk
2022-11-15
17:47
prepare for language list updates (seems shorter than default list however) check-in: b469e6efc0 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added Accelerators.xcu.







































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://wiki.openoffice.org/wiki/Framework/Article/Accelerators_Configuration -->
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:install="http://openoffice.org/2004/installation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Accelerators" oor:package="org.openoffice.Office">
  <node oor:name="PrimaryKeys">
    <node oor:name="Modules">
      <node oor:name="com.sun.star.text.TextDocument">
        <node oor:name="E_SHIFT_MOD1_MOD2" oor:op="replace">
          <prop oor:name="Command">
            <value xml:lang="en-US">service:org.openoffice.comp.pyuno.pagetranslate?trigger&amp;lang=en</value>
          </prop>
        </node>
        <node oor:name="C_SHIFT_MOD1_MOD2" oor:op="replace">
          <prop oor:name="Command">
            <value xml:lang="en-US">service:org.openoffice.comp.pyuno.pagetranslate?trigger&amp;lang=zh-CN</value>
          </prop>
        </node>
        <node oor:name="D_SHIFT_MOD1_MOD2" oor:op="replace">
          <prop oor:name="Command">
            <value xml:lang="en-US">service:org.openoffice.comp.pyuno.pagetranslate?trigger&amp;lang=de</value>
          </prop>
        </node>
        <node oor:name="S_SHIFT_MOD1_MOD2" oor:op="replace">
          <prop oor:name="Command">
            <value xml:lang="en-US">service:org.openoffice.comp.pyuno.pagetranslate?trigger&amp;lang=es</value>
          </prop>
        </node>
        <node oor:name="F_SHIFT_MOD1_MOD2" oor:op="replace">
          <prop oor:name="Command">
            <value xml:lang="en-US">service:org.openoffice.comp.pyuno.pagetranslate?trigger&amp;lang=fr</value>
          </prop>
        </node>
      </node>
    </node>
  </node>
</oor:component-data>

Changes to META-INF/manifest.xml.

1
2
3
4
5
6

7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.package-bundle-description" manifest:full-path="pkg-desc/pkg-description.txt"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="./Addons.xcu"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="./OptionsDialog.xcu"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-schema" manifest:full-path="./OptionsSchema.xcs" />

 <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python" manifest:full-path="pagetranslate.py"/>
 <manifest:file-entry manifest:media-type="image/png" manifest:full-path="icons/flags.png"/>
 <manifest:file-entry manifest:full-path="help" manifest:media-type="application/vnd.sun.star.help"/>
</manifest:manifest>






>




1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<manifest:manifest>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.package-bundle-description" manifest:full-path="pkg-desc/pkg-description.txt"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="./Addons.xcu"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="./OptionsDialog.xcu"/>
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-schema" manifest:full-path="./OptionsSchema.xcs" />
 <!--manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" manifest:full-path="Accelerators.xcu"/-->
 <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python" manifest:full-path="pagetranslate.py"/>
 <manifest:file-entry manifest:media-type="image/png" manifest:full-path="icons/flags.png"/>
 <manifest:file-entry manifest:full-path="help" manifest:media-type="application/vnd.sun.star.help"/>
</manifest:manifest>