|08-31-2008, 06:04 PM||#1|
Join Date: Oct 2007
I have a PRS-505 that I use to read text files from different sources.
The problem is, sometimes the text is already formatted to a certain
line width and when converting it to the PRS (using callibre) it comes out
all messy, with line breaks everywhere.
Is there some tool that can reformat text ?
Maybe remove line breaks gracyfully ? (while retaining the 'right' breaks, for instance when " " are used)
|08-31-2008, 07:35 PM||#2|
New York Editor
Join Date: Aug 2007
Device: Tapwave Zodiac 2, Fujitsu Lifebook p2110 w/ FBReader
On Unix/Linux/BSD systems, each line of the text file is terminated by the Linefeed character - ASCII 11
On Older Macs, each line of a text file is terminated by a Carriage Return - ASCII 13.
On DOS/Windows PC, lines in a text file are delimited by both, in a CRLF combination.
Many other applications will treat the CR part of CRLF as a "hard" break character, resulting in what you see on your Sony Reader.
On a Unix/Linux system, I'd use unix2dos and dos2unix to do the transformation, adding or stripping the CRs respectively.
If you are on a PC, and are comfortable working at the command line, you might look here: http://www.bastet.com/
Grab UDDU.zip, which are Windows console versions of unix2dos and dos2nix.
If you want an on line solution, you can try here: http://www.iconv.com/dos2unix.htm
You upload the file you want converted, and it returns a converted version you can save under a different name.
If you prefer the GUI, there are an assortment of text editors that will let you select the line endings you prefer. One I've been fond of for may years is PFE: http://www.lancs.ac.uk/people/steveb...fe/default.htm
PFE is a freeware multi-file text editor with an MDI interface, written by Anthony Phillips at Lancaster University in England.
|09-01-2008, 06:46 AM||#5|
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
Yes, I use Stingo's macro regularly in order to remove hard line breaks. It is very useful.
|09-01-2008, 07:17 AM||#6|
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle 3, Bebook
This one also works very nice
Even I could use it
|09-04-2008, 08:51 AM||#7|
Join Date: Jan 2007
Location: San Borja (Lima), Peru
Device: Pcktbk 360; Kindle Paperwhite (WiFi)/ Fire HD; nook STR & Col; KoboGlo
I have used =X='s (is that sig. right?) Word maco and it is absolutely excellent for removing hard carriage returns in texts. It's called BookCreator Tool and is a Word macro, so you need Word.
Again, this is an incredible tool.
Here's the link:
Last edited by Dr. Drib; 09-04-2008 at 03:45 PM. Reason: added "Tool"
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Using MS Word to quick-reformat text||steven522||Ectaco jetBook||1||02-26-2010 12:02 PM|
|Does conversion reformat the text?||dynalmadman||Calibre||0||02-20-2010 09:33 PM|
|Reformat Memory||edbro||Sony Reader||1||02-01-2010 01:36 PM|
|Can someone help me reformat my lrf files?||Horribleman||LRF||0||10-03-2009 06:59 AM|
|I need to reformat my hard disk||Nate the great||Lounge||4||06-13-2009 10:19 PM|