[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Time Variable Format
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-12-27 20:03:56
[Download RAW message or body]

On Thursday 27 December 2001 20:04, Thomas Zander wrote:
> I was only referring to the XML written; which would mean the export filters.
> Not how the text is stored or edited. In short; store the information twice.
Ok, we agree on that.

> Let me explain with an example;
> 
> Right now the XML written is:
>    <PARAGRAPH>
>     <TEXT>#</TEXT>
>     <FORMATS>
>      <FORMAT id="4" pos="0" len="1" >
>       <TYPE key="TIMEh:m" type="2" />
>       <TIME msecond="62" hour="15" second="58" minute="11" fix="0" />
>      </FORMAT>
>     </FORMATS>
> I would propose changing that to:
>    <PARAGRAPH>
>     <TEXT>15:11</TEXT>

Clever... I didn't realize you wanted to store it there - I was thinking of
a child element of the FORMAT tag, especially for variables. Your idea
makes it very easy for export filters indeed.

>     <FORMATS>
>      <FORMAT id="4" pos="0" len="5" >
>       <TYPE key="TIMEh:m" type="2" />
>       <TIME msecond="62" hour="15" second="58" minute="11" fix="0" />
>      </FORMAT>
>     </FORMATS> 
> 
> When read into KWord this extra text would be ignored and loaded as it
> is now. As one variable, which would naturally not be editable text. No change 
> there! It just extends the principle to seperate markup from content; Store 
> the content in the <TEXT></TEXT> part, the intelligence outside.
Sounds great.

> This would mean that both the loading and the saving would have to be updated 
> to reflect this. The now fails with the last of those 2 XMLs. I will look into
> that. Ok, committed a fix for that.
> The saving is a whole lot more work; so I'll wait for your anwer first :)
Go for it ;)
 
-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://www.kde.org/people/david.html (my real webpage is down)
KDE 3.0: Konquering the Desktops
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic