View Single Post
Old 10-19-2012, 11:21 PM   #3
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,794
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by maestroc View Post
I am using a music notation program called Finale 2012 to create an epub3 document filled with various pieces of sheet music. When this raw document is uploaded to Amazon for publishing it looks great in the online previewer except that there is no Table of Contents included (Finale 2012 does not provide that capability). All of the sheet music glyphs look the way they are supposed to.

The problem is that when I edit the raw epub file and add anything to the TOC, even as simple as changing the Title of the one existing TOC entry (using Sigil to do the editing) all of the sheet music turns into garbage characters once converted to MOBI. The only thing I am doing is adding navpoints such as these (there are 21 nav points in all):

This is an example of the toc.ncx after I have edited it (additional navpoint entries have been removed for space):

Code:
<?xml version="1.0" encoding="UTF-8"?>
<ncx xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"
    xmlns="http://www.daisy.org/z3986/2005/ncx/"
    version="2005-1"
    xml:lang="en">
    <head>
        <meta name="dtb:uid" content="http://example.org/dummy/URIstub/"/>
        <meta name="dtb:depth" content="1"/>
        <meta name="dtb:totalPageCount" content="0"/>
        <meta name="dtb:maxPageNumber" content="0"/>
    </head>
    <docTitle>
        <text>My Book Title</text>
    </docTitle>
    <navMap>
        <navPoint id="p1" playOrder="1">
            <navLabel>
                <text>Song Title 1</text>
            </navLabel>
            <content src="Text/p004.html"/>

        </navPoint>
        <navPoint id="p2" playOrder="2">
            <navLabel>
                <text>Song Title 2</text>
            </navLabel>
            <content src="Text/p005.html"/>

        </navPoint>
    </navMap>
</ncx>
When I view the edited epub in Calibre it looks correct and the TOC works properly. It is only when that same edited epub is uploaded the Kindle previewer shows garbage.

Does Sigil strip out any code that Finale might be putting into the epub3 document when it saves?
Any help or ideas would be greatly appreciated. I can provide additional code from the epub if needed.
If you just want to add toc to your epub try using epub fixer it will just add a toc and not touch the code itself so you shoud be able to get what you want
without putting it thru sigil
https://code.google.com/p/epubfixer/
Dopedangel is offline   Reply With Quote