![]() |
#1 |
Member
![]() 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 ![]() |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Not going to work I'm afraid:
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,038
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That would be a nice thing if anyone had such.
|
![]() |
![]() |
![]() |
#5 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() 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.
|
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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 In future versions of the ePUB spec, the playOrder attribute will probably be made optional, though. |
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() 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?
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |