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

⌈⌋ branch:  PageTranslate


Artifact Content

Artifact 8fab0657eb3a427d145f76dcd846df8390fa5126:

  • File OptionsDialog.xdl — part of check-in [748623aaf6] at 2020-05-23 14:05:33 on branch trunk — Introduce pt_opts handler for settings window (user: mario size: 2012)

<?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="220" dlg:height="150" dlg:closeable="true" dlg:moveable="true" dlg:title="Title" dlg:withtitlebar="false">
 <dlg:bulletinboard>
  <dlg:textfield dlg:id="apiKey" dlg:tab-index="1" dlg:left="35" dlg:top="66" dlg:width="125" dlg:height="12" dlg:help-text="Key required for faster translation service"/>
  <dlg:titledbox dlg:id="FrameControl1" dlg:tab-index="0" dlg:left="25" dlg:top="55" dlg:width="145" dlg:height="32" dlg:help-text="requires an API key / else will use *SLOWER* web page requests">
   <dlg:title dlg:value="API key"/>
  </dlg:titledbox>
  <dlg:checkbox dlg:id="debug" dlg:tab-index="2" dlg:left="10" dlg:top="110" dlg:width="160" dlg:height="12" dlg:help-text="Log file in /tmp/pagetranslate-libreoffice.txt" dlg:value="additonal debugging" dlg:checked="true"/>
  <dlg:checkbox dlg:id="CheckBox1" dlg:tab-index="3" dlg:left="10" dlg:top="95" 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:radiogroup>
   <dlg:radio dlg:id="google" dlg:tab-index="4" dlg:left="10" dlg:top="10" dlg:width="160" dlg:height="12" dlg:value="use Google Translate web service (standard)" dlg:group-name="backend" dlg:checked="true"/>
   <dlg:radio dlg:id="deepl_web" dlg:tab-index="5" dlg:left="10" dlg:top="26" dlg:width="160" dlg:height="12" dlg:value="use DeepL web interface (slower?)" dlg:group-name="backend"/>
   <dlg:radio dlg:id="deepl_api" dlg:tab-index="6" dlg:left="10" dlg:top="40" dlg:width="160" dlg:height="12" dlg:value="use DeepL translation API (faster/better formatting?)" dlg:group-name="backend"/>
  </dlg:radiogroup>
 </dlg:bulletinboard>
</dlg:window>