Canti
@author: Andrew Mantel
@version: 1.4a

New to version 1.4a:
Fixed an error in the toc.ncx file of the epubs.

New to version 1.4:
-Epub
This is in BETA! I do not have an iPad and so I have no idea how this will look on one.
I wanted to add epub support so that you could add your manga to your iTunes library, making it easier to sync (and also so you could view it in iBooks).
This is my first experience with epubs and I wrote the code from reading epub tutorials online. A lot of this is guess work and therefore will most likely not work perfectly.
If you have any epub experience and know how to make these epubs work better on the ipad, please pm me on mobileread.com (my username is lilman). Thanks!
This is set up in the .properties file.
Note that there is no binding support for epubs yet.
-Bug fix: Fixed changing page_filename_length after processing manga will correctly rename image filenames when binding (I know, you probably would have never noticed this, but I did and it bothered me :P)

New to version 1.3:
-Auto-Binding
Same as binding, except you don't create a bind file. Instead, you just specify a single size for all bindings (for example, all bindings could have 10 folders in them).
This is set up in the .properties file.

New to version 1.2:
-Binding
Binding allows you to easily combine chapters into volumes while still keeping your original manga chapter folders intact.
See the included bind.txt for instructions on setting up a bind file.
-Can specify zip format (either .zip or .cbz)
I figured some comic programs might like the .cbz extension better. This option is set in the .properties file.
-Changed command line parameters
I changed some of the command line parameters, so run 'java -jar ConvertManga.jar' to see the list of new commands.
-Other random tweaks
I rewrote a good chunk of the code. Lots of error handling and other nice stuff. For example, let's say you already converted a lot of manga but
you added a few more chapters to your collection. The program is smart enough not to reprocess manga that has already been processed (a big timesaver).

New to version 1.1a:
Fixed the grayscale not working bug.

New to version 1.1:
Since the iPad is about to come out, I made some small changes to the program to accomodate the new shiny device.
-Added support to .properties file for specifying color or grayscale of output images.
-Added support to .properties file for specifying number of colors of output images, or not limiting the range of colors at all.
Also, I got tired of calling this "my manga processing program" so I'm giving it a name: Canti, after the Medical Mechanica robot from FLCL. So anyway, enjoy Canti version 1.1.


Instructions:
1) Install ImageMagick. ImageMagick is free software used for image manipulation and can be downloaded from http://www.imagemagick.org/script/binary-releases.php
2) Edit ConvertManga.properties file to suit your needs. The default values are for Kindle DX users / Linux operating system, so read the file and make any necessary changes.
3) Make sure your manga scans are organized like the following example:
   Manga_Title
     Blah_blah_001
     Blah_blah_002
     ...
     Blah_blah_999
4) Open a command prompt to the folder containing ConvertManga.jar and .properties. Run:
   java -jar ConvertManga.jar
   This will give you a list of the commands you will need to specify to run the program. Here is an example of running the program:
   java -jar ConvertManga.jar -parent_folder /home/my_name/Manga/School_Rumble/ -prefix "School Rumble - Ch." -num_chars_keep_suffix 3 -output_folder /home/user_name/Manga_Kindle/School_Rumble/
5) Let the program run. Depending on how much manga you have and the speed of your computer it may take some time to finish. It will give you a time estimate based on how much work it has done and it much work is left to do.


Note:
I wrote this program for fun. It works great on my Kindle DX. I hope you enjoy!

Also, I HIGHLY recommend using pdf for manga on the Kindle DX.
