https://bugs.documentfoundation.org/show_bug.cgi?id=151906

Regina Henschel <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Regina Henschel <[email protected]> ---
(In reply to Eyal Rozenberg from comment #0)
> Do (Writer) document have a "document language"?
...
> 
> I don't know what the ODF spec defines

Relevant attributes in ODF 1.3 are: fo:language (20.202), fo:country (20.188),
fo:script(20.222) for Latin scripts, style:country-asian (20.256), 
style:language-asian (20.302), style:script-asian (20.356) for East Asian
scripts and style:country-complex (20.257), style:language-complex (20.303),
style:script-complex (20.357) for RTL scripts. In addition the
style:script-type (20.358) attribute may be used.

These attributes belong to a style:text-properties (16.29.29) element. Such
element is primarily used in a <style:style> (16.2) element of family text.
Such corresponds to character styles in the UI. In addition it can be used in a
<style:style> element of other family types. Those are used, if a property is
not defined in the character style. And as last step it can be used in a
<style:default-style>. That is used if the property was not found in the other
mentioned elements.

If you set a language in Tools>Options, that setting goes into the
style:text-properties elements in the <style:default-style> elements. So you
can consider using the <style:default-style> elements as a way to set a
"document" language. If you do not set a dedicated language in Tools>Options,
but use the "Default - ..." item, then no language is written to the
<style:default-style> elements and it depends on the environment of the
LibreOffice installation in which the document is opened, which language is
considered as "document" language.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to