OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: ODF compatibility; empty ft:span


In KOffice we got an example file [1] that we can't load a OOo created 
document properly.
When I look at the document I am left with question marks why OOo writes this 
kind of document.  But before I want to open a bugreport at OOo, I want to 
put up this point on the office list.

The document has a frame which has a paragraph style to make the font size 
quite big.
In this frame there is a
<text:p text:style-name="P2"><text:span text:style-name="T1"/></text:p>
where style "T1" sets the font size to 10pt.

From the spec 1.2-draft7;
  "The <text:span> element represents portions of text using a particular
  style. The content of this element is the text which uses that text style."

KOffice tries to apply the span to any content it contains, finds no contents 
and subsequently ignores the span.  Which makes sense since technically since 
KOffice applies a style on characters or on a whole paragraph.  So the 
paragraph is assigned style "P2" but there is nowhere to store that the user 
selected "T1".

For this reason, and following the path of least surprises I think that the 
ODF spec is entirely correct and that the empty text:span being exported with 
the expectation that this style is used for that paragraph is incorrect.

What do others think?

1) http://bugs.kde.org/attachment.cgi?id=16272&action=edit
Thomas Zander

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]