Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2022, 11:58 AM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 68,648
Karma: 113245921
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by enuddleyarbl View Post
I ran across something like that a week or so ago. I think I'll set up a saved search to look for any style= tags (just in case I don't catch one of those if it happens again).
You may not want to dump inline styles just like that as you'll need to see what you'll need to sort out in the CSS before you dump them.
JSWolf is offline   Reply With Quote
Old 10-01-2022, 02:54 PM   #17
enuddleyarbl
Evangelist
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 477
Karma: 697598
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by jhowell View Post
No. My understanding is that a file reference replaced by sixteen "X" characters in KF8 format means that it was removed during conversion, usually because it was unreferenced.
OK. I've got to wonder what's going on with the book, then. If I edit the Added AZW3 book in the Calibre editor, I get the same behavior. Ditto for using KindleUnpack > AZW3 > KF8 to ePub. But, if I go the Unpack AZW3 route, when I try to open the resulting epub, I get:
Quote:
calibre, version 6.6.1
ERROR: Failed to open book: Failed to open book, it has obfuscated fonts, but the obfuscation key is missing from the OPF. Do an EPUB to EPUB conversion before trying to edit this book
Doing the epub > epub conversion gives the same issue as my original attempts.

Looking at the stylesheets the fonts are on (it turns out there are another two unreferenced fonts on another stylesheet), they're only linked to on two files (the Also By page and the Next Read ad). But, no fonts, styles or classes from those stylesheets are used.

Odd that the publisher would include fonts in the stylesheets but not actually include them in the book. I suppose they just dump their standard stuff into the book and don't bother to winnow out the unused material.

Oh, well. I used Modify ePub to strip out the fonts and went from there. Thanks again.
enuddleyarbl is offline   Reply With Quote
Old 10-01-2022, 06:19 PM   #18
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 28,020
Karma: 46346682
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
I rarely convert ePub > ePub. I just go in and fix the code by hand.
IMHO this is the safest way to avoid ANY OTHER changes.
Again, I agree with Jon (I think that is 2 times this year )
theducks is offline   Reply With Quote
Old 10-01-2022, 06:23 PM   #19
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 28,020
Karma: 46346682
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by enuddleyarbl View Post


Odd that the publisher would include fonts in the stylesheets but not actually include them in the book. I suppose they just dump their standard stuff into the book and don't bother to winnow out the unused material.

Oh, well. I used Modify ePub to strip out the fonts and went from there. Thanks again.
Publishers develop House style sheets, then they can't be bothered to clean up.
The argument is lame, if the want to use a style definition that was deleted. Doh! Just restore the original house sheet, make your changes, then clean again
theducks is offline   Reply With Quote
Old 10-01-2022, 06:25 PM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 68,648
Karma: 113245921
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Load the KF8 into Calibre's Editor and see what fonts are being embedded. Chances are you won't need or want them. But if you do, you may be able to fix them by using KindleUnpack > ePub and load the ePub into Sigil and right click on the fonts to try to remove the obfuscation. Then you can either edit in Sigil or go back to the Calibre editor.
JSWolf is offline   Reply With Quote
Old 10-01-2022, 06:26 PM   #21
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 68,648
Karma: 113245921
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You can sometimes get around 100 (or so) unused styles. It's crazy.
JSWolf is offline   Reply With Quote
Old 10-14-2022, 10:31 PM   #22
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 740232
Join Date: Mar 2016
Device: none
Quote:
You can sometimes get around 100 (or so) unused styles. It's crazy.
The trouble is you forget what styles you're using, so they probably leave them all in just to make sure.
bookman156 is offline   Reply With Quote
Old 10-14-2022, 11:52 PM   #23
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 22,343
Karma: 102454335
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bookman156 View Post
The trouble is you forget what styles you're using, so they probably leave them all in just to make sure.
That's why my preference is to load in my rather large default stylesheet and then remove unused styles when I'm done. I also strip the comments since they are for my benefit and likely not very useful to anyone else.

After a couple of years of maintaining that stylesheet, I admit to feeling a lot more sympathy for some users of publisher stylesheets where multiple suckers have to use it.
DNSB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub CSS Stylesheet: body, html {...? enuddleyarbl ePub 28 09-12-2022 05:09 PM
Calibre default CSS to <body> heitormsilva Conversion 11 11-24-2017 11:46 AM
In CSS, * or body? Arios ePub 10 11-03-2015 11:15 AM
CSS <body> vs. <p> question Amalthia Conversion 7 01-21-2014 02:50 AM
How to change the font-size in the body tag in css? naisren Conversion 2 10-01-2012 06:52 PM


All times are GMT -4. The time now is 06:00 AM.


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