[Libreoffice-ux-advise] [Bug 127115] language-agnostic styles

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 26 12:05:44 UTC 2019


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

Regina Henschel <rb.henschel at t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel at t-online.de

--- Comment #7 from Regina Henschel <rb.henschel at t-online.de> ---
The problem is this: Actually, language is a property of character portions.
However, the paragraph can have a default language. This is used if the
characters do not have their own language setting.
The problem in your case is, that if you select an entire paragraph, then the
choosen language is not applied to the characters, but it is set as default
language into the paragraph. If you then apply a new paragraph style it will
use the default of that new style.

For to set a language to a portion of text, define a _character_ style with
that language. To change the language of the text portion, apply that style. In
this case the "portion" may be an entire paragraph.

If you look into the generated file, the difference is, whether a <text:span>
element with a "Tn" (or your own character style name) style exists, or there
is only the <text:p> element with a "Pn" (or your own paragraph style name)
style.

There is indeed a UX problem: It is not clear, what happens, if an entire
paragraph is selected and something is done with this selection. Sometimes the
setting is uses as paragraph property, sometimes as character property. Only
the assignment of a character style seems to reliably generate the <text:span>
elements, needed for multi-language documents.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list