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

List:       koffice-devel
Subject:    Re: new KWord
From:       Thomas <zander () xs4all ! nl>
Date:       2000-11-04 23:17:38
[Download RAW message or body]

> >
> > What kind of stuff ware you thinking about?
> 
> I do not like the way formats are saved. After the paragraph text we have
> 
> <formats>
> <format id=.. pos=... len = ...>
> <familiy>...
> <bold>...
> ...
> </format>
> <format>...</format>
> </formats>
> 
> I'd prefer if we would have a style collection where we have
> 
> <style name="stylename">
> <family>...
> <bold>...
> ...
> </style>
> <style name="...">
> ...
> </style>
> 
> And then in the paragraph just
> 
> <text><style name="stylename">text text text</style><style 
> name="another-style"> text text ...</style>....</text>
> 
> That's the biggest thing, I'd like to change. Then there is smaller stuff 
> like defining defaults and only saving what is different from that, etc.

You should still keep the seperation of the text and its markup, otherwise
you loose the biggest advantage of XML, so it would be:

<Paragraph>
    <style name ="existing style" />
    <text> 
bla bla etc
    </text>
    <format pos=... len= ...>
        <!-- only changes from the style here! -->
        <bold />
    </format>
</Paragraph>

With just one style per paragraph, and local overrides (the one style per
paragraph is logical to extend here because in the gui styles are also
per paragraph)
The local overrides are the thing we discussed in Erlangen, where formats
inherit from styles because format only represent small changes to a style, 
and should be saved in these small changes, not in a whole new style.

Also, the format is currently used for special characters, like pictures and 
anchors. How would you like to save that?

-- 
Thomas Zander                                            zander@earthling.net
The only thing worse than failure is the fear of trying something new
_______________________________________________
Koffice-devel mailing list
Koffice-devel@master.kde.org
http://master.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