backbone-fundamentals icon indicating copy to clipboard operation
backbone-fundamentals copied to clipboard

Broken link while building .mobi book

Open 1st opened this issue 10 years ago • 4 comments

Hello Addy!

I tried to compile .mobi book from source. I did it, but with one error. I think that problem is in broken link.

Short answer

Warning(prcgen):W14001: Hyperlink not resolved:  /tmp/mobi-lIuMsH/ch008.xhtml#marionette
Warning(prcgen):W14002: Some hyperlinks could not be resolved

Full answer

$ sudo make mobi
awk 'FNR==1{print ""}{print}' chapters/*.md > 'backbone-fundamentals'.md
pandoc -s 'backbone-fundamentals'.md --normalize --smart -t epub -o 'backbone-fundamentals'.epub \
        --epub-metadata build/metadata.xml \
        --epub-stylesheet epub.css \
        --epub-cover-image img/cover.jpg \
        --title-prefix 'Developing Backbone.js Applications' \
        --normalize \
        --smart \
        --toc
# Download: http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211
# Symlink bin: ln -s /path/to/kindlegen /usr/local/bin
kindlegen 'backbone-fundamentals'.epub

*************************************************************
 Amazon kindlegen(Linux) V2.9 build 0730-890adc2 
 A command line e-book compiler 
 Copyright Amazon.com and its Affiliates 2013 
*************************************************************

Info(prcgen):I1047: Added metadata dc:Title        "Developing Backbone.js Applications"
Info(prcgen):I1047: Added metadata dc:Date         "2014-03-07T21:21:20Z"
Info(prcgen):I1047: Added metadata dc:Creator      "Addy Osmani"
Info(prcgen):I1047: Added metadata dc:Rights       "Creative Commons Attribution Non-Commercial Share Alike 3.0"
Info(cssparser):I10004: @rules other than @import, @charset and @font-face are not supported.
Info(prcgen):I1052: Kindle support cover images but does not support cover HTML. Hence using the cover image specified and suppressing cover HTML in content.     URL: /tmp/mobi-lIuMsH/cover.xhtml
Warning(prcgen):W14021: Guide title is empty. Item is ignored
Info(prcgen):I1002: Parsing files  0000022
Info(prcgen):I1015: Building PRC file
Info(prcgen):I1006: Resolving hyperlinks
Warning(prcgen):W14001: Hyperlink not resolved:  /tmp/mobi-lIuMsH/ch008.xhtml#marionette
Warning(prcgen):W14002: Some hyperlinks could not be resolved.
Info(prcgen):I1008: Resolving start reading location
Info(prcgen):I1049: Building table of content     URL: /tmp/mobi-lIuMsH/toc.ncx
Info(pagemap):I8000: No Page map found in the book
Info(prcgen):I1045: Computing UNICODE ranges used in the book
Info(prcgen):I1046: Found UNICODE range: Basic Latin [20..7E]
Info(prcgen):I1046: Found UNICODE range: General Punctuation - Windows 1252 [2018..201A]
Info(prcgen):I1046: Found UNICODE range: Latin Extended-A [100..17F]
Info(prcgen):I1046: Found UNICODE range: Latin-1 Supplement [A0..FF]
Info(prcgen):I1046: Found UNICODE range: Spacing Modifier Letters [2B0..2FF]
Info(prcgen):I1046: Found UNICODE range: Combining Diacritical Marks [300..36F]
Info(prcgen):I1017: Building PRC file, record count:   0000278
Info(prcgen):I1039: Final stats - text compressed to (in % of original size):  40.86%
Info(prcgen):I1040: The document identifier is: "Developing_B-s_Applications"
Info(prcgen):I1041: The file format version is V6
Info(prcgen):I1031: Saving PRC file
Info(prcgen):I1033: PRC built with WARNINGS!
Info(prcgen):I1016: Building enhanced PRC file
Info(prcgen):I1007: Resolving mediaidlinks
Info(prcgen):I1011: Writing mediaidlinks
Info(prcgen):I1009: Resolving guide items
Info(prcgen):I1017: Building PRC file, record count:   0000299
Info(prcgen):I1039: Final stats - text compressed to (in % of original size):  41.99%
Info(prcgen):I1041: The file format version is V8
Info(prcgen):I15000:  Approximate Standard Mobi Deliverable file size :   0003260KB
Info(prcgen):I15001:  Approximate KF8 Deliverable file size :   0003317KB
Info(prcgen):I1037: Mobi file built with WARNINGS!
make: *** [mobi] Error 1

1st avatar Mar 07 '14 21:03 1st

This looks like the broken link was an in-page link trying to get to the 'marionette' chapter. I wonder if something we're autogenerating for the TOC is causing this.

addyosmani avatar Mar 09 '14 12:03 addyosmani

Also I found strange warning with broken link to cover-image.jpg

Info(prcgen):I1049: Building table of content     URL: /tmp/mobi-nyqQdc/toc.ncx
Warning(prcgen):W14018: Cover invalid and was not built with the book :   /tmp/mobi-nyqQdc/cover-image.jpg
Info(pagemap):I8000: No Page map found in the book

1st avatar Mar 13 '14 12:03 1st

Broken link to Marionette chaired was fixed here https://github.com/addyosmani/backbone-fundamentals/pull/567

1st avatar Mar 13 '14 12:03 1st

Still ramaining one warning while we build mobi book.

Info(prcgen):I1052: Kindle support cover images but does not support cover HTML. Hence using the cover image specified and suppressing cover HTML in content.     URL: /tmp/mobi-MyAU1E/cover.xhtml
Warning(prcgen):W14021: Guide title is empty. Item is ignored
Info(prcgen):I1002: Parsing files  0000022

I don't know what is it. Maybe you know what is a problem?

1st avatar Mar 13 '14 12:03 1st