10-29-2017, 09:31 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
|
Calibre changes appearance of <hr/>
Hi guys.
I've been looking for the best way of running conversions from EPUB to AZW3 without having any side effect on resulting file. However, I just can't understand why Calibre changes the default values of the <hr/> tag to end with a line with a different appearance. Check attached files to see what I mean. How could I deal with this without having to define a CSS class to <hr/>? |
10-29-2017, 10:14 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's called a user agent stylesheet -- the default css that is applied to all elements. Look at the file resources/templates/html.css in the calibre isntallation directory.
|
10-29-2017, 11:00 PM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
|
That is what I expect, leave for the user agent to apply its default values, but if Calibre insert "its own default values" it won't happen.
After your post I took a look at the file you mentioned and I guess that if I change things there will reflect on this process, but this kind of change is problematic and probably will be lost at next Calibre's update. Could a check box which features something like "don't change CSS or any format" be added to the conversion feature of Calibre to features something like a "copy/paste" from one file type to another? |
10-30-2017, 01:48 AM | #4 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Anything shipped in the installed resources directory can be overridden in the configuration resources directory. The overrides will survive Calibre updates. BR Last edited by BetterRed; 10-30-2017 at 02:00 AM. Reason: added last sentence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How To Change Appearance of Calibre | HisLittleOne | Calibre | 3 | 12-10-2014 12:05 AM |
2.12 Changed appearance | AFTommy | Calibre | 7 | 12-03-2014 04:23 AM |
Best appearance font | danielcork1 | Which one should I buy? | 1 | 07-28-2011 06:33 AM |
Sigil Appearance | chrisparker | Sigil | 12 | 05-23-2011 05:36 AM |
changing appearance on an older calibre | coolnamehere | Calibre | 0 | 04-03-2011 09:07 PM |