# 如何由mdx版本制作epub电子书版

**URL:** <https://forum.freemdict.com/t/topic/12635>\
**Category:** 技术交流与词典编修\
**Tags:** mdx, 电子书\
**Created:** [2022 年4 月 30 日 03:08 UTC](https://forum.freemdict.com/t/topic/12635 "2022-04-30T03:08:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![dadada321](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@dadada321](https://forum.freemdict.com/u/dadada321)\
发布日期： [2022 年4 月 30 日 03:08 UTC](https://forum.freemdict.com/t/topic/12635/1 "2022-04-30T03:08:14Z")

</div>

如何由epub版制作mdx，已经有很多人介绍，有时我们希望通读某本字典，这个时候epub版本更合适，但是相关材料稀少，举一个具体的例子，我想把王力古汉语字典的mdx版变成epub版本，[王力古汉语](https://forum.freemdict.com/t/topic/8174) 同时希望css ，图片和排版都可以正常显示，我知道这本书有pdf版，但那是扫描版，不可以检索合复制。请问各位专家是否有什么意见或相关文章可供查询？

---

<div class="post-metadata">

作者： ![Vim](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/vim/32/8408_2.png) [@Vim](https://forum.freemdict.com/u/Vim)\
发布日期： [2022 年4 月 30 日 03:12 UTC](https://forum.freemdict.com/t/topic/12635/2 "2022-04-30T03:12:29Z")

</div>

说个极简的办法：  
1、使用mdxexport输出txt源文件  
2、直接更改后缀名txt为html  
3、使用 Sigil 之类的工具打包为epub

或者使用noword/MdxConverter从 mdx 字典中抓取所需的关键词，并生成 html 或PDF，之后同上。

- github: [GitHub - noword/MdxConverter: generate a html or pdf or jpg file for specific words through a mdx dirctionary](https://github.com/noword/MdxConverter)
- Freemdict的最新修订版，推荐使用 src: [求助：提取mdx词条转换为HTML/PDF](https://forum.freemdict.com/t/topic/3886)

---

<div class="post-metadata">

作者： ![hua](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/hua/32/11090_2.png) [@hua](https://forum.freemdict.com/u/hua)\
发布日期： [2022 年4 月 30 日 03:13 UTC](https://forum.freemdict.com/t/topic/12635/3 "2022-04-30T03:13:29Z")

</div>

> **[制作和编辑 ePub （电子书）有哪些工具值得推荐？ - 知乎](https://www.zhihu.com/question/19554059)**
>
> 知乎，中文互联网高质量的问答社区和创作者聚集的原创内容平台，于 2011 年 1 月正式上线，以「让人们更好的分享知识、经验和见解，找到自己的解答」为品牌使命。知乎凭借认真、专业、友善的社区氛围、独特的产品机制以及结构化和易获得的优质内容，聚集了中文互联网科技、商业、影视、时尚、文化等领域最具创造力的人群，已成为综合性、全品类、在诸多领域具有关键影响力的知识分享社区和创作者聚集的原创内容平台，建立起了以社区驱动的内容变现商业模式。

---

<div class="post-metadata">

作者： ![n\_ogizaka46](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/n_ogizaka46/32/5263_2.png) [@n\_ogizaka46](https://forum.freemdict.com/u/n_ogizaka46)\
发布日期： [2022 年4 月 30 日 04:23 UTC](https://forum.freemdict.com/t/topic/12635/4 "2022-04-30T04:23:42Z")

</div>

mdx制作成epub很困难的，导出的html巨大，sigil也打不开这种大文件，没有直接方法可以转换。手机上的话，可以试下置顶的DictTango，有阅读mdx的功能。

---

<div class="post-metadata">

作者： ![dadada321](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@dadada321](https://forum.freemdict.com/u/dadada321)\
发布日期： [2022 年4 月 30 日 04:43 UTC](https://forum.freemdict.com/t/topic/12635/5 "2022-04-30T04:43:44Z")

</div>

我在用sigil尝试，总是卡死，我还以为我电脑不行，那么把html切成小文件，是否可以解决此问题？

---

<div class="post-metadata">

作者： ![caisangzi](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/c/e36b37/32.png) [@caisangzi](https://forum.freemdict.com/u/caisangzi)\
发布日期： [2024 年2 月 11 日 09:15 UTC](https://forum.freemdict.com/t/topic/12635/6 "2024-02-11T09:15:19Z")

</div>

多谢提醒 好好思路
