![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
![]()
I'm working on creating an ebook with KindleGen to generate the .mobi file.
Everything has been created properly as far as I know, but I'm getting a few errors when it genertates the file. KindleGen Output: Info(prcgen): Building Table of Contents - url: ...\toc.ncx Info(prcgen): Atleast one <navPoint> tag must be there in ncx file. Info(prcgen): No Page map found in book I've got 21 <navPoint> tags in my TOC.ncx file yet still getting errors? I have no idea what the 'No page map found' is referencing. I have a page map in my mcx file. Do i need some reference to the page map in my html source? Thanks in advance! My .ncx code: Code:
<?xml version=”1.0? encoding=”UTF-8??> <!DOCTYPE ncx PUBLIC “-//NISO//DTD ncx 2005-1//EN” “http://www.daisy.org/z3986/2005/ncx-2005-1.dtd”> <ncx xmlns=”http://www.daisy.org/z3986/2005/ncx/” version=”2005-1?> <docTitle> <text>Get Rid of Stinkin' Thinking</text> </docTitle> <navMap> <navPoint playOrder=”1?> <navLabel> <text>1. Objective: Becoming a Millionaire</text> </navLabel> <content src=”StinkinThinking.html#start”/> </navPoint> <navPoint playOrder=”2?> <navLabel> <text>2. Luke 5: Simon Peter’s Stinkin’ Thinking</text> </navLabel> <content src=”StinkinThinking.html#chap2“/> </navPoint> <navPoint playOrder=”3?> <navLabel> <text>3. Identify the Opposition to Change</text> </navLabel> <content src=”StinkinThinking.html#chap3“/> </navPoint> <navPoint playOrder=”4?> <navLabel> <text>4. Opposing Force #1: Perception vs. Reality</text> </navLabel> <content src=”StinkinThinking.html#chap4“/> </navPoint> <navPoint playOrder=”5?> <navLabel> <text>5. Opposing Force #2: A Lack of Teaching</text> </navLabel> <content src=”StinkinThinking.html#chap5“/> </navPoint> <navPoint playOrder=”6?> <navLabel> <text>6. Opposing Force #3: A Lack of Trust</text> </navLabel> <content src=”StinkinThinking.html#chap6“/> </navPoint> <navPoint playOrder=”7?> <navLabel> <text>7. Opposing Force #4: A Lack of Submission</text> </navLabel> <content src=”StinkinThinking.html#chap7“/> </navPoint> <navPoint playOrder=”8?> <navLabel> <text>8. Opposing Force #5: Your Core Values</text> </navLabel> <content src=”StinkinThinking.html#chap8“/> </navPoint> <navPoint playOrder=”9?> <navLabel> <text>9. Where’s My Increase?</text> </navLabel> <content src=”StinkinThinking.html#chap9“/> </navPoint> <navPoint playOrder=”10?> <navLabel> <text>10. It’s Time to Change!</text> </navLabel> <content src=”StinkinThinking.html#chap10“/> </navPoint> <navPoint playOrder=”11?> <navLabel> <text>11. Change Your Thinking</text> </navLabel> <content src=”StinkinThinking.html#chap11“/> </navPoint> <navPoint playOrder=”12?> <navLabel> <text>12. Step 4: Develop a Bigger Vision</text> </navLabel> <content src=”StinkinThinking.html#chap12“/> </navPoint> <navPoint playOrder=”13?> <navLabel> <text>13. Overcoming Stinkin’ Thinking</text> </navLabel> <content src=”StinkinThinking.html#chap13“/> </navPoint> <navPoint playOrder=”14?> <navLabel> <text>14. Effecting a Lasting Change</text> </navLabel> <content src=”StinkinThinking.html#chap14“/> </navPoint> <navPoint playOrder=”15?> <navLabel> <text>15. Conclusion</text> </navLabel> <content src=”StinkinThinking.html#chap15“/> </navPoint> </navMap> </ncx> Code:
<?xml version="1.0? encoding="utf-8??> <package unique-identifier="uid"> <metadata> <dc-metadata xmlns:dc="http://purl.org/metadata/dublin_core" xmlns:oebpackage="http://openebook.org/namespaces/oeb-package/1.0/"> <dc:Title>Get Rid of Stinkin' Thinking</dc:Title> <dc:Language>en-us</dc:Language> <dc:Identifier id="uid">978-0-9814522-2-7</dc:Identifier> <dc:Creator>Dr. Brian D. Scott</dc:Creator> <dc:Publisher>Wealth Producers</dc:Publisher> <dc:Subject BASICCode="FIC031000">Religious</dc:Subject> <dc:Description><em>You were created to increase and live in victory, but<strong> the way you think</strong> may be your greatest obstacle.</em><br /> A series of hurdles lie between you and your increase. We also call them barriers, attitudes, or mindsets. No matter their name or label, they all do the same thing -- they resist and oppose change! There resistant forces prevent clear thinking, clear vision, and clear decision-making. They create chaos in your mind and muddle your thoughts and desires. If you don't fight hard for change, this will become your 'normal mindset' and you will end up living a life od stinkin' thinking! In this book, Dr. Scott examines many of the forces that resist change and how to make changes to get rid of them.<br /> <strong> You must get rid of stingin' thinking!</strong> </dc:Description> <dc:Date>05/15/2010</dc:Date> </dc-metadata> <x-metadata> <output encoding="utf-8?" content-type="text/x-oeb1-document"></output> <EmbeddedCover>GROST-cover.jpg</EmbeddedCover> <SRP Currency="USD">18.99</SRP> <Demo>StinkinThinkingSample.prc</Demo> </x-metadata> </metadata> <manifest> <item id="item1" media-type="text/x-oeb1-document" href="StinkinThinking.html"></item> <item id="TOC" media-type="application/x-dtbncx+xml" href="toc.ncx"></item> </manifest> <spine toc="TOC"/> <itemref idref="item1"/> <itemref idref="TOC"/> </spine> <tours></tours> <guide> <reference type="TOC" title="Table of Contents" href="StinkinThinking.html%23toc"></reference> <reference type="start" title="Startup Page" href="StinkinThinking.html%23start"></reference> </guide> </package> |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 60
Karma: 494362
Join Date: Nov 2010
Location: Budapest, Hungary
Device: Kindle 3
|
Hi!
Your Navpoint tags is not correct. The correct one is: <Navpoint id="something" playorder="something_number_1"> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
Thanks, Kindlevarazs!
I changed the Navpoint tags in the nxc file but am still getting errors. <Navpoint id="begin" playorder="number1"> These are the errors I'm still getting from KindleGen:1. 'Info(prcgen): Atleast one <navPoint> tag mus be there in ncx file. 2. 'Info(pagemap): No Page map found in book. Any ideas? |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What is your source? Is it something that can be run through Calibre?
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
It's all in html. Can I generate in calibre? I thought it was only for ebook management?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You can. You do not need the NCX or OPF. But you do need to know a way to differentiate the chapter headings. Make them <h2>Chapter Heading</h2> and you can then generate the eBook for your Kindle with chapter headings. I'm not at home or I'd give you the exact command needed using the command prompt.
|
![]() |
![]() |
![]() |
#7 | |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
Quote:
thanks, M |
|
![]() |
![]() |
![]() |
#8 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
My cover image is currently only linked through the opf file:
<EmbeddedCover>GROST-cover.jpg</EmbeddedCover> I tried to convert via calibre and it failed out, probably don't have the settings right. My zip file looks good though, just doesn't allow me to create it properly. Here is the error log using default settings: calibre, version 0.8.1 ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Get Rid of Stinkin' Thinking) Convert book 1 of 1 (Get Rid of Stinkin' Thinking) Processing archive... Resolved conversion options calibre version: 0.8.1 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'breadth_first': False, 'change_justification': u'original', 'chapter': u'//h:h3[re:test(@class, id, "chap, start, begin, intro", "i")]', 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_vlklua.jpeg', 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_compress': False, 'dont_package': False, 'enable_heuristics': False, 'extra_css': None, 'fix_indents': True, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x041084F0>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, 'keep_ligatures': False, 'language': None, 'level1_toc': u'//*[re:test(@id, "toc", "i")]', 'level2_toc': None, 'level3_toc': None, 'line_height': 0.0, 'linearize_tables': False, 'margin_bottom': 5.0, 'margin_left': 5.0, 'margin_right': 5.0, 'margin_top': 5.0, 'markup_chapter_headings': True, 'max_levels': 5, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_ignore_margins': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04108810>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_sugkdq.opf', 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': u'', 'rescale_images': False, 'series': None, 'series_index': None, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 20, 'toc_title': None, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on c:\docume~1\mds\locals~1\temp\calibre_0.8.1_tmp_69 rmtj\calibre_0.8.1_sezjxw_plumber_archive\content. opf Parsing all content... Manifest item 'toc.ncx' not found Parsing StinkinThinking.html ... Generating default TOC from spine... Merging user specified metadata... Detecting structure... Python function terminated unexpectedly test() takes at most 4 positional arguments (5 given) (Error Code: 1) Traceback (most recent call last): File "site.py", line 103, in main File "site.py", line 85, in run_entry_point File "site-packages\calibre\utils\ipc\worker.py", line 119, in main File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 958, in run File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 33, in __call__ File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 76, in detect_chapters File "xpath.pxi", line 469, in lxml.etree.XPath.__call__ (src/lxml/lxml.etree.c:115236) File "xpath.pxi", line 238, in lxml.etree._XPathEvaluatorBase._handle_result (src/lxml/lxml.etree.c:113030) File "lxml.etree.pyx", line 282, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:7972) File "extensions.pxi", line 755, in lxml.etree._extension_function_call (src/lxml/lxml.etree.c:110601) File "extensions.pxi", line 421, in lxml.etree._ExsltRegExp.test (src/lxml/lxml.etree.c:107039) TypeError: test() takes at most 4 positional arguments (5 given) |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
Id appreciate the code i'm missing when you get a chance. Thanks so much for all your help so far!
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
First off, update Calibre to 0.8.2.
Next, don't convert using your OPF or NCX as they aren't correct. Use the cover and the HTML only. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: May 2011
Device: ipad
|
My cover image is currently only linked through the opf file:
<EmbeddedCover>GROST-cover.jpg</EmbeddedCover> I tried to convert via calibre and it failed out, probably don't have the settings right. My zip file looks good though, just doesn't allow me to create it properly. Here is the error log using default settings: calibre, version 0.8.1 ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Get Rid of Stinkin' Thinking) Convert book 1 of 1 (Get Rid of Stinkin' Thinking) Processing archive... Resolved conversion options calibre version: 0.8.1 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'breadth_first': False, 'change_justification': u'original', 'chapter': u'//h:h3[re:test(@class, id, "chap, start, begin, intro", "i")]', 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_vlklua.jpeg', 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_compress': False, 'dont_package': False, 'enable_heuristics': False, 'extra_css': None, 'fix_indents': True, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x041084F0>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, 'keep_ligatures': False, 'language': None, 'level1_toc': u'//*[re:test(@id, "toc", "i")]', 'level2_toc': None, 'level3_toc': None, 'line_height': 0.0, 'linearize_tables': False, 'margin_bottom': 5.0, 'margin_left': 5.0, 'margin_right': 5.0, 'margin_top': 5.0, 'markup_chapter_headings': True, 'max_levels': 5, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_ignore_margins': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04108810>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'c:\\docume~1\\mds\\locals~1\\temp\\calibre_0.8.1 _tmp_69rmtj\\calibre_0.8.1_sugkdq.opf', 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': u'', 'rescale_images': False, 'series': None, 'series_index': None, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 20, 'toc_title': None, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on c:\docume~1\mds\locals~1\temp\calibre_0.8.1_tmp_69 rmtj\calibre_0.8.1_sezjxw_plumber_archive\content. opf Parsing all content... Manifest item 'toc.ncx' not found Parsing StinkinThinking.html ... Generating default TOC from spine... Merging user specified metadata... Detecting structure... Python function terminated unexpectedly test() takes at most 4 positional arguments (5 given) (Error Code: 1) Traceback (most recent call last): File "site.py", line 103, in main File "site.py", line 85, in run_entry_point File "site-packages\calibre\utils\ipc\worker.py", line 119, in main File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 958, in run File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 33, in __call__ File "site-packages\calibre\ebooks\oeb\transforms\structure.p y", line 76, in detect_chapters File "xpath.pxi", line 469, in lxml.etree.XPath.__call__ (src/lxml/lxml.etree.c:115236) File "xpath.pxi", line 238, in lxml.etree._XPathEvaluatorBase._handle_result (src/lxml/lxml.etree.c:113030) File "lxml.etree.pyx", line 282, in lxml.etree._ExceptionContext._raise_if_stored (src/lxml/lxml.etree.c:7972) File "extensions.pxi", line 755, in lxml.etree._extension_function_call (src/lxml/lxml.etree.c:110601) File "extensions.pxi", line 421, in lxml.etree._ExsltRegExp.test (src/lxml/lxml.etree.c:107039) TypeError: test() takes at most 4 positional arguments (5 given) |
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why are you using the NCX and the OPF when they are not correct?
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Now that I am back at my computer, the command you want is...
Code:
ebook-convert file.html .mobi --chapter=//h:h3 --preserve-cover-aspect-ratio --cover=coverimage.jpg |
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,181
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
And did you get it converted?
|
![]() |
![]() |
![]() |
Tags |
kindle, kindlegen, navpoint, ncx, page map |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Series Maps? | GlenBarrington | General Discussions | 5 | 04-28-2011 08:54 PM |
epub->mobi & kindle navpoints | dmaddock1 | Calibre | 1 | 09-04-2010 10:43 AM |
Comic books on the Kindle -- how to put navpoints in a MOBI? | Jackbishop | Workshop | 0 | 02-04-2010 11:00 PM |
NavPoints in Windows MobiPocket Reader | wallcraft | Kindle Formats | 2 | 08-09-2009 07:40 PM |
Maps on the DR1000?` | Gogolo | iRex | 1 | 11-04-2008 08:40 AM |