Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2009, 04:58 PM   #406
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: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The issue is simple, ADE (on the reader) misinterprets anchors that consist of only numbers. SO to work around it, you have to go through all your files and rename al such anchors as well as the links that point to those anchors.
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 05:05 PM   #407
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
So the immediate lesson is, if you're creating anchor points, don't make them just numbers.

Sure is a weird bug.
starrigger is offline   Reply With Quote
Advert
Old 03-18-2009, 05:53 PM   #408
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by starrigger View Post
So the immediate lesson is, if you're creating anchor points, don't make them just numbers.

Sure is a weird bug.
Well I found an old bug in an xml library and the bug was to assume it was a number if the first character was a digit. Also it is not so unreasonable to guess that the name attribute should be of type NAME or ID (and they cannot start with a digit) and not check in the standard to see that the name attribute is CDATA.
tompe is offline   Reply With Quote
Old 03-18-2009, 06:00 PM   #409
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: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by tompe View Post
Well I found an old bug in an xml library and the bug was to assume it was a number if the first character was a digit. Also it is not so unreasonable to guess that the name attribute should be of type NAME or ID (and they cannot start with a digit) and not check in the standard to see that the name attribute is CDATA.
Except that this bug is not present in desktop ADE, only in the reader version
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 06:04 PM   #410
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: 79,796
Karma: 146391129
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 kovidgoyal View Post
The issue is simple, ADE (on the reader) misinterprets anchors that consist of only numbers. SO to work around it, you have to go through all your files and rename al such anchors as well as the links that point to those anchors.
Ticket #2099 created about the ADE anchors.
JSWolf is offline   Reply With Quote
Advert
Old 03-18-2009, 06:04 PM   #411
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: 79,796
Karma: 146391129
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 kovidgoyal View Post
Except that this bug is not present in desktop ADE, only in the reader version
That could be because they've upgraded ADE Desktop and not yet ADE Mobile.
JSWolf is offline   Reply With Quote
Old 03-18-2009, 06:05 PM   #412
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: 79,796
Karma: 146391129
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 starrigger View Post
So the immediate lesson is, if you're creating anchor points, don't make them just numbers.

Sure is a weird bug.
I figured it out when I was checking the ToC links and found the ones that did not start with a number worked and the ones that started with a number did not work.
JSWolf is offline   Reply With Quote
Old 03-18-2009, 06:36 PM   #413
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: 45,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by JSWolf View Post
That could be because they've upgraded ADE Desktop and not yet ADE Mobile.
I wish Adobe would publish a changelog. As it is writing code to produce epub files that work with ADE is like threading a needle with your eyes closed
kovidgoyal is offline   Reply With Quote
Old 03-18-2009, 08:25 PM   #414
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
I personally used only numbers for my anchor points, so yeah it makes sense that it would be part of the problem as none of my books work with anchors. As stated, converting to lrf will work, just no links and for gamebooks it makes it almost useless unless you love guessing the paragraph page by trying a random page number !
Student1 is offline   Reply With Quote
Old 03-18-2009, 10:40 PM   #415
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: 79,796
Karma: 146391129
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 Student1 View Post
I personally used only numbers for my anchor points, so yeah it makes sense that it would be part of the problem as none of my books work with anchors. As stated, converting to lrf will work, just no links and for gamebooks it makes it almost useless unless you love guessing the paragraph page by trying a random page number !
Just add a letter in front of all those numeric anchor points and it'll work fine.
JSWolf is offline   Reply With Quote
Old 03-18-2009, 11:15 PM   #416
darkmonk
Connoisseur
darkmonk began at the beginning.
 
Posts: 58
Karma: 12
Join Date: Jan 2009
Device: none
Quote:
Originally Posted by Student1 View Post
I personally used only numbers for my anchor points, so yeah it makes sense that it would be part of the problem as none of my books work with anchors. As stated, converting to lrf will work, just no links and for gamebooks it makes it almost useless unless you love guessing the paragraph page by trying a random page number !
Yeah, you should stop... if you want to reference by paragraph, just add p in front - so like "p596" It's not a bug that it doesn't work. HTML did not allow that either, as I remember. Because epub is just a packaged HTML format, it should come as no surprise it doesn't work.

...But I learned HTML a long time ago. It may now allow number-only anchors. In that case, your devices OS is just old.
darkmonk is offline   Reply With Quote
Old 03-19-2009, 01:12 AM   #417
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by darkmonk View Post
Yeah, you should stop... if you want to reference by paragraph, just add p in front - so like "p596" It's not a bug that it doesn't work. HTML did not allow that either, as I remember. Because epub is just a packaged HTML format, it should come as no surprise it doesn't work.

...But I learned HTML a long time ago. It may now allow number-only anchors. In that case, your devices OS is just old.
The Sony Reader's OS is old?

I wasn't aware that html didn't allow numbers as anchors. I guess I'd never tried.
starrigger is offline   Reply With Quote
Old 03-19-2009, 12:11 PM   #418
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by ChaosInc View Post
If I understand correctly...

You took out the 'anchors' in the 'internal ToC' (the ones marked <a href="#blah"> of the file, changed the 'anchor point' for anchor #15 (<a name="15">, and the external ToC worked? Did the internal ToC also work then?

Somehow, unless I see what you did, I don't think that would work on a consistent basis.

The internal ToC should have had nothing to do with the external Toc that the Calibre created for the ePub.
I do not believe you understood correctly. The bottom line is that id and name must start with a letter, not a number for things to work correctly. That is really all you need to understand about this problem.

Dale
DaleDe is offline   Reply With Quote
Old 03-19-2009, 12:14 PM   #419
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by JSWolf View Post
That could be because they've upgraded ADE Desktop and not yet ADE Mobile.
Sony really needs to upgrade the firmware to fix all of these bugs in ePUB. It is a difficult target to have to design a book to a buggy piece of firmware.

Dale
DaleDe is offline   Reply With Quote
Old 03-19-2009, 12:18 PM   #420
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by darkmonk View Post
Yeah, you should stop... if you want to reference by paragraph, just add p in front - so like "p596" It's not a bug that it doesn't work. HTML did not allow that either, as I remember.
I checked the 4.0 specification and a number is allowed (the value of name shoulc be CDATA) and the # reference is an URI and there numbers is allowed.
tompe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 09:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
epub output metadata troymc Calibre 5 05-22-2010 12:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 02:23 AM


All times are GMT -4. The time now is 02:33 AM.


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