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

--- Comment #2 from Regina Henschel <[email protected]> ---
If you assign the character style "Emphasis" to a portion of text in a
paragraph, then this generates a <text:span> element (6.1.7) in file markup. In
this <text:span> element you will find the text:style-name="Emphasis" attribute
(19.880.33).
The style "Emphasis" is a <style:style> (16.2) element in file markup in
styles.xml. This <style:style> element has a style:name="Emphasis" attribute
(19.502) which identifies the style and a style:family="text" attribute
(19.480), which determines the properties, which may be specified in this
style.
In case of family "text", the properties are contained as attributes in a
<style:text-properties> element (16.29.29). Up to 84 properties exists, but you
may use a subset of them. The section 16.2 in the standard specifies how the
value of a property has to be determined, in case it is not contained in the
<style:text-properties> element of a style which is referenced by the to be
styled object.
[The section numbers refer to ODF 1.3.]

These <text:span> elements may be nested, however as the file format is XML,
the elements cannot overlap. That means, that ODF allows to apply several
character styles to the same portion of text. But that is currently not
correctly implemented (bug 115311).

If you want, that your style "Emphasis" does not include the language, then
simply do not specify the language in the style. You must not touch the
language field in the dialog, otherwise the language is set. If you are unsure
whether the language is set or not set, look at the Organizer tab of the style
modify dialog. To remove a language setting from the style you have to use the
"Reset to Parent" button on the "Font" page and set the desired other
properties on that page again.

Many of the properties depend on the script type of a character. The script
type of a character can be "latin", "asian" or "complex". The unicode code
point determines which of the three script types applies, not the language.
Script type dependent properties have three variants of a property, e.g.
fo:font-style, style:font-style-asian and style:font-style-complex. Only one of
them is active for a character. So if you set e.g. "italic" for "Western text"
and "bold" for "CTL text" the "Emphasis" character style should work for
English, Hebrew and Farsi as well. If not, that is a bug.

A language is set by the attributes fo:language and fo:country and their
"asian" and "complex" variants. These are attributes of a
<style:text-properties> element. This <style:text-properties> element can be a
child element of a style of family "text". That corresponds to character
styles. It can also be child element of a style of family "paragraph". So
removing setting a language in a character style or a paragraph style is not
possible. We can only try to make the UI clearer reflect the relationships. For
example move the language settings to an own tab, so that they cannot be
changed by accident when working with other settings.

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

Reply via email to