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 10-10-2018, 04:55 PM   #1
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
ebook-convert appending unruly style properties to custom CSS classes

Hi,

I ran into a possible bug in the command line ebook-convert utility. I wonder if there's a workaround, or anything I can do to bypass this issue.

The issue is that Calibre appears to be altering the font-size of blockquotes in certain documents. It appears to be adding CSS font-size properties to classes defined by the inline CSS, which overrides the intended font-size of blockquotes in the document.

The enclosed "Test.html" has identical CSS to "Test2.html", defined in the <style> element in the head of each document. "Test.epub", derived from "Test.html", displays the blockquotes correctly. But "Test2.epub", derived from "Test2.html", is displaying them much larger than intended.

I appended .txt to the HTML filenames, because the forum would not allow them to be uploaded otherwise. I also included the double-verbose output of the ebook-convert command.

Is there a flag I can add to the ebook-convert command to stop Calibre from altering the stylesheet? Please let me know if you have any advice or suggestions.

Thank you!
Attached Files
File Type: epub Test.epub (13.7 KB, 16 views)
File Type: epub Test2.epub (11.9 KB, 17 views)
File Type: txt conversionlog.txt (4.3 KB, 17 views)
File Type: txt Test.html.txt (5.9 KB, 14 views)
File Type: txt Test2.html.txt (16.6 KB, 15 views)
johnstephens is offline   Reply With Quote
Old 10-10-2018, 11:55 PM   #2
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: 33,743
Karma: 10215946
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the option to turn off font size rescaling. https://manual.calibre-ebook.com/conversion.html#fonts
kovidgoyal is offline   Reply With Quote
Advert
Old 10-11-2018, 02:59 PM   #3
johnstephens
Junior Member
johnstephens began at the beginning.
 
johnstephens's Avatar
 
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
Quote:
Originally Posted by kovidgoyal View Post
Use the option to turn off font size rescaling. https://manual.calibre-ebook.com/conversion.html#fonts
Thank you so much, Kovid! After reading up on that feature, I found the appropriate command line flag here:
https://manual.calibre-ebook.com/gen...font-rescaling
johnstephens is offline   Reply With Quote
Reply

Tags
blockquote, css, ebook-convert, font-size

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone here ever seen csCF6BBF71 type style classes? Hitch ePub 64 04-20-2016 09:40 PM
Custom style names in CSS flipsake Conversion 0 11-30-2013 10:09 AM
Custom Chapterhead style --- possible in CSS? GrannyGrump ePub 10 09-18-2013 10:58 PM
Feature Request - custom CSS style gentoosiast EPUBReader 1 12-14-2012 04:26 AM
how to modify style of specific p classes? clemens14 ePub 10 11-27-2011 05:21 PM


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


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