Tagging text as being in arbitrary complex-script languages

Stephan Bergmann sbergman at redhat.com
Mon Apr 8 15:37:01 UTC 2019


On 08/04/2019 16:17, Eike Rathke wrote:
> My guess (didn't try) would be in dictionaries.xcu
> 
>   <node oor:name="ServiceManager">
>      <node oor:name="Dictionaries">
>          ...
>      </node>
>      <node oor:name="ExtraLanguages">
>          <node oor:name="ExtraLanguage" oor:op="fuse">
>              <prop oor:name="Name" oor:type="xs:string">
>                  <value>Language UI name</value>
>              </prop>
>              <prop oor:name="ScriptType" oor:type="xs:int">
>                  <value>3</value>
>              </prop>
> 	</node>
>      </node>
>   </node>

ExtraLanguages is a set whose elements presumably must be named with the 
BCP47 tags (and the "Name" prop is localizable even), so something like

[...]
>      <node oor:name="ExtraLanguages">
>        <node oor:name="nod-TH" oor:op="replace">
>          <prop oor:name="Name">
>            <value xml:lang="en-US">Default US English UI name</value>
>            <value xml:lang="...">Your favorite translation here...</value>
>          </prop>
>          <prop oor:name="ScriptType">
>            <value>3</value>
>          </prop>
>        </node>
>      </node>
[...]

should work.


More information about the LibreOffice mailing list