Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2010, 05:03 PM   #1
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
No usable cover or chapters on Nook

I converted to epub using the nook profile, however, when reading on the nook, I get no chapters in the chapter menu, and go to cover does not bring me to the cover (does nothing).

This happens with every epub I use.

When I manually extracted the epub, it shows a different xhtml file for every chapter.

Is there any way to correct this?
Trel is offline   Reply With Quote
Old 01-15-2010, 08:19 PM   #2
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
(if it matters, I'm converting from RTF)
Trel is offline   Reply With Quote
Old 01-15-2010, 09:19 PM   #3
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Read the section in the user manual on chapter detection, it explains how to create cjhapters in great detail.
kovidgoyal is offline   Reply With Quote
Old 01-15-2010, 10:19 PM   #4
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by kovidgoyal View Post
Read the section in the user manual on chapter detection, it explains how to create cjhapters in great detail.
I'm not really getting it. I just want a cover and basic chapters.
Nothing I'm reading is explaining it in any way that makes sense. I'm not well versed in xhtml at the moment.

Can you possibly explain how I can just get a usable cover and chapters for use on my Nook?

(And I'm pretty sure it's finding chapters, at least I think it is, but nothing I do gets them mentioned in the TOC)

Last edited by Trel; 01-15-2010 at 10:26 PM.
Trel is offline   Reply With Quote
Old 01-15-2010, 10:33 PM   #5
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
(also if reading the manual was able to clairify it for me, I wouldn't have asked here. I just can't figure out what I'm supposed to be putting in any of the fields)

I can't even get a valid cover for use with "go to cover" on my Nook.

Also, please remember, I'm converting from RTF not anything with tags to detect.

Last edited by Trel; 01-15-2010 at 10:41 PM.
Trel is offline   Reply With Quote
Old 01-16-2010, 01:42 AM   #6
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Ok I found a "solution"

Code:
//h:span[re:test(., "Chapter \d{0,4}", "")]
For the Level 1 TOC will generate my chapters.

However, unless I knew ahead of time (and I found out by accident) that epub files could be unzipped, there's no possible way I could've figured this out.
Trel is offline   Reply With Quote
Old 01-16-2010, 09:55 AM   #7
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://calibre-ebook.com/user_manual...l#introduction
kovidgoyal is offline   Reply With Quote
Old 01-16-2010, 12:04 PM   #8
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by kovidgoyal View Post
I've read that so many times now it's not funny.
At no point does it tell me that I would have to convert once without this information, then unzip the epub (or even that its unzippable) look at the xhtml to see exacctly what the chapter lines are encapsulated in and then convert again but this time, with that information utilized in the TOC generation.

I'm not saying the tutorial doesn't help, but it assumes I knew all of the above, which I didn't and found out purely by accident. If I didn't ever open the epub in notepad for kicks, I would have never seen the header indicating it could even BE unzipped.
Trel is offline   Reply With Quote
Old 01-16-2010, 12:17 PM   #9
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Umm it states that the conversion pipeline converts to html internally and that you can access this html using the debug option and that you should use this html to figure out what to put in the XPath (as a matter of fact the way you did it is not correct and may not always work).
kovidgoyal is offline   Reply With Quote
Old 01-18-2010, 12:49 AM   #10
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by kovidgoyal View Post
Umm it states that the conversion pipeline converts to html internally and that you can access this html using the debug option and that you should use this html to figure out what to put in the XPath (as a matter of fact the way you did it is not correct and may not always work).
Yes, but I have no other choice as the HTML generated is way too vague.

What is getting generated is
Code:
<span class="none">Chapter 1</span>
That in mind, and the fact that there are MANY span class="none" that aren't chapters, how would you suggest I do it?
Trel is offline   Reply With Quote
Old 01-18-2010, 01:43 AM   #11
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can match on text as well as tags, as explained in the user manual
kovidgoyal is offline   Reply With Quote
Old 01-18-2010, 01:58 AM   #12
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by kovidgoyal View Post
You can match on text as well as tags, as explained in the user manual
then how is mine wrong?
Trel is offline   Reply With Quote
Old 01-18-2010, 11:28 AM   #13
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: 43,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Because you're matching on the epub output, not the intermediate html.
kovidgoyal is offline   Reply With Quote
Old 01-18-2010, 03:24 PM   #14
Trel
Connoisseur
Trel began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Jan 2010
Device: Onyx Boox Poke 3
Quote:
Originally Posted by kovidgoyal View Post
Because you're matching on the epub output, not the intermediate html.
Ok then I how would I do it so that it matches any
Code:
<span class="none fs0">Chapter ????
where chapter is the number?

Code:
//h:span[re:test(@class, "none fs0", "i") and re:test(., "Chapter \d{0,4}", "")]
?

Last edited by Trel; 01-18-2010 at 03:31 PM.
Trel 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
Classic Grichel Nook cover nyrath Barnes & Noble NOOK 11 09-03-2010 09:58 PM
Ended Nook cover Labrat Flea Market 1 08-13-2010 01:25 PM
Classic Noreve cover for nook mgmueller Barnes & Noble NOOK 3 05-19-2010 12:46 PM
Ended Nook Industriell Cover dieterpops Flea Market 6 04-15-2010 06:23 AM
ePub Chapters vs. Stanza Chapters kjk Sigil 4 09-14-2009 10:50 AM


All times are GMT -4. The time now is 02:43 PM.


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