CHM 格式替代品?

发布于 2024-11-29 09:16:49 字数 1356 浏览 2 评论 0原文

Microsoft CHM 格式非常有用,因为它提供了以下功能:

  • 与树视图竞争的表。
  • 指数。
  • 索引搜索。
  • 基于 HTML 源。

    但是这种格式已经过时并且有很多缺点:

  • 存在安全问题(允许执行 JavaScript 代码)。
  • 不知道新的 HTML 格式。
  • 没有记录。
  • 无法正确处理不同的字符编码(如UTF-8)。

    CHM 是否有任何替代品,具有适用于所有 desctop 操作系统的阅读器和编译器?

    附注。我听说 QT 来了,KDE、NetBeans 也使用自己的帮助格式。非供应商特定的怎么样?

    PPS。一些相关:

  • http://live.gnome.org/devhelp
    DevHelp 是一个基于 GNOME 的在线帮助系统,面向开发人员
  • http://en.wikipedia.org/wiki/MHTML MHTML,MIME HTML 的缩写
  • http://en.wikipedia.org/wiki/EPUB 国际数字出版论坛免费开放的电子书标准
  • http://en.wikipedia.org/wiki/Mobipocket 还有电子书专有格式

    PPS。作为状态页 http://en.wikipedia.org/wiki/Comparison_of_e-book_formats 大多数对 CHM 关闭的是 EPUB 和 Mobipocket 格式。但这种格式内部使用 XHTML,因此 EPUB/mobi 阅读器可能无法正确呈现现有的 html 页面。另外,作为这种格式的新手,我不知道它们是否有 CHM 中的目录、索引和搜索功能。

  • Microsoft CHM format is great as provide such facilities:

  • Table of contends with tree view.
  • Index.
  • Indexed search.
  • Based on HTML source.

    But this format is outdated and have many drawbacks:

  • Have security issues (allow execute JavaScript code).
  • Don't know about new HTML formats.
  • Not documented.
  • Can not properly handle different character codings (like UTF-8).

    Are there any alternatives for CHM which have reader and compiler for all desctop OSes?

    PS. I hear that QT come this something like, KDE, NetBeans also use own help format. How about non-vendor specific?

    PPS. Some related:

  • http://live.gnome.org/devhelp and
    DevHelp is a GNOME based online help system aimed toward developers

  • http://en.wikipedia.org/wiki/MHTML
    MHTML, short for MIME HTML

  • http://en.wikipedia.org/wiki/EPUB
    free and open e-book standard by the International Digital Publishing Forum

  • http://en.wikipedia.org/wiki/Mobipocket
    also e-book proprietary format

    PPS. As state page http://en.wikipedia.org/wiki/Comparison_of_e-book_formats most closed to CHM is EPUB and Mobipocket format. But this format internally use XHTML so existing html page may not properly rendered by EPUB/mobi readers. Also as new to this format I don't know if they have TOC, index and search as in CHM.

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

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

    发布评论

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

    评论(3

    安人多梦 2024-12-06 09:16:49

    Microsoft 帮助解决方案的现代演变似乎是这样的:

    1. WinHelp (.hlp) 1990 -2015
    2. Microsoft 编译的 HTML 帮助 (.chm) 1996-2021
    3. Microsoft 帮助 2 (.hxs) 2001-2009
    4. Microsoft 帮助查看器 (.mshc) 2010-2022+

    Microsoft Help 2 从未发布,因为它于 2009 年被取消。这导致 .chm 文件成为标准,直到 2021 年宣布 .chm 文件已弃用。

    最新的格式 .mshc 随 Visual Studio 2010 一起发布,自 Windows 8 起就在操作系统中得到本机支持。这个问题是在 2011 年提出的,所以当时就可以提供这个答案。

    Microsoft 从未开发过帮助创作工具 (HAT),因此您需要第 3 方解决方案,例如 HelpWare

    目前不建议使用这些 Microsoft 解决方案。现代方法是:

    1. EPUB 文件
    2. 包含所有内联内容的 HTML 文件
    3. MarkDown 文件

    The modern evolution of the Microsoft help solutions appears to go like this:

    1. WinHelp (.hlp) 1990-2015
    2. Microsoft Compiled HTML Help (.chm) 1996-2021
    3. Microsoft Help 2 (.hxs) 2001-2009
    4. Microsoft Help Viewer (.mshc) 2010-2022+

    Microsoft Help 2 was never released as it got cancelled in 2009. This led to .chm files being the standard until it was announced in 2021 that .chm files are deprecated.

    The newest format, .mshc, was released with Visual Studio 2010 and has been supported natively in the OS since Windows 8. This question was asked in 2011 so this answer could have been provided back then.

    Microsoft never made a Help Authoring Tool (HAT) so you need 3rd party solutions like HelpWare

    None of those Microsoft solutions are recommended at this point. Modern methods are:

    1. EPUB File
    2. HTML File with everything inlined
    3. MarkDown File
    尸血腥色 2024-12-06 09:16:49

    不,什么都没有。即使在 Windows 上,Vista+ 也有一个新的帮助系统,但它的使用率并不高,并且可能会保持不变,直到 XP 对企业界不再适用。 Visual Studio 帮助系统已与系统帮助系统分离。

    开源世界已经发挥了一些作用,但通常基于松散的 html 文件,并且从来都不是非常可扩展的(例如,用户可以安装新的应用程序,并且其帮助内容将与现有的帮助系统集成)。 html 手册比帮助系统还多。

    已经进行的少数尝试连接到 GNome 或 KDE,因此仅适用于随这些系统提供的应用程序。 (不适用于第三方 GTK 和 QT 应用程序)。它们也不是很好(同样经常是松散的 HTML,缓慢),而且在时间上也不是很稳定。他们通常会更改每个主要版本。这是可以做一点开放桌面标准化的地方之一,但一如既往,至少有人必须放弃他当前的帮助系统。

    不过,有大量适用于各种(非 Windows)平台的 CHM 阅读器,最近还出现了一种便携式编译器。 KDE 和 Gnome 都有自己的 chm 阅读器(分别是 kchmviewer 和 gnochm),这一事实足以说明问题。

    No there is nothing. Even on Windows, Vista+ has a new helpsystem but it is not used much and that will probably remain the same till XP is dead to the corporate world. Visual Studio helpsystems have been decoupled from the system helpsystem.

    The opensource world has played a bit, but usually on the basis of loose html files, and never very extensible (e.g. that an user could install new apps and that its helpcontent would integrate with the existing helpsystem). IOW more html manuals than helpsystems.

    The few attempts that have been made were connected to either GNome or KDE, and thus only worked for the apps that were delivered with those systems. (and not for e.g. third party GTK and QT apps). They were not very nice either (again often loose HTML, slow), and not very stable in time. Often they change every major version. It is one of the places that could do with a little bit of opendesktop standarization, but as always, that stumbles on at least one have to give up his current help system.

    There are tons of CHM readers for the various (non-windows) platforms though, and recently also one portable compiler. The fact that both KDE and Gnome have both their own chm reader (resp. kchmviewer and gnochm) says enough.

    以往的大感动 2024-12-06 09:16:49

    Qt Assistant 是我所知道的最接近的,它可以用于显示自定义帮助集合。但是,它并未预安装在任何操作系统上。

    Qt Assistant is the closest I know, it can be used to display custom help collections. However, it is not pre-installed on any of the OSes.

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