Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Other formats

Notices

Reply
 
Thread Tools Search this Thread
Old 02-09-2009, 10:24 PM   #1
elewton
Member
elewton began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Mar 2008
Device: Hanlin V3
80-column text reflow - Hanlin V3

Hey, guys.
I'm a cheap ass and only buy a few eBooks. Thankfully, all the Linux man pages and Howtos, as well as many computer documents, are available free in ASCII. Unfortunately, they're all in 80-column text.

Does anyone have a simple script for changing the wrapping? I was thinking maybe sed could replace double newlines with special character x, then remove single newlines and replace x with newlines.

I figure smart people have solved similar problems with all the subsequent problems. If anyone knows something like that, I'd appreciate being pointed in the right direction.

Thanks,
Eric
elewton is offline   Reply With Quote
Old 02-10-2009, 05:00 AM   #2
leandroide
Zealot
leandroide has learned how to buy an e-book online
 
leandroide's Avatar
 
Posts: 144
Karma: 92
Join Date: May 2006
Location: Vigo, Spain
Device: Papyre 6.1 (Hanlin V3)
This worked for me:

1. Open the file in vim
2. Type ":%s/\n\n/#/g"
3. Type ":%s/\n//g"
4. Type ":%s/#/^M/g"

# is the character you choose to mark a double newline
^M is obtained by typing "CTRL-V" and "ENTER"

Hope this works for you,

L.
leandroide is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pdfreflow: reflow text PDFs Pranananda PDF 45 11-03-2011 09:32 AM
<pre> tags and no text reflow in EPUB sergio blum Calibre 24 10-14-2010 08:07 PM
Creating a Short Text Column that Doesn't Appear in Tag Browser? shocampo Calibre 2 09-12-2010 01:35 PM
What is the best reader read real reflow PDF ( not refow text ) ? familyhandh Which one should I buy? 1 08-05-2010 08:44 AM
Help with reflow text file siulayhumga Workshop 9 07-31-2010 06:36 PM


All times are GMT -4. The time now is 06:04 AM.


MobileRead.com is a privately owned, operated and funded community.