Reading CHM files in Linux

Source: Internet
Author: User
Article Title: Reading CHM files in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
CHM file is a Help File System (compressed HTML Help File) launched by Microsoft Based on the HTML file feature, to replace the earlier WinHelp Help System (. hlp format ). In Windows, this type of file is called "Compiled HTML Help File ".
  
The CHM menu of the corresponding language is automatically displayed in the operating system of different languages. JavaScript, VBScript, ActiveX, JavaApplet, Flash, and HTML image files (GIF, JPEG, and PNG) supported by browsers (such as Internet Explorer and Mozilla) CHM also supports audio/video files (AU, MIDI, WAV, and AVI) and can be associated with the Internet through URL addresses.
  
XCHM is a CHM File reader in Unix. It is open source code (GPL) and supports FreeBSD, Linux, and Solaris. It is developed based on the wxWindows framework and chmlib library. WxWindows is an open-source C ++-based GUI framework. XCHM is based on Gtk +, that is, wxGtk. Chmlib is the ITSS/CHM File Processing library developed by Jed Wing's. This article describes how to install and use XCHM.
  
Download
  
To install XCHM, wxWindows and chmlib libraries are required. Go to their respective project home pages to download the latest version.
  
The chmlib library is http: // 66.93.236.84 /~ Jedwin/projects/chmlib/, latest version 0.31, file name is chmlib-0.31.tgz.
  
WxWindows is the http://wxwindows.sourceforge.net, the newest extension 2.4.2. The file name is wxgtk-2.4.2.tar.gz.
  
XCHM for the http://xchm.sourceforge.net, the latest 20170.8.10, the file name is xchm-0.8.10.tar.gz.
  
Install
  
First, install the chmlib library on Linux. Decompress the downloaded software package with the following command:
  
# Tar-xzvf chmlib-0.31.tgz
  
Then edit the Makefile file under the chmlib-0.31 directory with a text editor, replace "CC = gcc-3.2, LD = gcc-3.2" with "CC = gcc, LD = gcc ". Run the following command to compile and install the SDK.
  
# Cd chmlib-0.31
# Make; make install
  
After installing the chmlib library, run the following command to install wxGtk:
  
# Tar-xzvf wxGtk-2.4.2.tar.gz
# Cd wxGtk-2.4.2
#./Configure; make install
  
To install the above two items, you also need to install XCHM. Use the following command:
  
# Tar-xzvf xchm-0.8.10.tar.gz
# Cd xchm-0.8.10
#./Configure; make install
  
After the above installation is complete, XCHM still cannot be run. You need to create the following link:
  
# Ln-s/usr/local/lib/libchm. so.0/usr/lib/libchm. so.0
# Ln-s/usr/lib/libwx_gtk-2.4.so.0/usr/lib/libwx_gtk-2.4.so
  
Use
  
The use of XCHM on Linux is basically the same as that on Windows. Run the following command to open the software. Interface 1 after the software is started.
  
   
  
Startup Interface
  
# Xchm &
  
Click the Fonts icon on the toolbar to bring up the font Setting dialog box, as shown in. You can set the font to your favorite type here.
  
   
  
Font setting page
  
XCHM also supports printing. Click "Print..." to display the Print page, as shown in. It supports printing to files, that is, "Print to File", and also supports paper settings.
  
  
  
Print Interface
  
Summary
  
In forums, people often ask what tools are available in Linux to view the CHM File. Now with XCHM, you don't have to worry about reading CHM-format e-books in Linux. However, its support for Chinese characters is not very good (due to the chmlib problem). I believe it will be improved in future versions.
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.