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-22-2011, 01:27 PM   #1
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,495
Karma: 9127314
Join Date: Dec 2010
Device: Kindle PW2
Question epubcheck: attribute "page-map" not allowed here error message

I experimented with Adobe's pagemap extension and created a small test epub based on the information in the Mobileread Wiki. The page numbers display fine in ADE, but ADE tells me that "The document appears to have minor errors that might cause it to be displayed incorrectly" and when I tested the epub with the online EPUB validator and I got only the following error message:

ERROR: test.epub/OEBPS/content.opf(21): attribute "page-map" not allowed here; expected attribute "id" or "toc"

The corresponding line in content.opf is:

<spine page-map="map" toc="ncx">

and map has been defined in content.opf as:

<item id="map" href="page-map.xml" media-type="application/oebps-page-map+xml"/>

I know that "page-map" is an Adobe specific proprietary extension and I'm therefore not completely surprised that epubcheck reported an error, however, what puzzles me is that ADE reports an error, too. After all, ADE is an Adobe product and shouldn't have any problems with Adobe's own ePub extensions.

I wondering if it's possible to create epubs with hard-coded page numbers that will pass epubcheck?
Doitsu is offline   Reply With Quote
Old 10-23-2011, 04:27 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,998
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Are you sure the "minor errors" are related to the page-map? They could be anywhere else.
Jellby is offline   Reply With Quote
Old 10-23-2011, 04:59 AM   #3
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,495
Karma: 9127314
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jellby View Post
Are you sure the "minor errors" are related to the page-map?
Yes. I created the page-map based on the information in the Wiki, all page numbers appear exactly where they should be and epbucheck reported no other errors whatsoever.

Can anybody point me to a page-map based sample epub that'll pass epubcheck or can there be no such thing?
Doitsu is offline   Reply With Quote
Old 10-23-2011, 08:25 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,998
Karma: 8796439
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Doitsu View Post
Can anybody point me to a page-map based sample epub that'll pass epubcheck or can there be no such thing?
As far as I know, there can't be, because using a page-map means adding a keyword that is not allowed by the spec. Non-ADE readers will probably just ignore it, though.

Quote:
Yes. I created the page-map based on the information in the Wiki
I mean that maybe when ADE complains about the "minor errors", they are not in the page-map, but somewhere else.
Jellby is offline   Reply With Quote
Old 10-24-2011, 05:22 PM   #5
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,495
Karma: 9127314
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jellby View Post
I mean that maybe when ADE complains about the "minor errors", they are not in the page-map, but somewhere else.
You were right. Through trial and error I found out that there was a drop caps style that ADE didn't like:

Code:
   p.newsectioninitial:first-letter {
        font-size:161.8%;
        font-weight: bold;
        }
After deleting this style, which didn't work anyway, the "minor errors" message was no longer displayed.
Doitsu is offline   Reply With Quote
Old 10-27-2011, 09:51 PM   #6
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: 45,461
Karma: 33003414
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Doitsu View Post
You were right. Through trial and error I found out that there was a drop caps style that ADE didn't like:

Code:
   p.newsectioninitial:first-letter {
        font-size:161.8%;
        font-weight: bold;
        }
After deleting this style, which didn't work anyway, the "minor errors" message was no longer displayed.
Code:
p. newsectioninitialfirstletter{
    font-size: 161.8%;
    font-weight: bold;
    line-height: 0
}
That should work fine. Oh it's not a drop cap. A drop cap sits to the right and drops two or three lines.
JSWolf is offline   Reply With Quote
Reply

Tags
ade, epub extensions, epubcheck, errors, page-map

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre plugIn Kindle Collections Error message "Value Error:month..." readee Plugins 4 10-10-2011 12:21 PM
Value of Attribute "Class" is Invalid Error TFaire ePub 2 09-23-2011 12:25 PM
attribute "scheme" from namespace error in epubcheck 1.0.5 thunderune ePub 15 06-30-2011 11:57 AM
"Content is not allowed in prolog." - Enhanced Epub Error Help? AmpedUpDigital ePub 2 05-03-2011 12:38 PM
re-map an easier "next page" button ? DojoPat Sony Reader 4 09-24-2007 02:08 PM


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


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