<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - language-agnostic styles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127115">bug 127115</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>rb.henschel@t-online.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - language-agnostic styles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127115#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - language-agnostic styles"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=127115">bug 127115</a>
from <span class="vcard"><a class="email" href="mailto:rb.henschel@t-online.de" title="Regina Henschel <rb.henschel@t-online.de>"> <span class="fn">Regina Henschel</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>