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

⌈⌋ branch:  PageTranslate


Artifact [28bf949bfc]

Artifact 28bf949bfcf410ab5f741706f11a5ee59b23694b:

  • File OptionsSchema.xcs — part of check-in [a80c65db71] at 2021-12-30 02:07:44 on branch trunk — Add `selectonly` mode as per user request. (user: mario size: 2254)

<?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>
        <prop oor:name="selectonly" oor:type="xs:short"><value>0</value></prop>
        <prop oor:name="flag" oor:type="xs:string"><value>locale</value></prop>
      </group>
    </group>
  </component>
</oor:component-schema>