LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: quanliking

[请置顶] linux 下解决 chm (windows help文件)方案,接近完美。

[复制链接]
发表于 2003-6-6 15:57:47 | 显示全部楼层

为什么用CHM

LINUX的文档用CHM格式好像是不太对劲
发表于 2003-6-6 16:44:15 | 显示全部楼层
不错的东东:)
发表于 2003-6-6 19:41:24 | 显示全部楼层
Well, there is a much easy way if you have installed Crossover office (might work with wine if you have a windows 9x installed on a different partition). (Sorry, I am a terriable typyist for typing chinese.)

Once you have installed that program and windows web components (installed when you install office product), you will be able to find the hh.exe in your .cxoffice directory. run wine with hh.exe then your .chm file. It just works same as in windows, no need to decompile to html etc. Even chinese .chm files are working fine. Try it and good luck.
 楼主| 发表于 2003-6-7 12:24:30 | 显示全部楼层
最初由 mdeng 发表
Well, there is a much easy way if you have installed Crossover office (might work with wine if you have a windows 9x installed on a different partition). (Sorry, I am a terriable typyist for typing chinese.)

Once you have installed that program and windows web components (installed when you install office product), you will be able to find the hh.exe in your .cxoffice directory. run wine with hh.exe then your .chm file. It just works same as in windows, no need to decompile to html etc. Even chinese .chm files are working fine. Try it and good luck.


如果你已经安装并配置好 wine ,请用一下方法:

来至网上,有条件朋友可以试试:
cd ~/YourFolderName
wine -dll shlwapi=n /mnt/win_c/windows/hh.exe some_file_name.chm

The current Codeweaver (free) version of WINE works for M$ .chm "help"
files. You will have to change the "/mnt/win_c" to whatever it is on your
file system. I have no idea what the other parms do but if you take them
out, it bombs.

I have not been able to get anything to print in WINE and don't now why,
but at least I can view these files.

I post this so that it gets to Google's archive and others will have use of
the knowledge via a search on "Linux chm"
Hope this helps.
 楼主| 发表于 2003-6-7 16:57:27 | 显示全部楼层
今天重新到网上找了一下,发现一个台湾爱好者写的在 linux 下解开 chm 的工具,好不容易下到原文件,发现能用,但他支持的是繁体,我稍改了一下,能解开 linuxsir 上的简体 chm 了,真是兴奋,晚上我改好后,发上来。大家得给点鼓励呀!:)
发表于 2003-6-7 17:48:11 | 显示全部楼层
大侠能否给下载原文件的地址?
 楼主| 发表于 2003-6-7 20:38:20 | 显示全部楼层
做好了,欢迎大家来测试。:)
chm2html_gb.tgz 这份是我改的,能解简体中文 CHM.

http://211.92.88.40/public/chm2html/
源文件:
chm2html-0.1a.tgz       07-Jun-2003 15:28   272k  
改过的:
chm2html_gb.tgz         07-Jun-2003 20:14   957k
发表于 2003-6-15 09:36:43 | 显示全部楼层
[linuxsir@localhost chmlib-0.31]$ make install
chmod a+r libchm.la
libtool --mode=install /bin/cp libchm.la /usr/local//lib
/bin/cp .libs/libchm.so.0.0.0 /usr/local//lib/libchm.so.0.0.0
/bin/cp: cannot create regular file `/usr/local//lib/libchm.so.0.0.0': Permission denied
make: *** [install] Error 1


为什么会这呢!
发表于 2003-6-15 10:18:05 | 显示全部楼层
用crossover office是最佳解决方案
我的:

$ cat /usr/bin/readchm
/opt/cxoffice/bin/wine "/home/lucida/.cxoffice/dotwine/fake_windows/Windows/hh.exe"  $1
发表于 2003-6-20 09:06:46 | 显示全部楼层

chm_http也挺好用的

用make examples编译chmlib,能得到chm_http。运行chm_http <filename>后用浏览器访问本机8080端口就可以浏览到该文件的内容了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表