这个项目的目的是将chm电子书转换成静态网页版本,并能在网站上访问.只测试了2_1_Pathfinder v2.01简体.chm
这个文件,不保证兼容性
-
1.使用windows自带hh工具将chm解包 eg.
hh -decompile D:\download\chmToHtml-master\html D:\download\chmToHtml-master\2_1_Pathfinder v2.01简体.chm
-
2.执行
strlower.py
将html/
中导出的文件名转换为utf8,小写 (后面url会访问到小写路径)python strlower.py
-
3.执行chm_to_html.py将html/content.hhc转换为
index.html
和menu.js
使用了mmenu.js
插件python chm_to_html.py
The purpose of this project is to convert a chm e-book into a static web version that can be accessed on a website. Only tested the file 2_1_Pathfinder v2.01简体.chm
, compatibility is not guaranteed
-
- Unpack the chm using the hh tool that comes with windows
eg.
hh -decompile D:\download\chmToHtml-master\html D:\download\chmToHtml-master\2_1_Pathfinder v2.01简体.chm
- Unpack the chm using the hh tool that comes with windows
eg.
-
- Execute
strlower.py
to convert the exported filename inhtml/
to utf8,lowercase (the later url will access the lowercase path)python strlower.py
- Execute
-
- Execute chm_to_html.py to convert html/content.hhc to
index.html
andmenu.js
using themmenu.js
pluginpython chm_to_html.py
- Execute chm_to_html.py to convert html/content.hhc to