LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1177|回复: 6

chm的另一解决方案(wine+hh.exe)

[复制链接]
发表于 2003-11-3 09:34:25 | 显示全部楼层 |阅读模式
首先确保你的wine正确安装了(最好还能显示和输入中文),然后安装explorer,现在你的虚拟windows目录下应该有hh.exe和hh.dat两个文件了。

修改你的wine config文件,添加类似这么一段
[Drive D]
"ath" = "/"
"Type" = "hd"
"Label" = "Root"
"Filesystem" = "win95"
"Codepage" = "0"

然后编辑/usr/bin/hh文件如下
  1. #!/bin/sh
  2. #view chm with hh.exe
  3. #hh
  4. if [ "$#" = "0" ]
  5.         then
  6.                 echo "useage:hh chmfile"
  7.         else
  8.                 wine ~/wine/c/Windows/hh.exe basename $1
  9. fi
复制代码

保存退出,chmod +x /usr/bin/hh

现在就可以用hh xxx.chm查看chm文件了。
截图如下







btw:依靠wine终究不是正道,还是期待chm_viewer的更新。
再btw:这个脚本过于简单,对于文件名中的特殊符号没有特别处理,所以如果文件名中有空格会出错,注意了。
发表于 2003-11-3 10:12:31 | 显示全部楼层
我是用vmware里的chmmgaic转成pdf看
书签和书内容中的连接都可以保存

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
 楼主| 发表于 2003-11-3 11:01:17 | 显示全部楼层
能搜索和使用书签么?
发表于 2003-11-3 11:34:16 | 显示全部楼层
搜索正文没问题
至于搜索书签,是chm特有的功能吧
发表于 2003-11-3 19:41:16 | 显示全部楼层
hiahia,偶用vmware+hh.exe :-)))
 楼主| 发表于 2003-11-3 19:58:40 | 显示全部楼层
i dislike vmware, it's so big , and a running service is needed.
发表于 2003-11-4 19:09:56 | 显示全部楼层
not only service/daemon, but also kernel modules, hehe
不过总体来说我还是觉得vmware的解决方案比wine要干净、好用,
而且。。。。。。其实也不是很大啦:-)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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