Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2017, 09:31 PM   #1
heitormsilva
Junior Member
heitormsilva began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2017
Device: Kindle Paperwhite
Question 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/>?
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20171029_232819.png
Views:	166
Size:	39.5 KB
ID:	159685  
Attached Files
File Type: epub test - Desconhecido.epub (2.6 KB, 83 views)
File Type: azw3 test - Desconhecido.azw3 (10.8 KB, 140 views)
heitormsilva is offline   Reply With Quote
Old 10-29-2017, 10:14 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: 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.
kovidgoyal is offline   Reply With Quote
Old 10-29-2017, 11:00 PM   #3
heitormsilva
Junior Member
heitormsilva began at the beginning.
 
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?
heitormsilva is offline   Reply With Quote
Old 10-30-2017, 01:48 AM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by heitormsilva View Post
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?
See ==>> Overriding icons, templates, et cetera

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
BetterRed is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:44 PM.


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