[Libreoffice-bugs] [Bug 133418] EXPORT DOCX: Page style names not preserved & new styles added

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 1 08:49:09 UTC 2020


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

--- Comment #4 from Luke Kendall <luke.kendall at gmail.com> ---
So the only way this could be implemented would be to:
1) add your own metadata to describe significant parts of the Writer page
styles (perhaps including those settings changed from defaults), 
2) make a "nearest page style" (or none) to one of the Writer page styles

Those things sound tricky, I agree, and perhaps not worth the effort given you
could at best achieve a partial success.

Would it be possible instead for Writer to reuse existing page styles
(including the name) it creates during the conversion process, when all the
properties match?

You could use a hash of the properties to make the equality comparison ("Is the
current page style the same as an already generated one?") efficient.

At present a book of e.g. 500 pages can convert across into 180 page styles
(Convert1 to Convert180), all mostly the same as each other.  I.e. they could
be expressed in perhaps 4 or 6 distinct page styles.

Tidying up such messy converted .docx-sourced books into a neat .odt file is
tedious at present.

-- 
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/20200601/586c59b3/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list