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

⌈⌋ ⎇ branch:  PageTranslate


Artifact [73f4d22046]

Artifact 73f4d22046ed65586ee0a8959cdf903009c32248:

  • File OptionsSchema.xcs — part of check-in [0790399062] at 2021-05-13 03:55:35 on branch trunk — Rework config dialog to use dropdown/listbox for selecting service. Change config schema, and uno control handling. (user: mario size: 2094)

<?xml version="1.0" encoding="UTF-8"?>
<!-- oor:name must be identical to the filename of this xcs file //-->
<oor:component-schema xmlns:oor="http://openoffice.org/2001/registry"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  oor:name="Options"
  oor:package="vnd.include-once.pagetranslate" xml:lang="en-US">
  
  <!-- struct for config nodes `/vnd.include-once.pagetranslate.Options/Leaves/Flags` -->
  
  <info>
    <author></author>
    <desc>List of config options for pagetranslate.</desc>
  </info>
  <templates>
    <group oor:name="Leaf">
      <info><desc>The data for one leaf. Works without, so not relevant for storage. Purpose unclear.</desc></info>
   <!--prop oor:name="String0" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String1" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String2" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String3" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String4" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String5" oor:type="xs:string"><value></value></prop>
      <prop oor:name="String6" oor:type="xs:string"><value></value></prop-->
    </group>
  </templates>
  <component>
    <group oor:name="Leaves">
      <group oor:name="Flags" oor:type="Leaf">
        <prop oor:name="backend" oor:type="xs:string"><value>Google Translate</value></prop>
        <prop oor:name="api_key" oor:type="xs:string"><value></value></prop>
        <prop oor:name="email" oor:type="xs:string"><value></value></prop>
        <prop oor:name="cmd" oor:type="xs:string"><value>translate-cli -o -f auto -t {lang} {text}</value></prop>
        <prop oor:name="quick" oor:type="xs:short"><value>0</value></prop>
        <prop oor:name="frames" oor:type="xs:short"><value>0</value></prop>
        <prop oor:name="slow" oor:type="xs:short"><value>0</value></prop>
        <prop oor:name="debug" oor:type="xs:short"><value>1</value></prop>
      </group>
    </group>
  </component>
</oor:component-schema>