简体   繁体   English

WindowsHelp到HTMLHelp

[英]Windowshelp to htmlhelp

I tried converting a big winhelp project to htmlhelp project using htmlhelp workshop tool. 我尝试使用htmlhelp Workshop工具将一个较大的winhelp项目转换为htmlhelp项目。 It got converted, but images and table of contents are not working.please help 它已转换,但是图像和目录不起作用。请帮助

The WinHelp (.hlp) format has been around since the very early 1990s and is superseded by HTML Help 1.x (.chm). WinHelp(.hlp)格式早在1990年代就已经存在,并且已被HTML Help 1.x(.chm)取代。 Microsoft strongly advise you move away from WinHelp about ten years ago. Microsoft强烈建议您大约十年前退出WinHelp。

A tutorial on my site gives a step-by-step description how to convert WinHelp (HLP) to HTMLHelp (CHM) on a freeware/shareware and "low budget" level. 我的网站上的教程分步介绍了如何在免费软件/共享软件和“低预算”级别上将WinHelp(HLP)转换为HTMLHelp(CHM)。 The conversion project example from the download section includes a working structure and example files. 下载部分中的转换项目示例包括一个工作结构和示例文件。

Please note a tool called HHPMod especially for migrating context-sensitive F1 help. 请注意一个名为HHPMod的工具,专门用于迁移上下文相关的F1帮助。 If F1 help has been used intensively in your old project, it can be difficult to switch from WinHelp (.hlp) to HTMLHelp (.chm). 如果在旧项目中大量使用了F1帮助,则可能很难从WinHelp(.hlp)切换到HTMLHelp(.chm)。

You can of course use a helpauthoring tool (HAT) like Help+Manual , HelpScribble or any other HAT to convert existing WinHelp projects to HTMLHelp. 您当然可以使用诸如Help + ManualHelpScribble或任何其他HAT的帮助创作工具(HAT)将现有的WinHelp项目转换为HTMLHelp。

For further information see also Running WinHelp files on Windows10 有关更多信息,请参见在Windows10上运行WinHelp文件。

Please note that there is a sample project available in my step-by-step guide for download that should lead to the following result when using HTMLHelp Workshop Wizard: 请注意,在我的分步指南中有一个示例项目可供下载 ,使用HTMLHelp Workshop Wizard时,它会导致以下结果:

在此处输入图片说明

If this first important step for the migration into the HTMLHelp CHM format was reached, further work is necessary eg especially for context-sensitive F1-Help of an application. 如果达到了向HTMLHelp CHM格式迁移的第一个重要步骤,则有必要做进一步的工作,例如,对于应用程序的上下文相关F1-Help

Go to Converting WinHelp to HTMLHelp by HTMLHelp Workshop search for the HHPMod note box and follow the link further Information . 转至HTMLHelp Workshop将WinHelp转换为HTMLHelp,以搜索HHPMod注释框,然后单击链接以获取更多信息 As I understand this is the main task of HHPMod. 据我了解,这是HHPMod的主要任务。

Quote: "... The filenames "winh4qgg.htm, .." created in the conversion process for each unique topic's HTML page are not "user-friendly"." Quote: “ ...在转换过程中为每个唯一主题的HTML页面创建的文件名” winh4qgg.htm,..“并非“用户友好”。

You need to read Notes on Fixing HTML Help Converted from WinHelp too and you may want to use a tool like Find and Replace FAR HTML . 您还需要阅读有关从WinHelp转换而来的修复HTML帮助的说明,并且可能要使用“查找和替换FAR HTML”之类的工具。

All this - including the (old) help authoring for CHM-Format - has a learn curve of course. 所有这些-包括(旧的)CHM格式的创作帮助-当然都有学习曲线。

As far as I know the filenames can be left as they are if no F1 help is needed. 据我所知,如果不需要F1帮助,则可以保留文件名。 You have to decide how to clean up the input data for the HTMLHelp Workshop (HHW) and especially the point in time when you only have to work with the HHW to create a clean CHM file. 您必须决定如何清理HTMLHelp Workshop(HHW)的输入数据,尤其是在只需要与HHW一起创建干净的CHM文件时的时间点。

One thing I see is the use of the free HelpNDoc to convert your WinHelp project. 我看到的一件事是使用免费的HelpNDoc来转换WinHelp项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM