Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2010, 09:27 PM   #1
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
How do I fix formatting on this ebook

I got a copy of an ebook from a friend that I want to read. Unfortunately, whomever made the book put a "new paragraph" token at the end of EVERY SINGLE LINE of the book. Is there any simple way to fix this that anyone knows of? The book is unreadable as is. Edit: removed attachment

Last edited by lunixer; 08-16-2010 at 10:28 PM.
lunixer is offline   Reply With Quote
Old 08-16-2010, 09:35 PM   #2
Marcy
Guru
Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.Marcy ought to be getting tired of karma fortunes by now.
 
Marcy's Avatar
 
Posts: 893
Karma: 950683
Join Date: Oct 2009
Device: Kobo Libra2
It probably isn't the best idea to post illegal ebook copies from the darknet here.

-Marcy
Marcy is offline   Reply With Quote
Advert
Old 08-16-2010, 10:05 PM   #3
jgaiser
Omnivorous
jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.jgaiser ought to be getting tired of karma fortunes by now.
 
jgaiser's Avatar
 
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
Quote:
Originally Posted by Marcy View Post
It probably isn't the best idea to post illegal ebook copies from the darknet here.
Hmm... Yep.. Don't think you'll get much help.
jgaiser is offline   Reply With Quote
Old 08-16-2010, 10:26 PM   #4
pshrynk
Beepbeep n beebeep, yeah!
pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.
 
pshrynk's Avatar
 
Posts: 11,726
Karma: 8255450
Join Date: Apr 2008
Location: La Crosse, Wisconsin, aka America's IceBox
Device: iThingie, KmkII, I miss Zelda!
That is, in fact a copyrighted book and cannot be posted here. What you and your friend do between yourselves is not our business, but please be aware that we will need to remove the attachment due to copyright laws.

On the other hand, you might be able to get some advice here on how to fix it, since that is not a proscribed activity. We just can't actually look at the book...

pshrynk (moderator)

Last edited by pshrynk; 08-16-2010 at 10:28 PM.
pshrynk is offline   Reply With Quote
Old 08-16-2010, 10:29 PM   #5
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by Marcy View Post
It probably isn't the best idea to post illegal ebook copies from the darknet here.

-Marcy
Oh, yeah. Sorry. Didn't really think about that. So, any idea how I would fix the document with the details given above?
lunixer is offline   Reply With Quote
Advert
Old 08-16-2010, 10:30 PM   #6
lunixer
Addict
lunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-bookslunixer has learned how to read e-books
 
lunixer's Avatar
 
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
Quote:
Originally Posted by pshrynk View Post
That is, in fact a copyrighted book and cannot be posted here. What you and your friend do between yourselves is not our business, but please be aware that we will need to remove the attachment due to copyright laws.

On the other hand, you might be able to get some advice here on how to fix it, since that is not a proscribed activity. We just can't actually look at the book...

pshrynk (moderator)
Sorry. I stand corrected and will make sure not to post any more documents on the site.

So, without the document, the problem is that whoever created the document put a new paragraph at the end of every line. Is there a simple way to fix this other than going through the document and manually deleting the new paragraph lines and replacing them with a space?

Last edited by lunixer; 08-16-2010 at 10:34 PM.
lunixer is offline   Reply With Quote
Old 08-16-2010, 10:32 PM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lunixer View Post
Oh, yeah. Sorry. Didn't really think about that. So, any idea how I would fix the document with the details given above?
Buy a real copy that doesn't have the problem.
JSWolf is offline   Reply With Quote
Old 08-16-2010, 10:33 PM   #8
pshrynk
Beepbeep n beebeep, yeah!
pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.pshrynk ought to be getting tired of karma fortunes by now.
 
pshrynk's Avatar
 
Posts: 11,726
Karma: 8255450
Join Date: Apr 2008
Location: La Crosse, Wisconsin, aka America's IceBox
Device: iThingie, KmkII, I miss Zelda!
No prob. Good luck with figuring out how to fix your problem. Sorry, but I have no idea even whereto begin. Maybe there is something you could do with Sigil.
pshrynk is offline   Reply With Quote
Old 08-16-2010, 10:50 PM   #9
ardeegee
Maratus speciosus butt
ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.ardeegee ought to be getting tired of karma fortunes by now.
 
ardeegee's Avatar
 
Posts: 3,292
Karma: 1162698
Join Date: Sep 2009
Device: PRS-350
Is each paragraph separated by a double paragraph mark so that there is a blank line between paragraphs? If so, the fix is easy:

First, do a find/replace of every double paragraph character and replace it with a unique string that won't be found in the document, for example a string of 10 "z"s. Second, do a find/replace for every paragraph mark, replacing it with a space or double-space (depending on how the sentences are separated in the document.) Third, go back and change that string of characters (the 10 "z"s or whatever) back into paragraph marks-- back to double paragraph marks if you want a line between paragraphs, or to a single paragraph mark and a tab or series of spaces if that is your preference. The whole task should take just a few seconds providing that you have a program that can find/replace control characters (MS Word can do it.)

If there is no double paragraph mark between paragraphs, you're screwed. (Unless it uses a tab or series of spaces to mark a new paragraph, then you use the first step find/replace for a paragraph mark followed by a tab to be replaced by the unique string.)

Last edited by ardeegee; 08-16-2010 at 10:52 PM.
ardeegee is offline   Reply With Quote
Old 08-16-2010, 11:12 PM   #10
MovieBird
TuxSlash
MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.MovieBird ought to be getting tired of karma fortunes by now.
 
MovieBird's Avatar
 
Posts: 392
Karma: 2436547
Join Date: Oct 2009
Device: GlowNook
Do a Google search for "Regular Expressions". You can change the epub ending to zip, and unzip everything into a folder. Then you can perform a find and replace via something like sed on the folder, and just replace all the new paragraph tokens with nothing.
MovieBird is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I fix small font of a ebook Atagahi Sony Reader 3 09-13-2010 03:05 PM
How do I fix bad formatting? ghostgrass Calibre 12 05-24-2010 02:18 PM
Gizmodo article: How To Fix Today's Ebook readers ekaser News 76 04-30-2010 05:10 AM
Grey, not black, font colour in eBook: how to fix? giacecco Sony Reader 2 01-04-2009 08:09 AM
eBook Formatting in General daffy4u Lounge 12 09-06-2008 11:12 PM


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


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