Changes

Jump to navigation Jump to search
791 bytes added ,  09:00, 27 August 2014
last steps
</pre>
=== {{code|container.xml}}===
<xmlcode>
The links to a named anchor should work, but don’t in my reader. I must investigate further...
 
== Converting images ==
 
In my case, all images are note lines, generated by LilyPond in one temporary directory. Your mileage will vary.
ConTeXt’s epub script creates a list of images in {{code|export-images.css}}, you might want to parse that to find all images.
 
<pre>
cd $LILYPONDTEMPDIR
for IMG in prd_songbook-temp-lilypond-*.pdf; do
NEWIMG=${IMG#prd_songbook-temp-lilypond-}
convert -density 196 $IMG'[0]' -trim +repage ../songbook.tree/OEBPS/Images/${NEWIMG%.pdf}.png
done
</pre>
 
== Create ePub ==
 
Look at the tree above - are all your files in the right location? Then zip your tree!
 
<pre>
cd songbook.tree
zip -ur ../songbook.epub *
</pre>
 
Now test it with your reader or editor (e.g. Calibre). (Apple iBooks or Adobe Digital Editions don’t work, don’t know why.)

Navigation menu