Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2024, 04:17 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Has the ePub check gotten more stringent?

Has the ePub check gotten more stringent? (Win 10, ver 7.13)

I never used to get these errors but now the missing generic message, and there seems to be order constraints in a style sheet

Quote:
ERROR: Unexpected empty block****[jacket.xhtml:75]
ERROR: Unexpected empty block****[jacket.xhtml:80]
ERROR: Unexpected empty block****[jacket.xhtml:85]
ERROR: Unexpected empty block****[jacket.xhtml:90]
ERROR: Unexpected empty block****[jacket.xhtml:111]

ERROR: Unexpected missing generic font family****[styles/Georgia.css:30]

ERROR: Expected selector "figure img" to come before selector ".imageFullHeight img"****[styles/epub_55.css:399]
ERROR: Expected selector "figure img" to come before selector ".imageFullWidth img"****[styles/epub_55.css:399]
ERROR: Expected selector "figure p" to come before selector "blockquote p:last-of-type"****[styles/epub_55.css:402]
I can fix them by adding "serif' and moving lines around, but I don't think I had to before. This book passed originally with no errors, but now i get these
phossler is offline   Reply With Quote
Old 07-01-2024, 05:14 PM   #2
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: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by phossler View Post
Has the ePub check gotten more stringent? (Win 10, ver 7.13)

I never used to get these errors but now the missing generic message, and there seems to be order constraints in a style sheet



I can fix them by adding "serif' and moving lines around, but I don't think I had to before. This book passed originally with no errors, but now i get these
These have been around since 7.x and maybe before.

The jacket code used to have a couple of empty comments: /**/
In most cases a fresh jacket cures or a saved search

I think some of these were added because of publishers rejections.
I just ignore the 'generic font ones and the order, since my edits are for personal use and my Kobo does not barf.
theducks is online now   Reply With Quote
Old 07-01-2024, 06:58 PM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I looked at stylesheet.css in the jacket.xhtml folder:

Quote:
/*
** To skip a banner item (Series|Published|Rating|Tags),
** edit the appropriate CSS rule below.
*/
table.cbj_header tr.cbj_series {
/* Uncomment the next line to remove 'Series' from banner section */
/* display:none; */
}

but Calibre editor 'drops' comments and thinks it's an empty block since it's nothing but comments:

Quote:
table.cbj_header tr.cbj_series {


}
Personally, I'd prefer all comments to be left in



My editing is just to make mostly PD books more readable in my Kindle so I have personal style sheet that I use, current version is epub_55.css, so I can just 'fix' them in epub_56.css

My personal CSS has a lot of personal preferences in, but 'Remove Unused CSS Rules' cleans them up. Normally I don't have any empty blocks there
phossler is offline   Reply With Quote
Old 07-01-2024, 09:18 PM   #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,995
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Epubcheck is a user installed Editor plugin, the contents of this thread should be moved into the relevant thread in the Plugins subforum where its developer is more likely to see it, see ==>> Index of plugins

BR
BetterRed is online now   Reply With Quote
Old 07-02-2024, 09:12 AM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Sorry - I was asking about the Debug feature that checks my ePubs that is built into Editor
phossler is offline   Reply With Quote
Old 07-02-2024, 09:43 AM   #6
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: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
CSS linting was added a while ago, that is probably where you are getting these messages from. You must have updated from a very old version of calibre.

And no the editor doesnt drop comments from stylesheets. That will likely be the conversion, though even there, empty rules are completely dropped IIRC.
kovidgoyal is offline   Reply With Quote
Old 07-02-2024, 09:45 AM   #7
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: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
And I tried converting to epub inserting metadata as jacket and the editor check gave me no errors.
kovidgoyal is offline   Reply With Quote
Old 07-02-2024, 12:19 PM   #8
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@all -- Thanks for additional information

In jacket.xhtml's stylesheet.css I have this


Quote:
/*Added for personal preference */
p {
margin-bottom: 1em;
line-height:125%;
}
.emptywithonlycomments{
/* comment 1 */
/* comment 2 */
/* comment 3 */
/* comment 4 */
}
ModifyEpub Add/Modify Jacket adds this to the epub

Quote:
.emptywithonlycomments{




}
and Calibre debug flags it as an error. I don't remember that condition being flagged as an error

Didn't mean to imply that Calibre was dropping comments, only that empty blocks were flagged as an error
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	43
Size:	41.2 KB
ID:	209328  

Last edited by phossler; 07-02-2024 at 12:27 PM.
phossler is offline   Reply With Quote
Old 07-02-2024, 12:41 PM   #9
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: 44,526
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Like I said CSS linting was added a while ago.
kovidgoyal is offline   Reply With Quote
Old 07-02-2024, 01:21 PM   #10
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: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by phossler View Post
@all -- Thanks for additional information

In jacket.xhtml's stylesheet.css I have this




ModifyEpub Add/Modify Jacket adds this to the epub



and Calibre debug flags it as an error. I don't remember that condition being flagged as an error

Didn't mean to imply that Calibre was dropping comments, only that empty blocks were flagged as an error
That is a just a Warning (advisory). Some may want to actually Put stuff there or leave or clean out (minimalist code ).
BTW I have seen the original many times, I just can't remember which publisher has this as their default (house template to coders).
Just like here on MR, using the house stylesheet classes gets ignored by the 'that looks good (in the preview)' cheap hire coders. <p class="adcard"> for regular paragraphs in the entire book. or 'xyz goes here'
just lowest bidder sloppy code
I also note house stylesheets instruct the coder to NOT EDIT the sheet.

Simple. If that is done, you can auto clean unused before shipping AND IF I need to edit the book that uses something cleaned, just restore the default (since that has everything we started with), do the update edits, and clean before shipping
theducks is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Smashwords Epub check and Sigil et al epub check? BruceDickson ePub 2 05-30-2024 05:35 PM
Epub from Calibre fails epub check in D2D LCY Calibre 2 05-06-2018 01:14 AM
What does 'Well-Formed Check EPUB' actually check? bookman156 Sigil 21 03-20-2016 07:31 PM
epub check error help jenny clarkson ePub 1 10-19-2011 10:26 AM
ePub Corrections Check - Help. nboshart ePub 3 10-01-2009 05:25 PM


All times are GMT -4. The time now is 09:41 PM.


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