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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2013, 05:43 PM   #1
Katsunami
Wizard
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 2,964
Karma: 14042679
Join Date: Mar 2008
Location: Netherlands
Device: Kindle Paperwhite
[Fix] Converting Feedbooks.com public domain EPUBs to AZW3

Maybe people know FeedBooks.com. They have a lot of public domain books, that are formatted very nicely.

I've have noticed that, when converting from EPUB to AZW3 for the Paperwhite, the header markup goes awry. Feedbooks uses a huge (and I mean HUGE) chapter number. See Attachment 1.

Not all of FeedBooks EPUB's have this markup, but there are many that do, and they all seem to use the same classnames, at least the ones I've tested. Of course I can't predict what will happen if you use this CSS on a book that does not have this particular markup.

The Kindle Paperwhite / AZW3 doesn't seem to support that correctly. See Attachment 2 to see how it looks.

While this is not unusable by any means, it doesn't look pretty. With some extra CSS, the chapter heading can be fixed, allthough the huge chapter number will be smaller (even though the size is still set at 94px. I haven't investigated this). See attachment 3 to see how it looks. If you want, you could try to keep the huge chapter number, and make the font size even bigger than 94px, but I have not tested this.

Here is the CSS you can use in "Extra CSS" when converting to AZW3, to obtain a layout as is shown in the third attachment. (Note that, if you open this AZW3 in the Calibre viewer, it will look wrong.)

Code:
.chapterHeader {
  text-align: left;
  margin-bottom: 50px;
}

.chapterHeader .translation {
  margin-left: -5px;
}
                             
.chapterHeader .count {
  font-size: 94px;
  margin-right: 0px;
  margin-top: 40px;
  margin-bottom: 0px;
}

.text {
  clear: both;
}
Hopefully someone else but me has some use for this

PS: You can also convert to MOBI (old MOBI 6 format), which does not support markup such as this, and the file will look fine. However, I can understand that people may not want to convert to such an old format if they have a new Kindle.
Attached Thumbnails
Click image for larger version

Name:	CalibreAlice.jpg
Views:	38
Size:	231.9 KB
ID:	111040   Click image for larger version

Name:	OldCSS.png
Views:	35
Size:	35.7 KB
ID:	111041   Click image for larger version

Name:	NewCSS.png
Views:	35
Size:	34.5 KB
ID:	111042  

Last edited by Katsunami; 09-14-2013 at 05:48 PM.
Katsunami is offline   Reply With Quote
Reply

Tags
feedbooks header fix

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does one know if an image is public domain? Rizla General Discussions 24 06-22-2012 03:35 AM
Public Domain in the US? Maybe not... guyanonymous General Discussions 2 01-20-2012 02:45 PM
Is there any way to download the free public domain books as epubs? tecweston Kobo Reader 19 12-08-2011 11:20 AM
Movies in the Public Domain obsessed2 enTourage eDGe 2 12-04-2011 03:57 PM
Public Domain in 2010 seagull Reading Recommendations 16 01-01-2010 12:31 PM


All times are GMT -4. The time now is 08:35 AM.


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