08-16-2010, 10:27 PM | #1 |
Addict
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 11:28 PM. |
08-16-2010, 10:35 PM | #2 |
Guru
Posts: 897
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 |
Advert | |
|
08-16-2010, 11:05 PM | #3 |
Omnivorous
Posts: 3,281
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
|
08-16-2010, 11:26 PM | #4 |
Beepbeep n beebeep, yeah!
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 11:28 PM. |
08-16-2010, 11:29 PM | #5 |
Addict
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
|
Advert | |
|
08-16-2010, 11:30 PM | #6 | |
Addict
Posts: 231
Karma: 928
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
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 11:34 PM. |
|
08-16-2010, 11:32 PM | #7 |
Resident Curmudgeon
Posts: 76,465
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
08-16-2010, 11:33 PM | #8 |
Beepbeep n beebeep, yeah!
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.
|
08-16-2010, 11:50 PM | #9 |
Maratus speciosus butt
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 11:52 PM. |
08-17-2010, 12:12 AM | #10 |
TuxSlash
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.
|
|
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 04:05 PM |
How do I fix bad formatting? | ghostgrass | Calibre | 12 | 05-24-2010 03:18 PM |
Gizmodo article: How To Fix Today's Ebook readers | ekaser | News | 76 | 04-30-2010 06:10 AM |
Grey, not black, font colour in eBook: how to fix? | giacecco | Sony Reader | 2 | 01-04-2009 09:09 AM |
eBook Formatting in General | daffy4u | Lounge | 12 | 09-07-2008 12:12 AM |