1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
arCHMage is an extensible reader and decompiler for files in the CHM
format. This is the format used by Microsoft HTML Help, and is also
known as Compiled HTML. arCHMage is based on python-chm binding to
chmlib from GnoCHM project.
There is three ways to use arCHMage package now:
1) Extract .chm to directory(directory will be created):
archmage <chmfile> <directory>
2) Run as http-server, which will publish chm file contents on
specified port.
archmage -p <port> <chmfile>
3) Tune your apache to publish chm file contents if there is trailing
slash in request to that file (you will need working mod_python
for that):
Add that lines to your httpd.conf:
AddHandler python-program .chm
PythonHandler archmod.mod_chm
Restart apache.
Let's suppose, you have file sample.chm in DocumentRoot of your
apache. After that tuning you can receive raw chm file, if you
point your browser to
http://yourserver/sample.chm
or you can view chm file on the fly if you point your browser to
http://yourserver/sample.chm/ (note trailing slash)
|