如何给CHM文件设置标题?

发布于 2024-12-03 11:18:38 字数 284 浏览 1 评论 0原文

我的 CHM 文件打开时标题栏中的标题始终为 帮助,我想更改此设置。

我更改了 HHP 文件中的 Title 属性,但这没有帮助。

我也尝试将其添加到 HHP:

[WINDOWS]
main="my-help-title"

但这也没有帮助,帮助窗口的标题始终保持帮助

我怎样才能更改标题?我正在从 Win Forms 应用程序打开 CHM。

提前致谢!

My CHM file always opens with the title Help in the title bar and I want to change this.

I changed the Title property in HHP file, but that didn't help.

I also tried adding this to HHP:

[WINDOWS]
main="my-help-title"

but that didn't help either, help-window's title always stays Help.

How can I change the title? I'm opening the CHM from a Win Forms application.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我们的影子 2024-12-10 11:18:38

尝试

[options]  
Title="my-help-title"

查看http://www.nongnu.org/chmspec/latest/INI.html 更多选项

如果没有,那么可能是 [windows] 选项,如下所示:

[WINDOWS]
main="Online Help","CHM-example.hhc","CHM-example.hhk","index.htm","index.htm",,,,,0x23520,275,0x1046,[317,243,947,683],0xB0000,,,,,,0

Try

[options]  
Title="my-help-title"

See http://www.nongnu.org/chmspec/latest/INI.html for more options

If not, then it is probably the [windows] option, which look like this:

[WINDOWS]
main="Online Help","CHM-example.hhc","CHM-example.hhk","index.htm","index.htm",,,,,0x23520,275,0x1046,[317,243,947,683],0xB0000,,,,,,0
潜移默化 2024-12-10 11:18:38

HTML 帮助不是 Unicode 应用程序,如果 CHM 的主要语言 ID 与系统 LCID 的主要语言 ID 不匹配(例如,日语操作系统上显示的 KOR 帮助标题),则存在显示垃圾字符的风险。这里需要注意的是,当帮助标题被编译为英文时。英文帮助标题可以在所有操作系统上显示其标题栏字符串,因为所有代码页都支持英文。

不幸的是检查太严格了。仅应检查主要语言 ID,但 HH 还会检查次要语言 ID,导致葡萄牙语(巴西)帮助在葡萄牙语(葡萄牙)PC 上显示 HTML 帮助。

对于英语帮助,过去所有帮助都必须设置为英语(美国)。这个bug在HH 1.31中修复了吗?例如,现在英语(澳大利亚)帮助将在所有系统上正确显示。

http://kb.helpwaregroup.com/ms-html-help/hh-faq#TOC-Why-does-my-CHM-window-show-the-title-HTML-Help-instead-of-my -标题-

HTML Help is not a Unicode application, and there is a risk of showing garbage characters if the primary language ID of the CHM does not match the primary language ID of the systems LCID (for example a KOR help title displayed on a Japanese OS). The caveat here is when the help title is compiled as English. English help titles can display their titlebar string on all operating systems since all of the code pages support English.

Unfortunately the check is too strict. Only the Primary Language ID should be checked, however HH also checks the Secondary Language ID causing say Portuguese (Brazil) help to display HTML Help on a Portuguese (Portugal) PC.

In the case of English help, in the past all help had to be set to English (US). This bug was fixed in HH 1.31? and now English (Australian) help for example will display correctly on all systems.

http://kb.helpwaregroup.com/ms-html-help/hh-faq#TOC-Why-does-my-CHM-window-show-the-title-HTML-Help-instead-of-my-title-

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文