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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 08-31-2008, 05:04 PM   #1
ShacharWeis
Member
ShacharWeis began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2007
Device: fx-82c
text reformat

Hi everyone,
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)

thanks,
Shachar.
ShacharWeis is offline   Reply With Quote
Old 08-31-2008, 06:35 PM   #2
DMcCunney
New York Editor
DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.
 
DMcCunney's Avatar
 
Posts: 5,141
Karma: 6210987
Join Date: Aug 2007
Device: Palm TX, Azpen A727 tablet, Fujitsu Lifebook p2110 w/ FBReader
Quote:
Originally Posted by ShacharWeis View Post
Hi everyone,
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)

thanks,
Shachar.
What computer and OS are you using? What I think is happening is a problem with line endings in text files.

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.
______
Dennis
DMcCunney is offline   Reply With Quote
Old 09-01-2008, 01:06 AM   #3
ShacharWeis
Member
ShacharWeis began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2007
Device: fx-82c
I'm on Windows.
I will try the links you provided,
thanks !

Shachar Weis
ShacharWeis is offline   Reply With Quote
Old 09-01-2008, 05:44 AM   #4
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Look for Stingo Word macro.
igorsk is offline   Reply With Quote
Old 09-01-2008, 05:46 AM   #5
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,520
Karma: 2199070
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.
Patricia is offline   Reply With Quote
Old 09-01-2008, 06:17 AM   #6
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 516
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle 3, Bebook
This one also works very nice

http://www.mobileread.com/forums/showthread.php?t=28313

Even I could use it
Ortep is offline   Reply With Quote
Old 09-04-2008, 07:51 AM   #7
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
Posts: 28,212
Karma: 12265902
Join Date: Jan 2007
Location: San Borja (Lima), Peru
Device: Kindle PW2(WiFi) / FireHD; Kindle DX-G; Kobo-AuraHD,Glo,Mini; Ipad Air
Quote:
Originally Posted by ShacharWeis View Post
Hi everyone,
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)

thanks,
Shachar.

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:

http://www.mobileread.com/forums/showthread.php?t=28313



Don

Last edited by Dr. Drib; 09-04-2008 at 02:45 PM. Reason: added "Tool"
Dr. Drib is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using MS Word to quick-reformat text steven522 Ectaco jetBook 1 02-26-2010 11:02 AM
Does conversion reformat the text? dynalmadman Calibre 0 02-20-2010 08:33 PM
Reformat Memory edbro Sony Reader 1 02-01-2010 12:36 PM
Can someone help me reformat my lrf files? Horribleman LRF 0 10-03-2009 05:59 AM
I need to reformat my hard disk Nate the great Lounge 4 06-13-2009 09:19 PM


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


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