# 新手指南：怎样编辑mdx？

**URL:** <https://forum.freemdict.com/t/topic/16431>\
**Category:** 技术交流与词典编修\
**Tags:** 新手指南\
**Created:** [2022 年10 月 21 日 07:57 UTC](https://forum.freemdict.com/t/topic/16431 "2022-10-21T07:57:34Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

作者： ![shaoshi](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/shaoshi/32/14529_2.png) [@shaoshi](https://forum.freemdict.com/u/shaoshi)\
发布日期： [2022 年11 月 3 日 06:42 UTC](https://forum.freemdict.com/t/topic/16431/39 "2022-11-03T06:42:02Z")

</div>

接下来，练一下有Compact Html的mdx词典。

Compact Html是mdict的独特格式，在手册里有说明，见一楼佛爷发的mdxbuilder文件manual\_Chn.txt。

同样做一个新手词典专供练习之用，除了原来三个html词条：愛手反裘、實驗、夏鼎商彝，另加Compact Html词条：䕓、溝坑、著述等身。

[testing2.zip](https://forum.freemdict.com/uploads/short-url/jPvLeP3Mwo1u1PgpcPrzgY9lyK6.zip) (4.6 KB)

testing2.zip里只有两个文件：testing2.mdx和test.css。

WIndows自带zip的解压软件。解压后，启动mdxExport解压。

解压后得到testing2.txt、testing2.info.txt和testing2.Style.txt三个文件。

用Emeditor打开testing2.txt，把两个“愛手反裘”改成“愛毛反裘”，把“shǒu”改成“máo”。

用mdxbuilder重新编译testing2.txt。注意：这个文本是Unicode 16格式，所以格式要改。

还有，因为里面有Compact Html，所以须指明style sheet。

注意：内容文本的txt和style sheet的txt，编码必须相同，例如同为Unicode 16编码。

 ![mdxbuilder2](https://forumcdn.freemdict.com/uploads/default/original/3X/7/2/726311bb05060158325698942a504e9f22d08fa0.jpeg)

---

_[View the full topic](https://forum.freemdict.com/t/topic/16431)._
