# 『PDF图片化MDX词典』vs.『词头书签化PDF辞书』

**URL:** <https://forum.freemdict.com/t/topic/7889>\
**Category:** 软件经验交流展望\
**Tags:** pdf\
**Created:** [2021 年8 月 24 日 05:22 UTC](https://forum.freemdict.com/t/topic/7889 "2021-08-24T05:22:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

作者： ![Johnny\_Van](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/johnny_van/32/9431_2.png) [@Johnny\_Van](https://forum.freemdict.com/u/Johnny_Van)\
发布日期： [2021 年8 月 24 日 05:22 UTC](https://forum.freemdict.com/t/topic/7889/1 "2021-08-24T05:22:37Z")

</div>

对于适合通读的辞书（例：中国大百科第1版），将词头全部嵌入PDF书签，实用性如何？

PDF图片化 MDX词典 的特点：

- 可与其他词典联合查询；
- 可切图；
- 个性化的导航栏；
- 内存占用小；
- 定位：主查询，辅阅读。

词头书签化 PDF辞书 的特点：

- 保留PDF特性，复制文本，连续翻页视图（通读），笔记。
- 定位：主阅读，辅查询。

Proof of concept：

1. 安装 [PDF-XChange Editor](https://www.tracker-software.com/product/pdf-xchange-editor)；
2. 建立PDF同名TXT文件，添入词头索引，格式如下；
3. 下载 [PdfViewer.zip|attachment] (673.6 KB)

```auto
词头1\t逻辑页码1
词头2\t逻辑页码2

```

演示：

![PdfViewer2](https://forumcdn.freemdict.com/uploads/default/original/2X/c/c33f47708844c2fa68a6519a03f2a0022c002246.gif)

---

<div class="post-metadata">

作者： ![Ralf\_Fenstermacher](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/ralf_fenstermacher/32/9906_2.png) [@Ralf\_Fenstermacher](https://forum.freemdict.com/u/Ralf_Fenstermacher)\
发布日期： [2021 年8 月 24 日 10:42 UTC](https://forum.freemdict.com/t/topic/7889/2 "2021-08-24T10:42:04Z")

</div>

如果能让gd支持双层pdf那就很强了

---

<div class="post-metadata">

作者： ![Johnny\_Van](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/johnny_van/32/9431_2.png) [@Johnny\_Van](https://forum.freemdict.com/u/Johnny_Van)\
发布日期： [2021 年8 月 24 日 11:56 UTC](https://forum.freemdict.com/t/topic/7889/4 "2021-08-24T11:56:21Z")

</div>

本贴比对前提在于假定 “词头 — 页码” 对应关系已事先取出。

图片版MDX，原始数据在制作者手上。作者常把页码信息转化成有规律的、特殊的页码词头，根据这些特殊页码词头还原出真实词头的原始页码信息，再添加到未经切割的PDF中应该不难。只是从没见过有人用这种以词头做书签的PDF，所以好奇。

---

<div class="post-metadata">

作者： ![abs](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@abs](https://forum.freemdict.com/u/abs)\
发布日期： [2021 年8 月 24 日 12:49 UTC](https://forum.freemdict.com/t/topic/7889/5 "2021-08-24T12:49:52Z")

</div>

通读辞书的没见过，都是当工具书来用，mdx要能看前后词条，图片能翻页就满意了。

---

<div class="post-metadata">

作者： ![Johnny\_Van](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/johnny_van/32/9431_2.png) [@Johnny\_Van](https://forum.freemdict.com/u/Johnny_Van)\
发布日期： [2021 年8 月 24 日 13:18 UTC](https://forum.freemdict.com/t/topic/7889/6 "2021-08-24T13:18:43Z")

</div>

对于一般按音序组织的词典，前后词条缺乏内在联系，通读意义不大。而像中国大百科第一版、大辞海这类按学科分类、组织结构明晰、前后知识交互连结的书籍，仅当工具书感觉大材小用了。闲时随手翻一翻也是颇有仪式感的。

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年8 月 25 日 10:05 UTC](https://forum.freemdict.com/t/topic/7889/7 "2021-08-25T10:05:36Z")

</div>

我还是倾向于MDX，不好做或不适合（比如非词典类书籍）做成MDX的可以保持pdf状态使用。除了楼主例举的pdf的不足之外，我再补充一条：

- 大体积的pdf加载不易，每次为了查个词得打开整个文件；而MDX加载图片词典的速度只受限于词头量，并且检索速度也没有可比性。

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2021 年8 月 25 日 10:21 UTC](https://forum.freemdict.com/t/topic/7889/8 "2021-08-25T10:21:50Z")

</div>

PDF的问题是不知道如何渲染到浏览器里使用，如果可以在浏览器里显示，那就能和别的词典一块使用了。对于GoldenDict来说，支持搜索是很简单的事。

---

<div class="post-metadata">

作者： ![Ralf\_Fenstermacher](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/ralf_fenstermacher/32/9906_2.png) [@Ralf\_Fenstermacher](https://forum.freemdict.com/u/Ralf_Fenstermacher)\
发布日期： [2021 年8 月 25 日 10:39 UTC](https://forum.freemdict.com/t/topic/7889/9 "2021-08-25T10:39:08Z")

</div>

如果是词头一一对于的话  
那么就是词头对于一个很小的PDF(只包含当前词条内容)

速度虽然会慢,不过可能也没有想像中的那么慢

---

<div class="post-metadata">

作者： ![depgreen](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/d/258eb7/32.png) [@depgreen](https://forum.freemdict.com/u/depgreen)\
发布日期： [2021 年8 月 25 日 11:19 UTC](https://forum.freemdict.com/t/topic/7889/10 "2021-08-25T11:19:16Z")

</div>

> [@Mandolin](#):
>
> 大体积的pdf加载不易，每次为了查个词得打开整个文件；而MDX加载图片词典的速度只受限于词头量，并且检索速度也没有可比性。

这个和pdf阅读器有关系吧，大文件可以翻到相应页面再加载，书签跳转也可以即点即跳的。

---

<div class="post-metadata">

作者： ![Johnny\_Van](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/johnny_van/32/9431_2.png) [@Johnny\_Van](https://forum.freemdict.com/u/Johnny_Van)\
发布日期： [2021 年8 月 25 日 12:05 UTC](https://forum.freemdict.com/t/topic/7889/11 "2021-08-25T12:05:15Z")

</div>

> [@last\_idol](#):
>
> 渲染到浏览器

你说的浏览器是指浏览器控件？MDict就可以支持PDF显示，仅需安装支持ActiveX的PDF阅读器（Adobe Reader、福昕阅读器、PDF X-Change Editor）

 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/4/4c2f845f3aa932967c87633b6ac5728bd99a6b90.jpeg)

---

<div class="post-metadata">

作者： ![Ralf\_Fenstermacher](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/ralf_fenstermacher/32/9906_2.png) [@Ralf\_Fenstermacher](https://forum.freemdict.com/u/Ralf_Fenstermacher)\
发布日期： [2021 年8 月 25 日 12:22 UTC](https://forum.freemdict.com/t/topic/7889/12 "2021-08-25T12:22:17Z")

</div>

GD支持吗?可以共享下MDX和MDD吗?

---

<div class="post-metadata">

作者： ![last\_idol](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/last_idol/32/2205_2.png) [@last\_idol](https://forum.freemdict.com/u/last_idol)\
发布日期： [2021 年8 月 25 日 12:43 UTC](https://forum.freemdict.com/t/topic/7889/13 "2021-08-25T12:43:33Z")

</div>

用ActiveX控件的方式，还是不够通用。

---

<div class="post-metadata">

作者： ![Johnny\_Van](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/johnny_van/32/9431_2.png) [@Johnny\_Van](https://forum.freemdict.com/u/Johnny_Van)\
发布日期： [2021 年8 月 25 日 13:55 UTC](https://forum.freemdict.com/t/topic/7889/14 "2021-08-25T13:55:34Z")

</div>

可以去这儿下载

> [@mdx 内嵌 pdf 测试](https://forum.freemdict.com/t/topic/6570):
>
> 图片词典一大硬伤是：literal “图片”，没有办法对其中的文字高亮、选取。而图片词典通常是从pdf转换而来，却丢失了pdf的诸多优势。pdf格式固然是好的，只是苦于检索困难。如能将图片mdx中的图片直接替换成pdf，岂不爽哉？ 放一个小小demo供各位把玩 [pdf demo.mdx](https://forum.freemdict.com/uploads/short-url/zUIjHxVddGUByDMWXhqN9SwuVo.mdx) (1.2 KB) 测试词头数字1到7 附各词典测试结果： MDict： [MDict] Golde…
