https://bugs.documentfoundation.org/show_bug.cgi?id=107095
--- Comment #2 from Thomas Lendo <[email protected]> ---
Created attachment 132505
--> https://bugs.documentfoundation.org/attachment.cgi?id=132505&action=edit
Test file with direct paragraph and text formatting (see content.xml)
m.a.riosv, thanks, your concerns are valid.
Creating a new style from selection is not a workaround for this bug because
you don't know where in the document direct formatted content is lurking. It's
not an option for a 50 pages long document.
It's clear that--for such a complex task--the user has to do manual rework
after converting. For example, inheritances can't be set automatically,
correct. But in my PoV that's not a problem. A user, who is only working with
styles, wants to rework the result after converting anyway. From my own
experience i can say that uncontrolled growth of direct formatting in a
document goes hand in hand with too many formatting variants. With Find &
Replace the user can replace "converted styles" with existing styles which
makes the whole process of unifying and reworking much easier than today
without having all formatting "canalized" in styles. Lot of styles without a
meaning name are OK because then the user can edit/reapply/exchange it style
after style within this nice styles list in the sidebar.
It shouldn't be impossible to find direct formatting and assign them a (new)
style on xml level. In content.xml, direct formatting of paragraphs is assigned
with the attributes style:name="Px" and style:family="paragraph". Character
formatting has the attributes style:name="Tx" and style:family="text". (Style
tags with only internal attributes like officeooo:paragraph-rsid or
officeooo:rsid can be ignored.)
Then for example the formatting attribute fo:background-color="#ffff00" in a
paragraph style tag can be moved to a new paragraph style tag with the same
attribute and a new paragraph style name.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs