This set of scripts is for generating periodicals with Kindlegen using Calibre in command line.
Eddie Lau, GPL 3.0
(Credit to nickredding on a workaround to display masthead title text properly)

=== Change log ===
Version 1.0: 07/15/11
Version 1.1: 07/19/11: Add windows script, better mastheadtext, remove external dependency BeautifulSoup.py, support on recipes that requires login username and password
Version 1.2: 07/21/11: Fix the bug that removes <p> tag that is directly embracing some other tag

=== Requirement ===
Calibre, Python

=== Instructions ===
1) Download Kindlegen from Amazon: http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621
2) Put the executable "kindlegen" and the recipe you want to use in this folder.
3) Edit script.sh(Linux)/script.bat (Windows). Change "mp.recipe" to the name of the recipe file. Change "mp.mobi" to the name of the output .mobi file. If the recipe requires a login username and password, change "username" and "password" accordingly. If you are using Windows, change "C:\Python27\" accordingly if your Python is not installed in that folder.
4) Execute script.sh/script.bat.

=== NOTE ===
To work with multiple recipes at the same time, please duplicate the content in this folder in multiple folders. One folder should serve for one recipe at one time.

=== Next step ===
Better typesetting for the articles
Make it a plugin of Calibre.
