# Epwing to MDX

**URL:** <https://forum.freemdict.com/t/topic/32136>\
**Category:** 技术交流与词典编修\
**Created:** [2024 年9 月 24 日 16:09 UTC](https://forum.freemdict.com/t/topic/32136 "2024-09-24T16:09:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年9 月 24 日 16:09 UTC](https://forum.freemdict.com/t/topic/32136/1 "2024-09-24T16:09:15Z")

</div>

is it possible to decompile a epwing and furthermore turn it into a mdx with css ?

---

<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)\
发布日期： [2024 年9 月 24 日 22:43 UTC](https://forum.freemdict.com/t/topic/32136/2 "2024-09-24T22:43:12Z")

</div>

This post should not be in “日语”（sharing mdx）。Please change the tag to “技术与词典编修”.

Obtain dictionaries

GoldenDict-NG supports a wide range of dictionary formats, including EPWING and MDX.

> **[Setting up GoldenDict-NG](https://tatsumoto.neocities.org/blog/setting-up-goldendict)**
>
> How to use Free Software to learn Japanese, and more.

[如何将EPWING格式词典转换为MDX格式的？](https://forum.freemdict.com/t/topic/25868)

---

<div class="post-metadata">

作者： ![baihai57](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/b/7ab992/32.png) [@baihai57](https://forum.freemdict.com/u/baihai57)\
发布日期： [2024 年9 月 25 日 00:55 UTC](https://forum.freemdict.com/t/topic/32136/3 "2024-09-25T00:55:02Z")

</div>

感谢分享！这种EPWING格式词典可以在 GD 上使用。但是我总觉得MDX 格式可以把图片与文字分开好，通过解开MDD可以看到书里的插图，尤其可以知道百科词典里的插图都有什么。看图也是一种学习。还是希望有人能帮这种EPWING格式转变成MDX格式。

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年9 月 25 日 01:21 UTC](https://forum.freemdict.com/t/topic/32136/4 "2024-09-25T01:21:29Z")

</div>

hello, thanks for the response but this is not what i was asking… I’m aware of the capabilities of goldendict-ng , i do have the epistularum collection (i even host them) and I’m also aware of the goldendict-ng article in tatsumoto’s website , since I’m a former contributor.

i have a medical dictionary in epwing and i wish i could turn it into mdx , to add some styling and some other stuff, since mdx/mdict is a better format.

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年9 月 25 日 01:23 UTC](https://forum.freemdict.com/t/topic/32136/5 "2024-09-25T01:23:11Z")

</div>

exactly , mdx has more capabilities when we talk about appearance , that’s why i asked if it’s possible to turn a epwing into mdx

---

<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)\
发布日期： [2024 年9 月 25 日 01:33 UTC](https://forum.freemdict.com/t/topic/32136/6 "2024-09-25T01:33:43Z")

</div>

I an not interested in this, know nothing about this topic. Just Google.

I think you may convert the format to json, then try to work on the json file.

> The yomichan dictionary processor on github will unpack an epwing to a zipped json.
> 
> Or you can just download one of the pre-processed json files people have already made for yomichan.
> 
> The only issue is that epwings have a limited character set so obscure kanji come out as bitmaps and you have to run that through OCR.  
> [Reddit - Dive into anything](https://www.reddit.com/r/LearnJapanese/comments/qa64hf/epwing_dictionary_format/)

> A JSON file is simply a text file that uses JSON formatting. These files are used to store structured data and are identified by their “. json” extension.

> **[What is a JSON file and how can it be opened?](https://www.opc-router.com/what-is-a-json-file/)**
>
> A JSON file is a text file that stores simple data structures and objects in Java Script Object Notation format.

---

<div class="post-metadata">

作者： ![notwind](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/notwind/32/12353_2.png) [@notwind](https://forum.freemdict.com/u/notwind)\
发布日期： [2024 年9 月 25 日 02:22 UTC](https://forum.freemdict.com/t/topic/32136/7 "2024-09-25T02:22:13Z")

</div>

请使用官方的[EBDump](https://ebstudio.info/home/EBDump.html)导出数据，用其他第三方的软件都会有格式乃至条目的损失。

导出的数据都是文本格式（plain-text），所以需要再处理。  
图片和字体的处理，则请参考下面这篇，里面代码虽然有问题，但思路是对的——  
[词库制作中可能有用的软件、技术整理[201710919] - 词库制作交流区 - Dictionary-Making - PDAWIKI](https://www.pdawiki.com/forum/forum.php?mod=redirect&goto=findpost&ptid=11016&pid=174285)

---

<div class="post-metadata">

作者： ![amob](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/amob/32/14630_2.png) [@amob](https://forum.freemdict.com/u/amob)\
发布日期： [2024 年9 月 25 日 02:43 UTC](https://forum.freemdict.com/t/topic/32136/8 "2024-09-25T02:43:17Z")

</div>

字体好像没说

---

<div class="post-metadata">

作者： ![notwind](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/notwind/32/12353_2.png) [@notwind](https://forum.freemdict.com/u/notwind)\
发布日期： [2024 年9 月 25 日 03:48 UTC](https://forum.freemdict.com/t/topic/32136/9 "2024-09-25T03:48:15Z")

</div>

其实就是类似处理单色图的思路：

原数据  
“narrow”——8x16  
`{"bitmap":[0,0,0,16,56,16,0,16,16,16,16,16,16,16,0,0],"code":41250}`  
每个数字转成二进制图案就是  
⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬛⬛⬛⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜

“wide”——16x16  
`{"bitmap":[0,0,0,0,31,248,16,8,31,248,31,248,0,80,0,72,31,252,16,80,30,88,18,112,18,48,46,246,97,156,65,0],"code":53039}`  
就是  
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜  
⬜⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜⬜⬜⬜⬜⬛⬜⬜⬜  
⬜⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜  
⬜⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬜⬜⬜⬜⬜⬜⬛⬜⬜⬛⬜⬜⬜  
⬜⬜⬜⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬜⬜  
⬜⬜⬜⬛⬜⬜⬜⬜⬜⬛⬜⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬛⬛⬛⬜⬜⬛⬜⬛⬛⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬛⬜⬜⬛⬛⬛⬜⬜⬜⬜  
⬜⬜⬜⬛⬜⬜⬛⬜⬜⬜⬛⬛⬜⬜⬜⬜  
⬜⬜⬛⬜⬛⬛⬛⬜⬛⬛⬛⬛⬜⬛⬛⬜  
⬜⬛⬛⬜⬜⬜⬜⬛⬛⬜⬜⬛⬛⬛⬜⬜  
⬜⬛⬜⬜⬜⬜⬜⬛⬜⬜⬜⬜⬜⬜⬜⬜

补全文件头，转写成存为bmp格式就好了。

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年9 月 25 日 06:08 UTC](https://forum.freemdict.com/t/topic/32136/10 "2024-09-25T06:08:29Z")

</div>

very clever, thanks for an actual friendly response

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年9 月 25 日 06:11 UTC](https://forum.freemdict.com/t/topic/32136/11 "2024-09-25T06:11:01Z")

</div>

ignoring the rudeness, yes I’ve already turned a yomichan dictionary into a mdx, you can see in the JP-PT dictionary here at the forum.

this is a very tiresome process and we must seek better ways of doing things (and again, if you’re not interested , then why replying in the topic?)

anyway, someone already answered with some proper information, i wouldn’t be asking in the forum if i already didn’t had googled it.

---

<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)\
发布日期： [2024 年9 月 25 日 07:13 UTC](https://forum.freemdict.com/t/topic/32136/12 "2024-09-25T07:13:23Z")

</div>

Just to clarify I did not try to be rude.

I was partly trying to reply to another poster.

I might have just replied in Chinese, but thought it might not be polite.

Sorry for being a busybody.

> [@shaoshi](#):
>
> Just Google.

I am not telling you to Goggle. I say it to mean I am not an expert, but Google the information, trying to help.

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2024 年10 月 9 日 10:53 UTC](https://forum.freemdict.com/t/topic/32136/13 "2024-10-09T10:53:44Z")

</div>

related:

> **[GitHub - sagan/ebclient: A simple CLI program for accessing EPWING...](https://github.com/sagan/ebclient)**
>
> A simple CLI program for accessing EPWING dictionaries

### EB Library with UTF-8 support

> **[EB Library with UTF-8 support](http://web.archive.org/web/20241009105844/http://green.ribbon.to/~ikazuhiro/dic/ebu.html)**

---

<div class="post-metadata">

作者： ![pierangelo74](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pierangelo74](https://forum.freemdict.com/u/pierangelo74)\
发布日期： [2024 年12 月 9 日 19:42 UTC](https://forum.freemdict.com/t/topic/32136/14 "2024-12-09T19:42:18Z")

</div>

[Esselte Swedish-English (EPWING).7z](https://forum.freemdict.com/uploads/short-url/jt29CVcyd7Cquo6y1ihFxFKfp4v.7z) (3,3 MB)

Dears,  
Could anyone be so kind to convert this epwing dict to mdx or Goldendict/stardict format on Android?

Thanks

Pierangelo

---

<div class="post-metadata">

作者： ![anon38366553](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/a/3da27b/32.png) [@anon38366553](https://forum.freemdict.com/u/anon38366553)\
发布日期： [2025 年4 月 28 日 17:26 UTC](https://forum.freemdict.com/t/topic/32136/16 "2025-04-28T17:26:19Z")

</div>

hello, sorry for the late reply.  
is it really possible to turn epiwing into plain text? if so, it might be easy to convert it to mdict

---

<div class="post-metadata">

作者： ![mdictnofan](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/7ab992/32.png) [@mdictnofan](https://forum.freemdict.com/u/mdictnofan)\
发布日期： [2025 年7 月 7 日 23:33 UTC](https://forum.freemdict.com/t/topic/32136/18 "2025-07-07T23:33:41Z")

</div>

> **[GitHub - destroyhimmyrobots/epwing-exporter: EPWING Exporter converts EPWING dictionaries to...](https://github.com/destroyhimmyrobots/epwing-exporter)**
>
> EPWING Exporter converts EPWING dictionaries to XDXF or HTML5

---

<div class="post-metadata">

作者： ![winn](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/w/9dc877/32.png) [@winn](https://forum.freemdict.com/u/winn)\
发布日期： [2025 年7 月 12 日 17:44 UTC](https://forum.freemdict.com/t/topic/32136/19 "2025-07-12T17:44:29Z")

</div>

I gave it a try and did it. It’s interesting to decode those binary labels. I also replaced the image-typed characters into the corresponging letters.

 ![image](https://forumcdn.freemdict.com/uploads/default/original/3X/4/4/446eade3d560a4a5e1254c5bdc62fefe8af8174f.png)

[swedish-english.rar](https://forum.freemdict.com/uploads/short-url/n2LTm2mMGl4g3tIkm8yuC8FGmaG.rar) (4.1 MB)

It’s a quick job so perhaps there exist errors. And the css file is from the original data – it could be further improved.

I have learned that there are at least two ways to turn the epwing files into text, and EBDump is one of them.

---

<div class="post-metadata">

作者： ![pierangelo74](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pierangelo74](https://forum.freemdict.com/u/pierangelo74)\
发布日期： [2025 年7 月 13 日 13:24 UTC](https://forum.freemdict.com/t/topic/32136/20 "2025-07-13T13:24:08Z")

</div>

Great job!!!

Dear,  
I posted , in the recent past, an indonesian english dictionary ( almost a txt), could you find any time ( no pressure) tò convert It in any accessible format  
..  
😅😅😅

Regards

Pierangelo

---

<div class="post-metadata">

作者： ![pierangelo74](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/p/3da27b/32.png) [@pierangelo74](https://forum.freemdict.com/u/pierangelo74)\
发布日期： [2025 年7 月 13 日 13:28 UTC](https://forum.freemdict.com/t/topic/32136/21 "2025-07-13T13:28:51Z")

</div>

> [@Dictionaries from Ru-Board (60+ Languages)](https://forum.freemdict.com/t/topic/12050/27):
>
> Thanks for your quick response and appreciate your work.

A Swahili too

😂

---

<div class="post-metadata">

作者： ![winn](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/w/9dc877/32.png) [@winn](https://forum.freemdict.com/u/winn)\
发布日期： [2025 年7 月 13 日 18:43 UTC](https://forum.freemdict.com/t/topic/32136/22 "2025-07-13T18:43:30Z")

</div>

I’ll take a look at it soon, and will make it if possible.

[下一页](https://forum.freemdict.com/t/topic/32136.md?page=2)
