Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2010, 02:17 PM   #1
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
EPUB Overlapping Text - Please Help

For Calibre:

Converted my entire ebook collection to EPUB and ended up with books that have overlapping text. I have tried changing the font sizes and line spacing but nothing seems to fix it. Please help.

Attached - actual EPUB file and 2 screen shots
Attached Thumbnails
Click image for larger version

Name:	screenshot.1280081612.jpeg
Views:	941
Size:	387.2 KB
ID:	55693   Click image for larger version

Name:	screenshot.1280081625.jpeg
Views:	883
Size:	678.7 KB
ID:	55694  
Attached Files
File Type: epub Mlodinow, Leonard - [ ] The Drunkard's Walk_ How Randomness Rules Our Lives.epub (704.5 KB, 314 views)
coaver is offline   Reply With Quote
Old 07-25-2010, 03:52 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by coaver View Post
Converted my entire ebook collection to EPUB and ended up with books that have overlapping text. I have tried changing the font sizes and line spacing but nothing seems to fix it. Please help.
Usually I have Line Height set to 0.0pt but when I run into this I just make sure the Line Height is set 1.5pt higher then my base font. See attached.
Attached Thumbnails
Click image for larger version

Name:	lookandfeel.png
Views:	1031
Size:	93.0 KB
ID:	55702  
DoctorOhh is offline   Reply With Quote
Advert
Old 07-25-2010, 04:10 PM   #3
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
Quote:
Originally Posted by dwanthny View Post
Usually I have Line Height set to 0.0pt but when I run into this I just make sure the Line Height is set 1.5pt higher then my base font. See attached.
That fixed the title and chapter section but the actual text of the book is still overlapping. Any other suggestions? Settings tweaks?
coaver is offline   Reply With Quote
Old 07-25-2010, 04:30 PM   #4
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,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I had a look at your book and it is a real mess. I deleted all the line-height lines in the CSS and that fixed the problem of the lines running into each other. But the formatting is still awful. Readable but awful.
JSWolf is offline   Reply With Quote
Old 07-25-2010, 04:40 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by coaver View Post
That fixed the title and chapter section but the actual text of the book is still overlapping. Any other suggestions? Settings tweaks?
Open the file up in Sigil (forum here) and fix it.

Here's an example from your file. When you look at the code view of your main body of text, most of your paragraphs are <p class="cotx">. When you look at the style.css file cotx looks like this:

.cotx { border-bottom: 0;
border-top: 0;
display: block;
font-size: 0.70588em;
line-height: 0.1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 0
}

Changing line-height to 1.1em fixes most of your text.

Now just find the other areas that are still messed up and see what code handles that element and change the css until it works. There seems to be a lot of areas that need fixing.

Good Luck
DoctorOhh is offline   Reply With Quote
Advert
Old 07-25-2010, 05:24 PM   #6
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
Quote:
Originally Posted by dwanthny View Post
Open the file up in Sigil (forum here) and fix it.

Here's an example from your file. When you look at the code view of your main body of text, most of your paragraphs are <p class="cotx">. When you look at the style.css file cotx looks like this:

.cotx { border-bottom: 0;
border-top: 0;
display: block;
font-size: 0.70588em;
line-height: 0.1em;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 0
}

Changing line-height to 1.1em fixes most of your text.

Now just find the other areas that are still messed up and see what code handles that element and change the css until it works. There seems to be a lot of areas that need fixing.

Good Luck
I have about 600 books formatted like this. Any advice on bulk reformatting via Calibre?
coaver is offline   Reply With Quote
Old 07-25-2010, 06:40 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,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Can you post the original of the book you've posted in ePub so we can see what can be done to reconvert it into ePub?
JSWolf is offline   Reply With Quote
Old 07-25-2010, 07:30 PM   #8
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
Sure - here are several files for you to look at.

My husband took my whole ebook collection and reformatted the EPUB files with Calibre and they all have the text that overlaps. Obviously he seriously messed up my files.

I have about 600 books that turned out like this. When I read them on my Android phone using Aldiko they are fine but viewing them on our Nook or via the Calibre ebook viewer shows the overlapping text.

for any help you can provide.
coaver is offline   Reply With Quote
Old 07-25-2010, 08:33 PM   #9
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,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Do you still have the original ePub before he messed them up?

I know Calibre doesn't touch the original files if you use the GUI. So maybe you still have them. If you do, you can save them in place of these messed up ones. Then you can make sure your hubby has very good life insurance for when you hire the hit man to kill him for his dastardly deed.

What wah was wrong with the originals that they needed to be fully converted from ePub to ePub?
JSWolf is offline   Reply With Quote
Old 07-25-2010, 09:51 PM   #10
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
Nope, no originals. He wiped the folder and then replaced everything with the new ones. He was trying to correct the margins for the Nook.

Yes, I am going to have to kill him. I have been building this collection for about 8 years now. I started reading ebooks on my Palm M100 back around 2002.

I am trying to find a way to make it look like an accident but anyone who knows us will know it was me.

I was able to test a few files for correction with the Kobo EPUB bulk fixer. Looks promising but I don't have time to mess with it any more today. I will have to follow up tomorrow after work.

I am thinking if I fix the files (strip the CSS info) with the KOBO program then run them through Calibre for reformatting that might take care of most of the files. What do you think? I prefer to do it all in Calibre but I am beginning to think that will not be possible.

I think I am going to have to take up drinking. It is as good a time as any to start...
coaver is offline   Reply With Quote
Old 07-25-2010, 10:11 PM   #11
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,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
One more problem is that he managed to lose all of your indents.
JSWolf is offline   Reply With Quote
Old 07-25-2010, 10:21 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Convert them from epub to epub again, puttin the following in extra css

Code:
.calibre, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7, .calibre8, .calibre9, .calibre10, .calibre11, .calibre12, .calibre13, .calibre14, .calibre15, .calibre16, .calibre17, .calibre18, .calibre19, .calibre20, .calibre21, .calibre22, .calibre23, .calibre24, .calibre25, .calibre26, .calibre27, .calibre28, .calibre29, .calibre30, .calibre31, .calibre32, .calibre33, .calibre34, .calibre35, .calibre36, .calibre37, .calibre38, .calibre39, .calibre40, .calibre41, .calibre42, .calibre43, .calibre44, .calibre45, .calibre46, .calibre47, .calibre48, .calibre49, .calibre50, .calibre51, .calibre52, .calibre53, .calibre54, .calibre55, .calibre56, .calibre57, .calibre58, .calibre59, .calibre60, .calibre61, .calibre62, .calibre63, .calibre64, .calibre65, .calibre66, .calibre67, .calibre68, .calibre69, .calibre70, .calibre71, .calibre72, .calibre73, .calibre74, .calibre75, .calibre76, .calibre77, .calibre78, .calibre79, .calibre80, .calibre81, .calibre82, .calibre83, .calibre84, .calibre85, .calibre86, .calibre87, .calibre88, .calibre89, .calibre90, .calibre91, .calibre92, .calibre93, .calibre94, .calibre95, .calibre96, .calibre97, .calibre98, .calibre99{ line-height: 1.1em }
kovidgoyal is online now   Reply With Quote
Old 07-25-2010, 10:24 PM   #13
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by JSWolf View Post
I had a look at your book and it is a real mess. I deleted all the line-height lines in the CSS and that fixed the problem of the lines running into each other. But the formatting is still awful. Readable but awful.
Deleteing all of the line-height lines from the css did indeed work to fix the overlap.

Quote:
Originally Posted by coaver View Post
My husband took my whole ebook collection and reformatted the EPUB files with Calibre and they all have the text that overlaps. Obviously he seriously messed up my files.
Even without seeing the original books I can tell you that these files did not meet my own minimum acceptable formatting standards, which are lax by most folks accounts.

Removing the line-height entries from the style.css in each book with create a book with the same approximate formatting as the originals.

I'm sorry I don't have the skillset for creating a batch process to accomplish this.
DoctorOhh is offline   Reply With Quote
Old 07-25-2010, 10:51 PM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by kovidgoyal View Post
Convert them from epub to epub again, puttin the following in extra css
Adding that into the extra css worked great for:

1. 13 Things That Don't Make Sense: The Most Baffling Scientific Mysteries of Our Time

But not so much for:

2. The Drunkard's Walk: How Randomness Rules Our Lives

I converted the above two files to LRF then back to Epub (with standard default settings) and that removed all overlapping of lines.
DoctorOhh is offline   Reply With Quote
Old 07-26-2010, 08:22 PM   #15
coaver
Member
coaver began at the beginning.
 
coaver's Avatar
 
Posts: 22
Karma: 10
Join Date: Jul 2010
Device: Kindle 3 & Kindle for Android
Quote:
Originally Posted by kovidgoyal View Post
Convert them from epub to epub again, puttin the following in extra css

Code:
.calibre, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7, .calibre8, .calibre9, .calibre10, .calibre11, .calibre12, .calibre13, .calibre14, .calibre15, .calibre16, .calibre17, .calibre18, .calibre19, .calibre20, .calibre21, .calibre22, .calibre23, .calibre24, .calibre25, .calibre26, .calibre27, .calibre28, .calibre29, .calibre30, .calibre31, .calibre32, .calibre33, .calibre34, .calibre35, .calibre36, .calibre37, .calibre38, .calibre39, .calibre40, .calibre41, .calibre42, .calibre43, .calibre44, .calibre45, .calibre46, .calibre47, .calibre48, .calibre49, .calibre50, .calibre51, .calibre52, .calibre53, .calibre54, .calibre55, .calibre56, .calibre57, .calibre58, .calibre59, .calibre60, .calibre61, .calibre62, .calibre63, .calibre64, .calibre65, .calibre66, .calibre67, .calibre68, .calibre69, .calibre70, .calibre71, .calibre72, .calibre73, .calibre74, .calibre75, .calibre76, .calibre77, .calibre78, .calibre79, .calibre80, .calibre81, .calibre82, .calibre83, .calibre84, .calibre85, .calibre86, .calibre87, .calibre88, .calibre89, .calibre90, .calibre91, .calibre92, .calibre93, .calibre94, .calibre95, .calibre96, .calibre97, .calibre98, .calibre99{ line-height: 1.1em }
Thank you for the suggestion bu this did not seem to help the files. I appreciate your help. I ended up using the Kobo Bulk File Fixer to strip the CSS and then import the file back in to Calibre. That seemed to fix almost all the files. The ones that it did not fix I used Calibre to convert from epub to epub but selected the option to add a line at paragraph marks. I think the files are going to be ok now. I am going through to spot check them.

I just have to say you all have been a great help and I appreciate all your advice and suggestions.

I also need to mention that I love Calibre and I don't know how I would manage my ebook collection without it. I use it almost every single day!

Now, does anyone want to flog my husband for me?
coaver is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AZW to EPUB conversion - overlapping letters suecsi Calibre 4 10-16-2010 11:53 PM
PDF to Epub - Images with Text ebahm Calibre 2 09-19-2010 03:23 PM
Converting certain punctuations from text to epub greenapple Calibre 2 05-28-2010 08:27 PM
LIT to EPUB Text Justification Solicitous Calibre 5 11-17-2009 06:31 AM
Justified text in ePub? kiwik ePub 5 03-07-2009 02:35 PM


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


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