[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [office] A question about text:span and styles
Michael, I think the important part of David's message is that, since ODF is not HTML, we actually need to say what the rule is. Absent a normative statement, reasoning from similarity to some other specification is very dangerous and certainly not something the standard should be written to rely upon. There is no crystal ball that says what the degree of similarity of text:span with HTML <span> is. I do think it is natural to assume that that certain styles are "additive" when not contradictory, based on knowledge of what HTML does, but I don't believe the ODF specification is explicit enough about that in the text:span case. I wonder how this works out in the in the hierarchic resolution against default styles too. - Dennis PS: There is neither mention of HTML or reference to [HTML4] in conjunction with the <text:span> element. And many of the references to [HTML4} that there are in ODF 1.1 (I just searched) are quite curious with regard to "similar to" and the absence of normative clarity. I find it particularly intriguing that the HTML4 character of some elements is described as applying to the use of an ODF document to make HTML documents with no guidance on what that means for the ODF document itself. Are these restricted to occurring in the peculiar case of the "Text document used as template for HTML documents" often having extension .oth and MIME Type application/vnd.oasis.opendocument.text-web ? -----Original Message----- From: Michael.Brauer@Sun.COM [mailto:Michael.Brauer@Sun.COM] Sent: Friday, February 27, 2009 06:27 To: David Faure Cc: 'office' Subject: Re: [office] A question about text:span and styles David, the <span> element has been adopted from HTML, and it was intended that it works like in HTML. Which means "thistext" should be bold+italic. Best regards Michael On 02/27/09 14:48, David Faure wrote: > In the following: > <span style="italic">italic <span style="bold">thistext</span></span> > > if the style called "bold" simply sets the character property bold=true and > doesn't derive from any other style, should the text "thistext" be > only bold, or should it be bold+italic? > > I think it should be bold+italic, and testing in OpenOffice.org seems to indicate > this too, but the specification doesn't say much about style handling in > nested spans, so there is a bit of controversy about this among koffice > developers. Can we get a clear statement about the expected behavior > and possibly a sentence in the spec? > -- Michael Brauer, Technical Architect Software Engineering StarOffice/OpenOffice.org Sun Microsystems GmbH Nagelsweg 55 D-20097 Hamburg, Germany michael.brauer@sun.com http://sun.com/staroffice +49 40 23646 500 http://blogs.sun.com/GullFOSS Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering --------------------------------------------------------------------- To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail. Follow this link to all your TCs in OASIS at: https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]