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

⌈⌋ ⎇ branch:  PageTranslate


Artifact [7b0e29086b]

Artifact 7b0e29086be721651dab71078b4f189005bc8f6b:

  • File OptionsDialog.xdl — part of check-in [10276ceb8e] at 2020-05-25 17:22:37 on branch trunk — Remove some logging, fix setLevel on debug mode. Move config dialog into Language settings leave. Remove `crlf` in favour of `quick` mode. (user: mario size: 2958)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd">
<dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="OptionsPageTranslate" dlg:left="110" dlg:top="50" dlg:width="190" dlg:height="220" dlg:closeable="true" dlg:moveable="true" dlg:title="Title" dlg:withtitlebar="false">
 <dlg:bulletinboard>
  <dlg:radiogroup>
   <dlg:radio dlg:id="google" dlg:tab-index="0" dlg:left="10" dlg:top="10" dlg:width="160" dlg:height="12" dlg:value="Google Translate web service" dlg:help-text="Standard translation service" dlg:group-name="backend" dlg:checked="true"/>
   <dlg:radio dlg:id="deepl_web" dlg:tab-index="1" dlg:left="10" dlg:top="25" dlg:width="160" dlg:height="12" dlg:value="DeepL web interface (slower?)" dlg:help-text="not yet implemented" dlg:group-name="backend"/>
   <dlg:radio dlg:id="deepl_api" dlg:tab-index="2" dlg:disabled="true" dlg:left="10" dlg:top="40" dlg:width="160" dlg:height="12" dlg:value="DeepL translation API (fast/better formatting?)" dlg:help-text="Requires subscription and API key" dlg:group-name="backend"/>
   <dlg:radio dlg:id="microsoft" dlg:tab-index="3" dlg:left="10" dlg:top="85" dlg:width="160" dlg:height="12" dlg:value="Microsoft Translate (translate-python)"  dlg:help-text="Requires an OAuth secret in API key" dlg:group-name="backend" dlg:checked="false"/>
   <dlg:radio dlg:id="mymemory" dlg:tab-index="4" dlg:left="10" dlg:top="100" dlg:width="160" dlg:height="12" dlg:value="MyMemory (translate-python)"  dlg:help-text="Add an email address instead of API key" dlg:group-name="backend" dlg:checked="false"/>
   <dlg:radio dlg:id="cli" dlg:tab-index="5" dlg:left="10" dlg:top="115" dlg:width="160" dlg:height="12" dlg:value="commandline tool (cmd in 'API key')" dlg:help-text="For instace `translate-cli -t en {}`" dlg:group-name="backend" dlg:checked="false"/>
  </dlg:radiogroup>
  <dlg:titledbox dlg:id="FrameControl1" dlg:tab-index="7" dlg:disabled="true" dlg:left="25" dlg:top="53" dlg:width="145" dlg:height="29" dlg:help-text="requires an API key / else will use *SLOWER* web page requests">
   <dlg:title dlg:value="API key / OAuth / Email / Cmd"/>
   <dlg:textfield dlg:id="api_key" dlg:tab-index="6" dlg:left="5" dlg:top="10" dlg:width="135" dlg:height="12" dlg:help-text="Key required for DeepL, Microsoft Translate, Google API"/>
  </dlg:titledbox>
  <dlg:checkbox dlg:id="quick" dlg:tab-index="8" dlg:left="10" dlg:top="140" dlg:width="160" dlg:height="12" dlg:help-text="Temporary placeholders instead of iterating over newline breaks" dlg:value="quick paragraph linebreak handling" dlg:checked="false"/>
  <dlg:checkbox dlg:id="debug" dlg:tab-index="9" dlg:left="10" dlg:top="155" dlg:width="160" dlg:height="12" dlg:help-text="Log file in /tmp/pagetranslate-libreoffice.txt" dlg:value="additonal debugging" dlg:checked="true"/>
 </dlg:bulletinboard>
</dlg:window>