# 词典制作：从一个简单的图片词典开始

**URL:** <https://forum.freemdict.com/t/topic/16539>\
**Category:** 技术交流与词典编修\
**Tags:** 新手指南\
**Created:** [2022 年10 月 25 日 10:56 UTC](https://forum.freemdict.com/t/topic/16539 "2022-10-25T10:56:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![alexpeng](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/alexpeng/32/19592_2.png) [@alexpeng](https://forum.freemdict.com/u/alexpeng)\
发布日期： [2022 年10 月 25 日 10:58 UTC](https://forum.freemdict.com/t/topic/16539/2 "2022-10-25T10:58:46Z")

</div>

## 三、不使用正则

1. 第一步还是一样。打开Excel索引表，选中B列→设置单元格格式→自定义：000

2. 在页码左侧插入一列，填入：  
`♂<img src="GHMY`  
页码右侧两列分别填入  
`.png" width="100%">`  
`♂</>`  

3. 全选复制到Em中：  
`\t` 替换为空  
`♂` 替换为 `\n`  
替换时需选中“转义字符”或“正则表达式”。  
工具栏：  
 ![image](https://forumcdn.freemdict.com/uploads/default/optimized/3X/0/1/01446e06706b288bf1aad3d1c6c2a3039e6fd3b5_2_690x35.png)  
“替换”对话框：  

4. 替换后的格式：  
`哀莫大于心死，而人死亦次之`  
`<img src="GHMY001.png" width="100%">`  
`</>`  
`爱赤子者不慢于保，绝险历远者不慢于御`  
`<img src="GHMY001.png" width="100%">`  
`</>`

如不想安装Em，可使用其它支持转义字符替换的文本编辑软件。若都没有，可试试在Word中替换。不过真心不建议这么做，下方步骤供参考：

> 全部复制到word中。  
> 注意：不能直接复制过去，先复制到记事本中，再复制后粘贴到word中。  
> 使用两个替换，使其符合mdx源文本格式。  
> 1.查找 ^t 替换为空。  
> 2.查找 `♂` 替换为 ^p  
> 复制到文本文件中并保存。

特殊字符 `♂` 是替换的中介，可自由使用其它特殊字符。

---

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