![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Problem: .ncx without first level
Sorry my bad english, please - I'm from Russia (vodka, bears, snow, etc.).
I try to develop a book in ePub format. But there is a big problem: my book haven't got a first chapter's name, ie not Code:
Chapter 1 -mi -mimi -mimimi Chapter 2 -mi -mimi -mimimi Code:
-mi -mimi -mimimi Chapter 2 -mi -mimi -mimimi How I can (if it is possible) describe this structure in toc.ncx? I tried this variant Code:
<navPoint id="navpoint-1" playOrder="1"> <navPoint id="navpoint-2" playOrder="2"> <navLabel><text>mi</text></navLabel> <content src="page1-1.html"/> </navPoint> <navPoint id="navpoint-3" playOrder="3"> <navLabel><text>mimi</text></navLabel> <content src="page1-2.html"/> </navPoint> <navPoint id="navpoint-4" playOrder="4"> <navLabel><text>mimimi</text></navLabel> <content src="page1-3.html"/> </navPoint> </navPoint> Code:
<navLabel><text></text></navLabel> <content src="empty.html"/> Help me, please. I'm so young to break my head using the wall.. |
![]() |
![]() |
![]() |
#2 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
Take note of the Playorder number sequence:
Code:
<navMap> <navPoint id="navpoint" playOrder="1"><navLabel><text>Chapter One</text></navLabel><content src="Chapter_One.xhtml"/></navPoint> <navPoint id="navpoint-1" playOrder="2"><navLabel><text>Mi</text></navLabel><content src="Mi.xhtml"/></navPoint> <navPoint id="navpoint-2" playOrder="3"><navLabel><text>Mimi</text></navLabel><content src="Mimi.xhtml"/></navPoint> <navPoint id="navpoint-3" playOrder="4"><navLabel><text>Mimimi</text></navLabel><content src="Mimimi.xhtml"/></navPoint> <navPoint id="navpoint-4" playOrder="5"><navLabel><text>Chapter Two</text></navLabel><content src="Contents.xhtml"/></navPoint> <navPoint id="navpoint-1" playOrder="2"><navLabel><text>Mi-two</text></navLabel><content src="Mi.xhtml"/></navPoint> <navPoint id="navpoint-2" playOrder="3"><navLabel><text>Mimi-two</text></navLabel><content src="Mimi.xhtml"/></navPoint> <navPoint id="navpoint-3" playOrder="4"><navLabel><text>Mimimi</text></navLabel><content src="Mimimi.xhtml"/></navPoint> </navMap> |
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Nov 2010
Device: iPad
|
Adjust, no, I meant different thing. I don't want to see the line "Chapter 1" in List of Contents. I want to begin List of Contents from first "Mi", but this caption must be on the sublevel position without level-one element.
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
I don't think you can, because in ADE it collapses the sub levels under the first level +
So I'd imagine it would need something to collapse under even if it was a blank entry... ![]() |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You probably can't, but not because of what ADE does or does not, but because the NCX specification probably forbids empty entries...
|
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
It would make no sense to have empty entries. You can simply elevate whatever data you want to the top level easily. Some ebook readers such as Hanlin and its clones displays TOC by levels. The top level is displayed when you enter the toc and you select a top level entry to traverse to a lower level which would be shown on a new page in the toc. If there were lower levels without a top level there would be no way to reach them.
I cannot understand what the original poster is trying to accomplish. Is it just a visual indent that he wants? You have no control over the indent in toc. It is up to the reading device. |
![]() |
![]() |
![]() |
#7 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I understand that one may want to preserve the "logical" structure of a book, and let the reading system worry about how to present and interact with the TOC.
For instance, if a book has parts, and chapters inside each part, and then a preface and epilogue, I may want to define the preface and epilogue at the same level as chapters, even if they are not inside a part. Don't ask me what would be an unambiguous way to display this structure, though ![]() |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
Dale |
|
![]() |
![]() |
![]() |
#9 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
|
That won't work as then they will be the same level as the Part.
i.e. what the OP wants is this: Preface Part OneChapter One Part Two Chapter Two Epilogue
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Yes, but preface can never be reached if there is no top level. That is the point. It looks like it is just for display purposes and you have no control over the display. Various readers display the ncx file directly and you have no control over this. It is not part of the book flow. You can place the above in an inline toc inside the book if you wish. But even in Paper books the preface is not shown as a level two by itself. There could be an Introduction section with dedications, preface, etc. in them or it can be under the title page. ncx is for traversal purposes not aesthetics.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a size limit for TOC.ncx? | osnova | Kindle Formats | 10 | 10-21-2011 01:41 AM |
Syntax for toc.ncx Levels 1 and 2? | NewDay | ePub | 7 | 04-04-2011 04:09 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 |
Multi-level Bookmark Problem | manifestor | HanLin eBook | 0 | 06-08-2009 12:38 PM |