# 关于DictTango词典格式支持的建议

**URL:** <https://forum.freemdict.com/t/topic/31842>\
**Category:** DictTango\
**Tags:** 建议\
**Created:** [2024 年9 月 15 日 04:02 UTC](https://forum.freemdict.com/t/topic/31842 "2024-09-15T04:02:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

作者： ![freespace](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/b9bd4f/32.png) [@freespace](https://forum.freemdict.com/u/freespace)\
发布日期： [2024 年9 月 15 日 04:02 UTC](https://forum.freemdict.com/t/topic/31842/1 "2024-09-15T04:02:03Z")

</div>

当电脑不在身边时，不能解包打包mdx真的让人焦虑，很多想干的活做不了。  
本来期待能有手机版的mdx解包打包工具，但我知道这不现实。估计除了我本人没人有这方面的需求。想来想去只能有个折中方案，那就是让dictango支持txt格式的词典。这是最便捷的变通方式。直接支持txt格式文本词典，能省去打包解包词典的烦恼，没有电脑手机也能直接编辑词典。  
我是这样设想：dictango搞一个通用显示模板，这个模板能够编辑，主要功能是让txt文本看起更养眼更漂亮，dictango读取的txt文件词典通过这个模板显示出来。至于txt文本词典的词条格式简单就好，比如，华夏一词就写成这样就可以了：  
华夏  
……（释义）  
\</\>  
不知作者对这提议有没兴趣？

---

<div class="post-metadata">

作者： ![glacierlee](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/glacierlee/32/74595_2.png) [@glacierlee](https://forum.freemdict.com/u/glacierlee)\
发布日期： [2024 年9 月 15 日 06:13 UTC](https://forum.freemdict.com/t/topic/31842/2 "2024-09-15T06:13:02Z")

</div>

通用模板容易实现，但不一定适用所有人的需要。

建议通过用”智能查看器“来打开网页文件实现你的需求，你可以用"App文件浏览器“来编辑Html文件。

---

<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 月 15 日 07:07 UTC](https://forum.freemdict.com/t/topic/31842/3 "2024-09-15T07:07:27Z")

</div>

在手机上可以运行Python代码，就可以使用mdict-util，也就可以解开mdx，修改后再重新编译。

本坛有人在手机上试过Termux的。

三款可以在安卓手机上运行Python代码的软件

● QPython3

● Pydroid

● Termux

> **[三款可以在安卓手机上运行Python代码的软件 - 腾讯云开发者社区-腾讯云](https://cloud.tencent.com/developer/news/276217)**
>
> 三款可以在安卓手机上运行Python代码的软件。目录● QPython3● Pydroid● Termux01QPython3官方介绍QPython3是一个在Android上运行Python3脚本引擎，它整合了Python3解释器、Console、编辑器和SL4A库。下载地址1：https:www.coolapk.co...

---

<div class="post-metadata">

作者： ![encn](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/e/48db29/32.png) [@encn](https://forum.freemdict.com/u/encn)\
发布日期： [2024 年9 月 20 日 15:42 UTC](https://forum.freemdict.com/t/topic/31842/4 "2024-09-20T15:42:11Z")

</div>

Android 手机在 termux 内安装 Python，再 pip 安装 mdict-utils，就可以解包打包 mdx 了。我的 Wiktionary CE 口袋版数据处理代码就是在手机运行的，很省事。

termux 安装 neovim 可以打开超大文件，几百兆不在话下，但在小屏幕上编辑密集文本很伤眼，不建议你这么做。

---

<div class="post-metadata">

作者： ![freespace](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/f/b9bd4f/32.png) [@freespace](https://forum.freemdict.com/u/freespace)\
发布日期： [2024 年9 月 22 日 16:52 UTC](https://forum.freemdict.com/t/topic/31842/5 "2024-09-22T16:52:41Z")

</div>

感谢少石兄和encn兄。已能在手机上解打mdx。就是nvim功能虽强大但操作复杂。

---

<div class="post-metadata">

作者： ![mdict6](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/m/8491ac/32.png) [@mdict6](https://forum.freemdict.com/u/mdict6)\
发布日期： [2025 年11 月 13 日 01:08 UTC](https://forum.freemdict.com/t/topic/31842/6 "2025-11-13T01:08:45Z")

</div>

在 手机 上安装 Python 环境 → 使用 pip install mdict-utils → 解包／打包 .mdx 文件。🚬  
:skr_guodegang_smoke:
