[Libreoffice-bugs] [Bug 136434] FORMATTING: redundancy in content.xml

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 21 10:39:03 UTC 2020


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

--- Comment #5 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Christian Lehmann from comment #0)

To check the claims, please save the file as a FODT, and then inspect the
resulting XML, for simplicity - you would have everything in one XML.

> File ‘content.xml’
> The section “<office:font-face-decls>” contains 9 font faces only one of
> which is used in this document.

Wrong. All 9 are used either in styles, or in text.

> In the section ‘<office:automatic-styles>’, several text styles have the
> same definition, differing only in the value of the attribute
> ‘officeooo:rsid’; but this is devoid of useful effects. In this sense, the
> following styles are the same:
> “T1” - “T6”
> “T7” - “T12”
> “T13” and “T14”.

See comment 3.

> Styles T4 – T6 contain specifications of fonts which are never used.

This doesn't make sense. The fonts are "used" as soon as the style is used. If
characters present in a text run that uses the style (DF actually) don't need
some script, that doesn't mean "the style should be cleaned up, such as when
user finally decides to write some Arabic or Chinese characters, they would
appear in something else compared to what had been defined originally".

> The section ‘<text:sequence-decls>’ contains five declarations none of which
> is used in the text.

The sequence definitions are data by their own, just like, say, styles or
macros. You won't want your macros in a document to disappear on save just
because there were no buttons inserted in the document that used the macros.
Likewise, prepared sequence definitions or styles are part of data, that must
be saved.

That there are several sequence definitions pre-created by default, is a
different story ...

> The section ‘<office:text>’ contains 13 occurrences of the tag ‘<text:span
> text:style-name="Kommentarzeichen">’. A style of this name is also listed
> among the “Applied Styles” in the panel “Character Styles”. It is, in fact,
> not applied in the document.

It is, in fact, *is* applied in the document. E.g., to text "¿Bá               
jé".

A separate cleanup tool might be interesting thing, indeed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200921/213d2c73/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list