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 03-05-2010, 12:56 AM   #1
aarcane
Member
aarcane began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
toc.ncx playOrder question

can the toc.ncx playOrder series have gaps in it ?

for example, I'm thinking about using the form 123456 for my books where 1 is the literal number 1, 23 is the book number in the series, 4 is a code for 0=title page, toc, prologue, etc. 1=chapters of the book, and 2= anything after the chapters.. so book 2 chapter 14 would look like 102114, but there might not be anywhere near 102114 entries before it (probably only 17 or so). is this valid, or do all the toc.ncx playOrder entries need to be perfectly sequential (1, 2, 3, 4, 5, etc..)

thanks in advance
aarcane is offline   Reply With Quote
Old 03-05-2010, 02:25 AM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Not going to work I'm afraid:
Quote:
The playOrder attribute is required on each pageTarget, navTarget and navPoint. It provides a means to collate all pageTargets, navTargets, and navPoints into a single ordered sequence that reflects their order in the normal playback sequence of the book as presented in the spine and SMIL file(s). playOrder is a positive integer; the first playOrder value in a document shall be 1. When the content elements of any pageTargets, navTargets, or navPoints reference the same SMIL time container, they must have the same playOrder value. playOrder must increase by one for each unique SMIL time container referenced by any pageTarget, navTarget or navPoint.
(emphasis added)
http://www.niso.org/workrooms/daisy/...5.html#NCXplay
as specified in
http://www.openebook.org/2007/opf/OP...tml#TOC2.4.1.2

Of course, there are lots of epub readers out there that don't follow the spec properly, and might allow some arbitrary playOrder scheme. But it's best to create properly compliant epubs.
charleski is offline   Reply With Quote
Advert
Old 03-05-2010, 02:36 PM   #3
aarcane
Member
aarcane began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
damn, thanks charleski.

On a slightly related note, does anyone make a decent toc.ncx editor ? something capable of drag/dropping entries in a toc.ncx file to reorder them, etc. that doesn't require editing the whole book with it.
aarcane is offline   Reply With Quote
Old 03-05-2010, 05:00 PM   #4
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: 73,514
Karma: 126422064
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 aarcane View Post
damn, thanks charleski.

On a slightly related note, does anyone make a decent toc.ncx editor ? something capable of drag/dropping entries in a toc.ncx file to reorder them, etc. that doesn't require editing the whole book with it.
That would be a nice thing if anyone had such.
JSWolf is offline   Reply With Quote
Old 03-05-2010, 05:10 PM   #5
bobcdy
Fanatic
bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.bobcdy ought to be getting tired of karma fortunes by now.
 
bobcdy's Avatar
 
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
Won't notepad++ work in Windows? I'm not an expert with notepad++ but I tried it on an unzipped epub tox.ncx and it opened it (it's a text file) and drag/drop seemed ok.
bobcdy is offline   Reply With Quote
Advert
Old 03-05-2010, 11:58 PM   #6
aarcane
Member
aarcane began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
bobcdy even notepad will drag and drop them, it's the playOrder="n" that needs to be modified, and changing it by hand is a pain when you've just reordered 1 item from the end of the 50 chapter book to the Beginning because on review you find it works better there.
aarcane is offline   Reply With Quote
Old 03-06-2010, 03:52 AM   #7
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: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
With vim you can use this single command:

Code:
let n=1 | g/playOrder/s/playOrder="\d\+"/\='playOrder="'.n.'"'/ | let n=n+1
To automatically generate a correct sequence of playOrder.

In future versions of the ePUB spec, the playOrder attribute will probably be made optional, though.
Jellby is offline   Reply With Quote
Old 03-08-2010, 03:27 PM   #8
sjkramer
Connoisseur
sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.sjkramer ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 526028
Join Date: Nov 2009
Location: New York, NY
Device: iphone
This relates to something I've been wondering about, which is decimal values in the play order. I decided to try it out when adding a chapter between two existing points (rather than renaming each subsequent point). Originally I had points 1 and 2. When adding the paragraph in between, I identified it as 1.5. It seems to work properly, but I have a nagging feeling that it wasn't strictly correct.
sjkramer is offline   Reply With Quote
Old 05-25-2010, 05:00 AM   #9
gardefjord
Enthusiast
gardefjord began at the beginning.
 
Posts: 28
Karma: 10
Join Date: May 2010
Location: Stockholm
Device: iPhone, iPad, Nook, Bookeen, Sony Reader
Me being stupid, but how exactly do you drag-and-drop a navpoint in notepad?
gardefjord 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
Page Mapping Using toc.ncx lorddon ePub 35 01-16-2018 12:18 PM
adding a toc.ncx file to the .prc package cyberbaffled Amazon Kindle 4 09-14-2010 02:21 PM
Can you bypass first two items in TOC.ncx? sueneu Kindle Formats 4 07-14-2010 08:36 AM
NCX playOrder nuisance erik5000 ePub 3 12-24-2009 08:08 AM
toc.ncx navpoint content=src empty? KevinH Sigil 6 11-23-2009 01:39 PM


All times are GMT -4. The time now is 05:53 AM.


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