{"id":2179,"date":"2015-03-05T04:27:59","date_gmt":"2015-03-05T04:27:59","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=2179"},"modified":"2015-03-05T04:27:59","modified_gmt":"2015-03-05T04:27:59","slug":"kindlegen-w14001-hyperlink-not-resolved-errors","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2015\/03\/kindlegen-w14001-hyperlink-not-resolved-errors\/","title":{"rendered":"Kindlegen, W14001: Hyperlink not resolved errors"},"content":{"rendered":"<p>I&#8217;ve been <a href=\"http:\/\/41j.com\/blog\/2015\/03\/using-kindlegen-make-kindle-book\/\">playing with kindlegen<\/a> and kept getting &#8220;Hyperlink not resolved errors&#8221;. Turns out if you just pass kindlegen a single html file to process into a mobi it will only ever process that file. You&#8217;ll need to keep all your content in a single html file.<\/p>\n<p>If you want to structure your document as multiple html files you have to create a OPF to process with kindlegen and include a manifest in it. Kindlegen will add all your linked html files to the mobi and everything should work correctly.<\/p>\n<p>You&#8217;d be wise to <a href=\"http:\/\/www.aliciaramirez.com\/2014\/05\/how-to-make-a-kindle-ebook-from-scratch\/\">refer elsewhere<\/a> for full details of the OPF format, but an example manifest section might look like this:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n    &lt;manifest&gt;\r\n        &lt;item id=&quot;content&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;index.html&quot;&gt;&lt;\/item&gt;\r\n        &lt;item id=&quot;c1&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;methods.html&quot;&gt;&lt;\/item&gt;\r\n        &lt;item id=&quot;c2&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;cutting.html&quot;&gt;&lt;\/item&gt;\r\n        &lt;item id=&quot;c3&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;testing.html&quot;&gt;&lt;\/item&gt;\r\n        &lt;item id=&quot;c4&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;moremethods.html&quot;&gt;&lt;\/item&gt;\r\n        &lt;item id=&quot;c5&quot; media-type=&quot;text\/x-oeb1-document&quot; href=&quot;footnotes.html&quot;&gt;&lt;\/item&gt;\r\n    &lt;\/manifest&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing with kindlegen and kept getting &#8220;Hyperlink not resolved errors&#8221;. Turns out if you just pass kindlegen a single html file to process into a mobi it will only ever process that file. You&#8217;ll need to keep all your content in a single html file. If you want to structure your document as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-2179","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-z9","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/2179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=2179"}],"version-history":[{"count":1,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/2179\/revisions"}],"predecessor-version":[{"id":2180,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/2179\/revisions\/2180"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=2179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=2179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=2179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}