Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 08:08
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
Smallest text file format that preserves line breaks?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
darrelljon


Joined: 08 Apr 2007
Posts: 548

PostPosted: Sun 01 Jan 2012, 11:11    Post subject:  Smallest text file format that preserves line breaks?  

What's the smallest file format for text files that preserves line breaks? I tried ASCII but it came out bigger than ODT!
Back to top
View user's profile Send private message Visit poster's website 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 528

PostPosted: Sun 01 Jan 2012, 13:16    Post subject: Re: Text documents
Subject description: Smallest file format?
 

darrelljon wrote:
What's the smallest file format for text files that preserves line breaks? I tried ASCII but it came out bigger than ODT!


ODT is compressed. This makes it smaller. abiword also makes compressed files. These in my experience are smaller than ODT files.

Very small can be done by zipping plain ASCII files.
Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Tue 03 Jan 2012, 11:06    Post subject:  

you could write your own tools
here is a simple way to fold the text
so it looks nice in geany
just remember this is linux if you dont
find what you want you can make it

Code:

#!/bin/sh

# big-bass dragNdrop file here
# fold the text at 70 characters and #rename to file.cleaned

fold -sw 70 "$@" > "$@"".cleaned"

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
darrelljon


Joined: 08 Apr 2007
Posts: 548

PostPosted: Sat 18 Aug 2012, 13:28    Post subject:  

Okay done a bit of a test on the same document (103813 characters if you want to compare in other formats); no special formatting except line breaks.
here are the results in reverse size order

246KB - ABW (Abiword)
180KB - DOCX (Microsoft Office Open XML)
172KB - RTF (Rich Text Format)
164KB - PAGES (Apple iWork 08 Pages)
152KB - PAGES (Apple iWork 09 Pages)
143KB - DOC (Microsoft Word Document)

Note of the six biggest document formats, three are Microsoft proprietary and two are Apple.
Of the biggest common document formats, all three are Microsoft proprietary formats,

139KB - PDF (common including for all ebook readers including Kindle but not reflowable)
108KB - WPS (Microsoft Works 4.0)
107KB - WPD (Corel WordPerfect)
106KB - TXT (Plain text works on some ebook readers)
106KB - TEX (Tex supposed to be good for design and formatting)
82KB - AZW3 (Amazon Kindle proprietary format, one of two main incompatible ebook-specific formats)

Note the four smallest are free open source formats

49KB - ODT (OpenDocument Format - used in LibreOffice, OpenOffice.org etc.)
41KB - EPUB (one of two main incompatible ebook-specific formats)
41KB - ZABW (GZipped Abiword)
37KB - BZABW (BZ2 Abiword)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0482s ][ Queries: 12 (0.0058s) ][ GZIP on ]