从Word 2016转换为CHM后搜索和索引不起作用 [英] Search and Index not working after converting from Word 2016 to CHM

查看:96
本文介绍了从Word 2016转换为CHM后搜索和索引不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用chmProcessor v1.7.3将400页的Word 2016 .docx文档转换为.chm.内容和格式出奇的好,但是当我加载.chm文件时:

I have converted a 400 page Word 2016 .docx document to .chm using chmProcessor v1.7.3. The contents and formatting are surprisingly good, but when I load the .chm file:

  1. 搜索"标签根本不起作用(仅显示第一个进入目录,没有其他内容.
  2. 索引与目录大致相同

如何使它正常工作?还是有更好的转换器?

How do I get this to work properly? Or is there a better converter?

在Win 10 Pro,64位,Word 2016上运行

Running on Win 10 Pro, 64bit, Word 2016

推荐答案

以前从未使用过chmProcessor(因为使用了其他工具),但令人惊讶的是,它似乎是一种以简单方式转换Word文档的好方法.但是,您需要做更多的事情.

Never used chmProcessor before (because using other tools) but surprisingly seems to be a good one for converting Word documents in a simple way. But, you need to do something more.

短篇小说-您需要编辑例如剪切标题级别,如下面的屏幕截图所示.

The short story - you need to edit e.g. the Cut header level as shown in the screenshot below.

无需深入尝试,只需快速使用chmProcessor:

Without having tried this in deep and only by a quick use of chmProcessor:

在零的首选项级别上,所有Word内容都进入一个HTML主题.因此,当您执行搜索时,只有一个HTML文件具有匹配项.但是,所有匹配的关键字都将突出显示(如果已激活).搜索后,在右侧的主题窗格中向下滚动以查看我的意思.

On a preference level of zero all Word contents goes to one HTML topic. So, when you perform a search only this one HTML file has a match. But inside all the keywords matched are highlighted (if activated). After searching scroll down in your topic pane on the right to see what I mean.

您至少需要例如Word文档中的标题级别1,标题级别2等(结构化主题和子主题).首先尝试将剪切头级别设置为2.这意味着您将获得更多的HTML文件.

You'll need a minimum of e.g. headline level 1, headline level 2, etc. in your Word document (structured topics and subtopics). First try to set Cut Header level to 2. This means you'll get some more HTML files.

通过使用CHM文件的搜索标签,您现在可以获得一些更详细的结果.

By using the Search tab of your CHM file now you'll get some more detailed results.

这里的索引似乎来自Word主题标题.良好的结构化文档,例如一个单词的标题具有良好的索引,但长标题不会以单个关键字的方式返回索引.

Indexing seems to be derived here from the Word topic headlines. Good structured documents with e.g. a one-word headline have a good Index but long headlines don't give back an index in a single keyword way.

您将需要深入帮助编写和编译带有索引的CHM.这是一条学习曲线.

You'll need to go deep into help authoring and compiling CHM's with index. This has a learn curve.

尝试使用生成帮助项目(请参见屏幕截图)来查看所有主题和索引文件,例如 Index-generated.hhk .

Try to use Generate help project (see screenshot) for your needs to see all the topics and the index file e.g. Index-generated.hhk.

这篇关于从Word 2016转换为CHM后搜索和索引不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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