Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


jmadero wrote
Are styles supposed to retain properties like "bold." I am consistently
getting mixed results using styles.

The comments up-thread by Kevin O'Brien and Brian Barker are correct,
despite a number of disagreements. So called "direct" or "manual" (directly
applied) formatting will always override a pre-defined style definition
e.g., a character or paragraph style. In LibreOffice "direct formatting"
(which is a Microsoft Office term) is equivalent to any style definition in
content.xml, rather than styles.xml (which is where pre-defined styles are
stored).

I have already commented in the bug report raised by Joel (which has since
been closed as NOTABUG), but it seems that this principle of overriding
styles is not well understood. Both ISO/IEC 26300 (ODF, Part 1, §16) and
ISO/IEC 29500:2012 (OOXML Part 1, §17.7.2) define a hierarchy of application
for styles. In both specifications what amounts to directly applied
formatting[1] are the last to be applied and so act as an override (which is
to be expected, otherwise clicking toolbar formatting buttons AFTER applying
a style would have no effect). This can however result in apparently
surreptitious behaviour that is at the root of why style adherents tend to
loath directly applied formatting i.e., it interfers with the effective
application of pre-defined styles.

If others would like me to expand on what was occurring in the example
document in greater detail for clarity I will. In simple terms there was a
direct formatting character definition (style T9 in content.xml) setting
both the font style and font weight to normal. This definition was
overriding the equivalent settings in any subsequently applied paragraph
style definition that used a weight of bold (for example Heading 3).

[1] In OOXML these tend to be paragraph or run properties that are not from
styles, while in ODF the determination is obtained by following the
child-parent chain in style definitions.

Best wishes, Owen.



--
View this message in context: 
http://nabble.documentfoundation.org/Styles-Don-t-Retain-Bold-tp4121727p4122029.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.