OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Another technical reason for using styles over direct format

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
9point9
Moderator
Moderator


Joined: 31 Aug 2004
Posts: 3875
Location: UK

PostPosted: Wed Mar 15, 2006 5:26 pm    Post subject: Another technical reason for using styles over direct format Reply with quote

I've been pokinga round ODF and noticed something. When a blank line exists in an ODT file, it is represented by this code similar to this in content.xml:
Code:
<text:p text:style-name="Text_body"/>

So don't think that by entering in a whole load of newlines you are hardly adding anything to your file size! If you have hundreds of these it will add a lot to your file size, even when compressed.

With styles you would not have these as the style would properly define the paragraph spacing. Therefore, styles make for cleaner, smaller files. This gives less chance of corruption and makes file operations faster.

Clever people use styles.
_________________
Arch Linux
OOo 3.2.0

OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/
Back to top
View user's profile Send private message Visit poster's website
Westland
Super User
Super User


Joined: 03 Feb 2006
Posts: 562

PostPosted: Wed Mar 15, 2006 5:32 pm    Post subject: Reply with quote

Sorry for "crossposting" Wink

My (unanswered, until now, post)
http://www.oooforum.org/forum/viewtopic.phtml?t=33443

is asking if something like
Quote:
<text:p text:style-name="Text_body"/>

can be included on a file to be "interpreted" by Writer.


Post Edit: I'm 100% "Stylist" fan and I fully agree that "space between paragraphs" should be "built in" on paragraph styles definition.
I'm not sure about the real impact on size. That repeated expression will be very easily compacted, by the "zipping" algorithm.
_________________
"Do one thing every day that scares you"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group