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

--- Comment #4 from Eyal Rozenberg <eyalr...@gmx.com> ---
(In reply to Regina Henschel from comment #3)
> (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.

... so, no attribute saying which of the language groups is "chosen".

> 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.

But - once a document has been created, with is <style:default-style>, the
settings in Tools | Options no longer affects it, right?

Also, in the UI, if we edit the "Default Paragraph Style"'s character aspects,
I'm guessing that will affect the document's <style:default-style>?

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

Reply via email to