How to edit a mdx dictionary?
Some notes in English for those who cannot understand Chinese.
You will need three programs, one decompiler, one text editor and one compiler.
On the Windows platform, the best programs for a new hand are MdxExport, Emeditor and MdxBuilder.
You may download the three programs here.
-
Use MdxExport to decompile mdx to text files.
-
Use Emeditor to edit the content text file.
There may be a style file which you usually do not need to edit. You may use other text editors to do this, but Emeditor is very good in editing very large text files.
- Use MdxBuilder to compile the content text file back to mdx.
If the content file use compact Html (a unique Mdict format), you will need to specify the style file for the compiler as well. Otherwise you will only need to tell the compiler where the content text file is.
If you are not using Windows, you may use Mdict-utils, which are available on Windows, Unix and Mac. See post 1 or post 14 for links to download Mdict-utils.
Sone users have reported, that Mdict-utils can only decompile Unicode 8 files without signatures, and will not be able to extract style files for compact Html.
In that case, you may also try using a Windows Virtual machine, which has been discussed in this post.
I have found that this software introduces zero-width no-break spaces into the final MDX, resulting in some headwords not being searchable.
结论:
I finally found the root of the problem: one of the text files I merged was incorrectly saved as 'UTF-8 with Signature". I changed to ‘without Signature’ and the MDX was properly built with no errors to the index.
Android 手机在 termux 内安装 Python,再 pip 安装 mdict-utils,就可以解包打包 mdx
termux 安装 neovim 可以打开超大文件