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 09-20-2019, 04:12 PM   #1
Camelot
Connoisseur
Camelot began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Feb 2015
Device: Sony PRS-T1
blank sites when convert azw to epub

When convert a Kindle ebook from the german publisher "Forever" to epub, all sites are blank.

I think the problem is the following from the original stylesheet:
Code:
*::footnote-call {
  content: none;
  display: none;
}
After the conversion, all classes have display:none.

I created a small test file and attached the original CSS file.
Convert the test.epub to epub and you can see the problem.

Calibre v3.48
OS: Siduction (Debian/sid)
Attached Files
File Type: epub test.epub (9.1 KB, 92 views)
File Type: txt wrong.css.txt (16.4 KB, 101 views)
Camelot is offline   Reply With Quote
Old 09-20-2019, 10:20 PM   #2
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
You might try setting up a transform styles rule in the conversion--Look and feel, Transform styles tab. I tried "if the property content is none remove the property" and "if the property display is none change the value to block". That worked for the test file, but it might be more complicated on the real thing. I didn't try and understand that whole messy css.

If I had a book with that "wrong.css" and wanted to make it readable for me, I'd rip out all that nonsense and use my own css file anyway, in the editor.
retiredbiker is offline   Reply With Quote
Advert
Old 09-21-2019, 05:59 AM   #3
Camelot
Connoisseur
Camelot began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Feb 2015
Device: Sony PRS-T1
It works with the rule, but I must delete it for other books to be on the safe side:
Code:
# If the property display is none
# Remove the property
match_type: is
action_data: 
action: remove
query: none
property: display
But is that a converting bug from Calibre or not?

edit: wrong.css is not the original file name

Last edited by Camelot; 09-21-2019 at 11:43 AM.
Camelot is offline   Reply With Quote
Old 09-21-2019, 11:45 AM   #4
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
Originally Posted by Camelot View Post
But is that a converting bug from Calibre or not?
I would not call it a bug at all. Given the infinite array of coding garbage available in e-books, combined with different users expectations of what makes a "good" conversion, and the tools provided to deal with exceptional situations like this...what would you want? The software should read your mind and do it your way?
retiredbiker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to convert html to azw or epub Lucas Malor Calibre 36 11-02-2013 05:12 AM
Trying to convert azw book SwordPen Apple Devices 4 08-12-2013 04:14 AM
Convert azw to epub or pdf? NLight95 Calibre 5 06-19-2011 06:04 AM
how to convert to azw files ? geordiejohn Calibre 5 12-09-2010 12:41 PM
how to convert azw files? lizzybeth05 Amazon Kindle 11 02-17-2010 01:47 PM


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


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