On May 5, 2006, at 8:36 AM, Ross Gardler wrote: Cyriaque Dupoirieux wrote: le 05/05/2006 17:13 Ross Gardler a écrit : Your approach makes two assumptions, both of which are, in my opinion, flawed:
1) we know what T1 is used for by the user 2) we can force a predefined style on T1 and the document will still look right
My approach allows us to pull the style information from the OOo document and therefore respect the users wishes within the confines of the web designers rules.
Agreed. Let us proceed with your approach. It doesn't require that much more work since it will (hopefully) only be a case of copying over the code from the OOo plugin.
The fact that it creates invalid XDocs is not a huge problem as it only affects things on the internal side of Forrest and so validation checks are not an issue (in fact the internal format is not valid in many other ways too). We can return and address this at a later date.
David Crossley mentioned in another thread[1], that document-v11.dtd is similar to document-v13.dtd, except: ==== Why "transform.docv10.docv11"? No problem: docv11 is essentially the same as docv13, some restrictions were relaxed and every element can have a @class attr.
==== Ross, I fully agree with you, but I have search in one of my odt files with bold characters (style="T1") and I can't find the style definition in the T1 style ?
This highlights a third incorrect assumption about styles in ODT docs:
- there is consistency in the style names used across different ODT editing environemnts
It seems to be a predefined style ?
I just loooked in an ODT file for the first time and was pleasently suprised to find sensible style names and not codes like "T1" as was used in SXW. Perhaps the document Web Maestro Clay is referring to started life as an SXW?
In SXW, if I remember rifhtly, T1 was the predefined style called "Title 1" in the drop down styles list.
Ross
That is correct. This file did begin 'life' as an SXW file. I started the site for a client by copying the files into using OOo and saving them as SXW files. After getting bitten by the many bugs in OOo's SXW styling system we opted to create an ODT plugin instead of updating OOo. I'll have to go through each file and clear formatting, then reapply bold and italic where necessary.
[1]
p.s. Shouldn't this discussion be happening in JIRA?
Web Maestro Clay
My religion is simple. My religion is kindness. -- HH Dalai Lama of Tibet
|