项目概述
作为一个kindle的超级深度用户,在看到github上的这个项目时非常开心。
项目链接:https://github.com/agentzh/code2ebook#prerequisites
只需要提前安装了perl、cablir、ctags、vim即可,
将project项目放到文件夹下,运行下面两行代码即可完成mobi书的制作。
当然,实际上KIndle支持比较好的格式依然是azw3。
./src2html.pl --tab-width 4 myproject book-title
ebook-convert html_out/myproject/index.html my-project.azw3 --output-profile kindle_pw
项目实例
git clone https://github.com/agentzh/code2ebook
打开文件夹如下:
将需要生成电子书的项目代码“orbslam”文件下放到该文件夹下:
运行./src2html.pl --tab-width 4 orbslam/ book-title
,生成html文件夹,在运行ebook-convert html_out/orbslam/index.html my-project.azw3 --output-profile kindle_pw
生成awz3文件。
完美适配kindle。