NAME

html2mobi - A script to convert html files or a collection of html files to a MobiPocket file


SYNOPSIS

  html2mobi file.html
  html2mobi file1.html file2.html ... (not tested so much...)


DESCRIPTION

A script to convert html files or a collection of html files to a MobiPocket file


OPTIONS

--title TITLE

Specify the title for the book. This overrides the value given in the html file.

--prefixtitle PREFIX

Add a prefix to the title of the book. Useful for specifying number for books in series.

--author AUTHOR

Specify the author of the book.

--mobifile MOBIFILE

Name of the output file. This overrides the default value.

--htmlfile HTMLFILE

Saves the html that is packed into mobi format. This html code contains Mobipocket specific things that are added automatically. This is mostly useful for debugging.

--coverimage IMAGE

The image to be used as cover image.

--addthumbnail IMAGE

The image to be used as tumb nail. If this flag is not used the specified cover image is used.

--addcoverlink

Add link to cover image first in main HTML document. This requires the --coverimage flag.

--fixhtmlbr

Tries to fix html files where two <br> in a row has been used instead of <p></p>.

--keepbr

Used together with --fixhtmlbr and causes to <br> to be kept so the result is a book with space between paragraphs.

--gentoc

For a collection of html files generate the table of contents automatically.


EXAMPLES

   html2mobi Alice_In_Wonderland.html


TODO

   - Specify margins with flags
   - Follow local links when given a root html file
   - Get meta information from somewhere...
   - Include wget
   - News argument (bbc, ....)


BUGS

   - Images larger than a certain size less than 600x800 does
     not work on the Gen3. I now resize so that maximum width
     is 480. But 600x800 gif file did work with the demo Alice
     mobi file. So there is a bug here somewhere.


AUTHOR

Tommy Persson (tpe@ida.liu.se)