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 Wed 01 Oct 2014, 12:50
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 Posts_count  
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_website 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 526

PostPosted: Sun 01 Jan 2012, 13:16    Post_subject: Re: Text documents
Sub_title: 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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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