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 08-25-2010, 06:24 AM   #1
illustrata
Enthusiast
illustrata began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Aug 2010
Location: Venice, Italy
Device: iphone, ipad, kindle
NCX creation -- nested or not, css classes

I would like to create a nested ncx for epub and an flat ncs for Kindle/mobi (I understand Kindle does not support nested ncx).

Will both these files need to be created manually? Are they output from any converter? Or can I create an ePub and then convert it to a Kindle mobi (using Kindlegen or other converter) or vice-versa and end up with a valid ncx?

I notice in the Kindlegen Sample folder that the ncx is a) nested and b) has class definitions -- although I can't find any css with those definitions in it. Can an ncx utilize css in one version and not in another? If a class can be included, where would the css go?

(Should this thread be posted elsewhere?)

Thanks very much for any help.
illustrata is offline   Reply With Quote
Old 08-25-2010, 07:28 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
The great thing about Amazon owning the .mobi format is that it can merrily fail to document it properly and cause people to waste a lot of time scratching their heads.

Since the Kindlegen sample contains nested navpoint entries I think you can assume that those will work fine on the Kindle and that you don't need to convert ncx files made for epub. The class definitions in the ncx make no sense at all - 'class' is not an allowed attribute for navpoints and the selectors aren't defined in the sample's css. I would suggest not bothering about them.
charleski is offline   Reply With Quote
Advert
Old 08-25-2010, 08:37 AM   #3
illustrata
Enthusiast
illustrata began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Aug 2010
Location: Venice, Italy
Device: iphone, ipad, kindle
Complete, definitive documentation. If we had it, half of us would not have work. (Couldn't imagine where the classes would be defined.)

I'll get these ebooks created according to your assumptions, and report back with the results. Thank you for answering so quickly.
illustrata is offline   Reply With Quote
Old 08-25-2010, 08:56 AM   #4
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
Frankly, I suspect Amazon is trying to do something "clever" by giving navpoints a class to indicate which type of entry they are: chapter, part, etc so their reader can respond to a 'next chapter' command in a future version. This should be obvious from the ncx hierarchy, though, and in the absence of any documentation for this "feature" it's best to ignore it.
charleski is offline   Reply With Quote
Reply

Tags
class, css, epub, kindle, ncx

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
keeping or removing a div with multiple classes JohnsonZA Recipes 1 09-25-2010 10:33 AM
Content nested collections alexxx Amazon Kindle 6 06-22-2010 06:05 PM
NCX playOrder nuisance erik5000 ePub 3 12-24-2009 08:08 AM
Nested navPoint problem Lemming Calibre 3 12-20-2009 11:24 AM
Are Nested TOCs Possible? VikingDave Sony Reader 11 12-28-2007 07:58 PM


All times are GMT -4. The time now is 01:11 AM.


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