从帮助ID获取CHM详细信息 [英] to get CHM details from help ID

查看:107
本文介绍了从帮助ID获取CHM详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有帮助字符串ID和一些CHM文件

I have Help string id and some CHM files

通过帮助字符串,我想查找诸如CHM文件名,链接到该帮助ID的页面,该页面的描述,标题等详细信息.

Through the help string, I want to find details like CHM file name, the page linked to that help id, description, title etc of that page.

如果您具有文件名和搜索条件,我拥有所有代码可对多个CHM文件执行字符串搜索.但我的担心是,仅当帮助ID可用时,如何才能找到主题名称,chm名称等.

I have all the code to perform string search on multiple CHM files,if you have file name and search criteria. but my concern is ,only if help id is available, so how can i find topic name ,chm name etc.

是否可以通过帮助ID查找chm文件的详细信息?

Is that possible to find details of chm files through help id ?

推荐答案

您可能知道CHM就像是一个压缩的Web(HTML存档),带有一些元数据的其他系统文件.上下文ID主要是通过编译alias.h和map.h文件来集成的.这两个文件的目的是简化开发人员和帮助作者之间的协调.映射文件将ID链接到地图编号-通常,开发人员可以轻松创建该ID,并将其传递给帮助作者.然后,帮助作者创建一个将ID链接到主题名称的别名文件(请参阅:

You may know a CHM is something like a zipped web (HTML archive) with some additional system files of metadata. Context ID's are mostly integrated by compiling a alias.h and map.h file. The purpose of the two files is to ease the coordination between developer and help author. The mapping file links an ID to the map number - typically this can be easily created by the developer and passed to the help author. Then the help author creates an alias file linking the IDs to the topic names (See: Creating Context-Sensitive Help for Applications.

我正在使用 FAR HTML 作为充满以下内容的工具箱各种创作,文件和HTML实用程序.它有30天的免费试用期.

I'm using FAR HTML as a toolbox full of various authoring, file and HTML utilities. It has a 30 day free trial.

以下alias.h已编译为CHM:

Following alias.h was compiled into a CHM:

;-------------------------------------------------------------
; alias.h file example for HTMLHelp (CHM)
; www.help-info.de
;
; All IDH's > 10000 for better format
; last edited: 2006-07-09
;---------------------------------------------------
IDH_90000=index.htm
IDH_10000=Context-sensitive_example\contextID-10000.htm
IDH_10010=Context-sensitive_example\contextID-10010.htm
IDH_20000=Context-sensitive_example\contextID-20000.htm
IDH_20010=Context-sensitive_example\contextID-20010.htm
IDH_30000=CHM-example.chm::/HTMLHelp_Examples\jump_to_anchor.htm#AnchorSample

可以使用FAR HTML打开CHM,并通过复制和粘贴获得所有ID和主题信息.

The CHM can be opened using FAR HTML and by copy and paste you have all ID and topic information.

要通过代码执行此操作,您必须对CHM内部有深刻的了解.

For doing this by code you must have deep knowledge of the CHM internals.

这篇关于从帮助ID获取CHM详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆