html階層構造をepub化

wget -r したhtmlをPDFやepub変換したくて調べたら
calibreのweb2disk、ebook-convertで一括変換できるみたい。
"--input-encoding=Shift-JIS"などで文字コードを指定すると文字化けが減るはず。

calibre - E-book management
web2disk — calibre User Manual
ebook-convert — calibre User Manual
Automatic Webblog conversion to epub by Calibre
2011-03-08 - きちめも

calibreは他にもpythonで色々と遊べそうだ。
Lambda the Ultimate を Kindle で読む - 言語ゲーム