|
|
Thread Tools | Search this Thread |
10-10-2018, 03:55 PM | #1 |
Junior Member
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! |
10-10-2018, 10:55 PM | #2 |
creator of calibre
Posts: 43,850
Karma: 22666666
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
|
Advert | |
|
10-11-2018, 01:59 PM | #3 | |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2012
Location: Harrisonburg, VA - USA
Device: Kindle, Nook, iPad
|
Quote:
https://manual.calibre-ebook.com/gen...font-rescaling |
|
Tags |
blockquote, css, ebook-convert, font-size |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anyone here ever seen csCF6BBF71 type style classes? | Hitch | ePub | 64 | 04-20-2016 08:40 PM |
Custom style names in CSS | flipsake | Conversion | 0 | 11-30-2013 09:09 AM |
Custom Chapterhead style --- possible in CSS? | GrannyGrump | ePub | 10 | 09-18-2013 09:58 PM |
Feature Request - custom CSS style | gentoosiast | EPUBReader | 1 | 12-14-2012 03:26 AM |
how to modify style of specific p classes? | clemens14 | ePub | 10 | 11-27-2011 04:21 PM |