https://bugs.freedesktop.org/show_bug.cgi?id=69386

--- Comment #5 from Owen Genat <owen.ge...@gmail.com> ---
(In reply to comment #2)
> Hazel sent me a sample document allowing to reproduce the bug. I use version
> 4.1.2.1 and confirm the problem with italic and bold triggered in the text.

There appears to be extensive use of overriding formatting (paragraph style >
character style > direct formatting) in that attachment. The document may
therefore not be the best example, although it /may/ still be an issue. I am
not clear on what is expected behaviour given this type of formatting.

To be clear, the italic issue is displayed on the 1st page in the 4th paragraph
beginning "The widespread occurrence ..." and the bold issue is displayed on
the 2nd page in the 2nd paragraph beginning "The simplest desktops ...".

Opening the ODT with an archive manager and examining the XML I can see these
style entries (styles.xml):

<style:style style:name="Emphasis" style:family="text">
    <style:text-properties fo:font-style="italic"
style:font-style-asian="italic" style:font-style-complex="italic"/>
</style:style>
<style:style style:name="file" style:family="text">
    <style:text-properties fo:font-weight="bold"
style:font-size-asian="10.5pt"/>
</style:style>

These are both character styles (for italic and bold respectively) and yet they
have been applied to the entire text e.g., in content.xml the 1st paragraph on
the 1st page is defined:

<text:p text:style-name="Standard">
    <text:span text:style-name="Emphasis">
        <text:span text:style-name="T3">forces users to buy a new computer
every time a new version comes out. That is certainly not what users want!
Instead it’s very much what the computer manufacturers want, and Microsoft
gives it to them to ensure that they will go on putting Windows onto every box
they sell. Microsoft also frequently makes arbitrary and sweeping changes to
the user interface, with little concern for whether users like it or not.
Windows 8 is a particularly crass example.
        </text:span>
    </text:span>
</text:p>

The inner (T3) direct formatting is overriding the Emphasis character style,
which in turn is overriding the Standard paragraph style. Where the two
alphabetical marks appear these inner direct formatting elements (e.g., T3 in
the example shown) are being lost and so the text is reverting to the character
style in effect on that paragraph (either italic or bold) for the remainder of
the text.

"Clear direct formatting" does not remove character styling, so what Hazel
describes makes sense.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to