[Libreoffice-bugs] [Bug 115553] [ENHANCEMENT] Para/Char Styles in Writer: make possible to toggle font attributes

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 21 20:48:30 UTC 2018


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

--- Comment #5 from ajlittoz <page74010-sf at yahoo.fr> ---
@Kenneth Hanson

I went through bug 108498 and it confirms that paragraph and character styles
are in their own hierarchies without links between each other.

>I suspect that what you want to do … probably isn't possible within the ODF standard.

I haven't read ODF, so correct me if i'm wrong.

IMO, ODF describes how the stored file looks like so that conforming
implementation can read it and retrieve information from it to display as the
writer semantically intended.

A document processor adds an "ergonomics layer" over the standard so that an
average user can insert the XML elements with a few clicks or keyins without
knowing all what's happening in the backstage. The UI decouples file ODF
internals from user action to get document layout.

As long as you find a way to convert typographical concepts into a sequence of
XML primitives, even if contorted a bit, you don't need to change the standard.

For instance, when importing .doc or .docx documents, the import engine creates
many "anonymous" character styles to translate intra-paragraph formatting
because the concept does not exist in MS Office.

I'm wondering, for my case, if such a workaround could be possible, eventually
using mangled styles names to signal to LO Writer that the style has special
dynamic properties, e.g. adding some _<hexadecimal-encoding>_ just like we have
_20_ to encode a space.

The idea is to make the special properties "transparent" or "neutral" if
document is opened with something different from LO Writer and fully processed
in an extended LO Writer.

In this strategy, the burden of handling the extra style properties is pushed
from ODF layer to LO Writer processing layer.

Tell me if that makes sense. I am fully aware that there is a considerable
distance from idea to implementation, though.

Also, I'm confident that ODF will evolve sooner or later (certainly rather
later) in the direction sketched, i.e. the possibility for character styles to
be context (paragraph) aware. "Toggling" is another issue because "toggle" is
difficult to define (what is "bold" for instance? You have many weights in a
single family. What is "italic"? You may have several slant angles.)

-- 
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/20180321/c56063e8/attachment.html>


More information about the Libreoffice-bugs mailing list