我可以在CHM文件中使用doxygen创建交互式SVG图像文件吗? [英] Can I have interactive SVG image files created with doxygen in CHM files?

查看:88
本文介绍了我可以在CHM文件中使用doxygen创建交互式SVG图像文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在由doxygen创建的文档中使用交互式svg图像文件。
在浏览器中打开html帮助文件没有显示错误。

I want to use interactive svg image files in my documentation created with doxygen. Opening the html help files in a browser shows no error.

当我在Windows chm帮助文件查看器中打开页面时,出现错误:

When I open the page in windows chm help file viewer I get an error:

An error has occurred in the script on this page.
Line: 9
Char: 1
Error: "init" is undefined.
Code: 0
URL: mk:@MSITStore some_long_address.svg

什么如何使用交互式svg图像文件?

What can I do to use interactive svg image files?

推荐答案

请尝试将* .svg文件的名称添加到[FILES] ](.hhp)文件中的列表。这样可以确保将.svg文件编译到帮助文件中(目前可能不是这种情况。)。

Please try adding the names of the *.svg files to the [FILES] list in your project (.hhp) file. This will ensure that the .svg files are compiled into the help file, which may not be the case at present.

如果您使用的是HTML帮助工作室,请执行以下步骤将文件名添加到[FILES]部分的步骤如下:

If you're using HTML Help Workshop, the procedure for adding the file names to the [FILES] section is as follows:


  1. 在HTML帮助工作室中打开.hhp文件。

  2. 单击项目选项卡上的添加/删除主题文件按钮。

  3. 单击添加。

  4. 在文件名中字段,键入* .svg。

  5. 单击打开,选择要添加到列表中的文件,然后再次单击打开。

  1. Open the .hhp file in HTML Help Workshop.
  2. Click the Add/Remove Topic Files button on the Project tab.
  3. Click Add.
  4. In the File Name field, type *.svg.
  5. Click Open, select the files to add to the list, and then click Open again.

具有帮助创作和CHM文件的经验,您可以通过使用文本编辑器编辑* .hhp文件来简化操作。在[FILES]部分中为所有SVG文件添加新的通配符行,例如:

Having some experience with help authoring and CHM files you can go the short way by editing your *.hhp file with a text editor. Add a new wildcard line for all SVG files in the [FILES] section like:

[FILES]
svg\*.svg
design.css
...

您应检查HTML代码。您将需要以下HTML代码:

You should check the HTML code too. You'll need HTML Code like:

<html>
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=9">
  <title>SVG - Example 2</title>
</head>

<body>
  <embed src="../svg/svg-sample-Circle.svg" type="image/svg+xml">
</body>
</html>

您可能需要测试编译包含SVG的CHM文件以满足您的需要。因此,我上传了一些文件和一个CHM项目文件下载CHM SVG示例文件

You may want to test compiling a CHM file including SVG's for your needs. So I uploaded some files and a CHM project file Download CHM SVG sample files.

请注意,要打开文件,请右键单击已保存的* .zip或* .chm文件,单击属性,然后单击取消阻止。

Please note, to open the files right-click the saved *.zip or *.chm file, click Properties, and then click Unblock.

这篇关于我可以在CHM文件中使用doxygen创建交互式SVG图像文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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