05-23-2011, 09:23 PM | #1 |
Member
Posts: 18
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
TOC has several pages of content
I am converting from txt to mobi.
The txt doc has well defined chapter Chapter One aaaaa aaaaa aaaaa Chapter Two bbbbb bbbbb After the converstion I do have all the chapters, which means the Level 1 TOC XPath expression is defined correctly, but there are about 4 pages of the beginning of the txt text in the beginning of TOC. How can I remove those text in the beginning of TOC? Thank you. |
05-24-2011, 01:54 AM | #2 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
If you get page content inside your TOC, that would most probably mean that you haven't defined the XPath correctly. What do your chapter markings look like (remember, the XPath works on the intermediate XHTML stage) and what XPath are you using?
|
Advert | |
|
05-24-2011, 07:42 PM | #3 |
Member
Posts: 18
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
My XPath //*[re:test(., "第\S*集.*第\S*章 ", "i")]
Trying to convert Chinese books. I feel like these's much to learn about Calibre conversion. Is there complete Howto guide about converstion? I read the Calibre manual and only see the XHTML syntax. Now I finally understand why. Thank you very much. But, where can I learn about this intermediate XHTML? Any doc that explain the whole conversion process? Thanks so much. |
05-25-2011, 02:07 AM | #4 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
There is an explanation of the process in the manual. As for the XHTML, just use the wizards in the search & replace conversion options to see that and to see what your chapter markings look like.
|
05-26-2011, 08:16 PM | #5 |
Member
Posts: 18
Karma: 10
Join Date: May 2011
Device: Kindle 3
|
Thanks so much. Am reading it now.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Classic Split PDF pages into smaller pages (images into tiles) | Astro | Barnes & Noble NOOK | 4 | 06-12-2020 10:56 AM |
[Old Thread] calibre not creating content.opf or toc.ncx files during conversion | foxxywith2xs | Calibre | 7 | 12-16-2012 07:49 PM |
create TOC for every X pages | omegauo | Conversion | 0 | 03-21-2011 01:45 AM |
toc.ncx navpoint content=src empty? | KevinH | Sigil | 6 | 11-23-2009 01:39 PM |
Making a Rough html toc for downloaded web pages | sherryk_us | Calibre | 5 | 06-21-2009 03:23 PM |