将 rtf 文件转换为 chm 文件?将hlp文件转换为chm文件?
当使用 VC++ 进行开发时,我们将 .hlp 文件发送给客户。创建它的过程如下:
1.创建rtf文件
2. 在WinHelp 中新建工程,然后编译得到.hlp 文件。
现在开发已转移到.net,而且我发现我们无法再在windows 7或vista中打开.hlp文件。
我想知道是否有任何免费的命令行工具可以用来将这些 .hlp 文件转换为 .chm 文件?
我还想知道是否有任何免费的命令行工具将 .rtf 文件转换为 .chm ?
We were shipping .hlp files to customers when development was in VC++. The process to create it was as follows:
1. Create rtf file
2. Create new project in WinHelp and then compile to get .hlp file.
Now development has moved to .net and also I found that we can no longer open .hlp files in windows 7 or vista.
I wanted to know if there are any free command line tools using which we can convert these .hlp files to a .chm file ?
Also I wanted to know if there are any free command line tools to convert .rtf file to .chm ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Microsoft 有一个工具可以将 Win 帮助项目转换为 HTML 帮助。它被称为 HTML 帮助研讨会。您可以使用它打开现有的 .hpj 项目文件,然后选择将其转换为 HTML 帮助项目 .hhp 的选项。然后,您可以使用相同的工具编译 .hhp 项目以生成 .chm 文件。
然而该工具也存在许多缺点。它为 rtf 文件中的每个页面生成一个 HTML 页面,但这些 HTML 页面的命名是随机的,导致将来引用很困难。
如果您只有 .hlp 文件而不是原始的 Win Help 项目文件,则可以使用反编译器先生成 .hpj 和 .rtf 文件,然后使用 HTML Help Workshop 转换它们。
我发现以下链接非常有用:
http://www.help-info.de /en/Help_Info_WinHelp/hw_converting.htm
编辑:还有一些 3rd 方转换器和帮助创作工具 (HAT) 也可用,它们可以更好地完成工作比 HTML Help Workshop 但大多数都不是免费的。
Microsoft has a tool which can convert Win Help projects to HTML Help. It is called HTML Help Workshop. You can open the existing .hpj project file with it and choose the option to convert it to HTML Help project .hhp. You can then compile the .hhp project with the same tool to generate the .chm file.
There are however many shortcomings in the tool. It generates an HTML page for each page in the rtf file but the naming of these HTML pages is random causing future referencing to be difficult.
If you just have the .hlp file and not the original Win Help project files, you can use a decompiler to generate the .hpj and .rtf files first and then convert them using HTML Help Workshop.
I found the following link quite helpful:
http://www.help-info.de/en/Help_Info_WinHelp/hw_converting.htm
EDIT: there are some 3rd party convertors and Help Authoring Tools (HATs) also available which may do the job better than HTML Help Workshop but most of them are not free.
请记住,CHM 是编译后的 HTML,与 html 关系不大,因此您的主要问题是将 rtf 转换为 html
我会尝试将 RTF 转换为 HTML,但针对每个文件的主题。
您可以尝试的是将 RTF 输入到 word 中并尝试另存为 HTML,然后使用程序/脚本将各种主题拆分为单独的文件和修复参考。
然后使用 CHM 编译器(如 MS htmlhelp Workshop)编译结果
Keep in mind that CHM is compiled HTML, and not very related to html, so your main problem is conversion of rtf to html
I would try to convert RTF to HTML, but on a topic per file.
What you could try is to input the RTF into word and try to save as HTML, and then use a program/script to split out the various topics to individual files and fixup references.
Then compile the result with a CHM compiler (like MS htmlhelp workshop)