12-03-2011, 03:20 AM | #1 |
Enthusiast
Posts: 45
Karma: 13564
Join Date: Nov 2011
Device: Kindle Paperwhite; PRS-T1
|
TXT-> EPUB TOC problem
I am converting from Txt-> ePub, and I am trying to generate TOC.
Language is in Unicode Chinese. I am using this XPath Expression for both Level 1 TOC, Structure Detection and Insert Page break: //*[re:test(., "第.(章|回)", "i")] All other settings as default except a @font-face entry in Extra CSS. I have double checked the regex in search & replace and it should work. All the chapters are referenced properly, except two extra entries on the top. And I get this in the ePub xhtml: Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" id="calibre_toc_1" style="page-break-before:always"> <head> .... <div style="display: block; page-break-after: always"></div> <body id="calibre_toc_2" class="calibre"> <div class="calibre1"></div><p id="calibre_toc_3" class="calibre2">第1章</p> <p class="softbreak">*</p> Tried checking "Do not add detected chapters..."; same results. Tried removing all entries in Structure Detection and Insert Page break.... same results. Any pointers would be most appreciated. Calibre Portable 0.8.29 Last edited by nosnoop; 12-03-2011 at 03:31 AM. |
12-04-2011, 11:46 PM | #2 |
Enthusiast
Posts: 45
Karma: 13564
Join Date: Nov 2011
Device: Kindle Paperwhite; PRS-T1
|
I am adding some additional information from the debug files, and I hope someone can give me some pointers as to how to correct this problem.
This is the parsed/index.html: Spoiler:
And this is the structure/index.html: Spoiler:
and this is the structure/toc.ncx: Spoiler:
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
txt/epub - Guillemets conversion problem | julo | Conversion | 16 | 11-15-2011 10:23 AM |
TXT to EPUB, problem with spacing | darkhatreader | Conversion | 4 | 06-12-2011 02:42 AM |
LIT to EPUB TOC problem | BlessedPsycho | Conversion | 6 | 02-04-2011 04:49 PM |
ePub TOC to mobi TOC | edmnddntes | Conversion | 5 | 01-24-2011 02:56 AM |
Txt to Epub: how to create a toc | nestol | Calibre | 0 | 08-09-2010 08:56 PM |