Split CHM into html.

Source: Internet
Author: User
To open CHM into html, refer to Linux general technology-Linux technology and application information. The following is a detailed description. The e-book in the CHM format feels good and convenient to use. There is only one file. However, since Microsoft Compiled HTML Help is its full name, it was only available in Windows. Later, many viewing tools and xchm/chmsee/gnochm/kchmviewer were available in Linux, however, it is said that the effect is quite different.

Later, this format was reversed. Although it was complicated, it could still be solved. The main content is said to be consistent with the compression algorithm of the cab file, as a result, some decompression tools can be used to unlock it. For example, the famous open-source compression tool 7zip (which is strongly recommended) can be used to unlock chm. This tool open-source program is very high, so there are also in Linux, Debian package called p7zip/p7zip-full, the previous simple point, the latter is more comprehensive, but they do not support chm format decompression.

Later, I found another tool named archmage, which imitates archive. (I checked it with dict. It turned out to be a word, archimage, a certain great wizard, or something that Persian had to pay attention ), it is written in Python and is used to unlock or view chm. Basic usage:

Archmage
Unbind the chm file to the directory

Archmage-p
Treat yourself as an http server, run it on the specified port, and then you can view it in the browser.

If the python module of apache is installed, you can call its module to run it directly under apache. In fact, it is quite good to solve the problem, so it is easier to get the text of it. I tried a few of them, some of them are completely normal, even the chapters next to them are easy to use, some are normal, and the sidebar will be garbled, it is estimated that the code can be transferred.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.