After getting the pictures to my computer using Image Capture, doing a quick crop using Previewer I was able to get all the images saved to the drive. Then I created a text file like the following:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Book Title</title>
<meta name="cover" content="cover.jpg">
<meta name="Author" content="Lastname, Firstname" />
</head>
<body>
<mbp:pagebreak/>
<p><img src="page1.jpg"/></p>
<p>Text for the first page</p>
<mbp:pagebreak/>
<p><img src="page2.jpg"/></p>
<p>Text for the second page.</p>
</body>
</html>
After that I downloaded and used the simple amazon app kindlegen using a command like
path/to/kindlegen my-book-title.html
In the same directory as the html file it created a file with a .mobi extension. You can either plug in your kindle and copy the file into the documents directory or just use something like calibre. And that's all there was to it.
I was a bit frustrated because I couldn't find any docs that said what metadata the kindlegen app was looking for, so I had a bit of trial and error trying to figure it out. But I figured it out and now I've got kids books on the go.
No comments:
Post a Comment