# Accelon3 初步上手记录

**URL:** <https://forum.freemdict.com/t/topic/8207>\
**Category:** 软件经验交流展望\
**Tags:** accelon3\
**Created:** [2021 年9 月 14 日 00:54 UTC](https://forum.freemdict.com/t/topic/8207 "2021-09-14T00:54:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 00:54 UTC](https://forum.freemdict.com/t/topic/8207/1 "2021-09-14T00:54:04Z")

</div>

文件下载：  
主程序：[Accelon3，极速的全文检索工具、古籍平台 - 其他词典资源区 - Other Dictionaries - 掌上百科 - PDAWIKI - Powered by Discuz!](https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=44014)

资料库：  
[Accelon3 开放古籍平台 含辞典、藏经、文集、丛书等19部全文检索数据库（adb格式） - 其他词典资源区 - Other Dictionaries - 掌上百科 - PDAWIKI - Powered by Discuz!](https://www.pdawiki.com/forum/thread-16223-1-1.html)  
二楼有百毒链接：  
佛學資料庫(第三版，網站用，可流通)開放古籍平臺accelon3  
链接: [百度网盘-链接不存在](https://pan.baidu.com/s/1QEFgN3gQOJjmnPp-8muNEA) 提取码: ufap  
四库在第四资料夹

[【adb】殆知阁(第一批) 附制作脚本 - 其他词典资源区 - Other Dictionaries - 掌上百科 - PDAWIKI - Powered by Discuz!](https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=44217)

[【adb】殆知阁(第二批) - 其他词典资源区 - Other Dictionaries - 掌上百科 - PDAWIKI - Powered by Discuz!](https://www.pdawiki.com/forum/forum.php?mod=viewthread&tid=44712&extra=page%3D1&page=1)

* * *

加载：直接把adb文件放在主程序文件夹即可，但不能放在文件夹，必须是同级目录  
搜索：在主程序界面就可以搜索全部adb，但因为它只有搜索全部这个选项，要想只搜索其中的几部的话，只能把这几个adb放进一个文件夹，拷贝到这个文件夹主程序。  
如Mandolin所说的：

> **使用小技巧** ：由于打包软件「indexer.exe」所限，超大文件没办法只能分成多个包，那为了能联合查询，又防止文件过多减慢检索速度，建议适当对你的 adb 数据库分类分文件夹，一个文件夹放一个专题或一类词典，每个文件夹放一份完整的 accelon3 程序包，这样利用 accelon3 的主窗口就可以对专题内所有 adb 一同进行检索了，然后再打开具体某个 adb 即可。比如 殆知阁 的专门放一个文件夹，再拷进去一份 accelon3 程序包：

搜索支持正则：软件左下角，点击词形选项，最上方RegEX就是正则搜索选项。

导出检索结果：阅读–汇出多功能检视区

制作：用Mandolin的脚本。新建文件夹，放入脚本，再于脚本同级目录新建txt文件夹（貌似只能一个？），运行即可得到xml文件，放入indexer.exe。

添加书签：点击文字左侧新建书签（文字左侧空白，不要点文字本身），再右键书签可以添加心得

目前还没有掌握的  
怎么用眉批和笔记？  
貌似无法修改adb，只能从txt修改？

最讨厌的是退出之后经常会报错：  
Access violation at address 00000000. Read of address 00000000.

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 02:27 UTC](https://forum.freemdict.com/t/topic/8207/2 "2021-09-14T02:27:18Z")

</div>

制作脚本当然是可以打包多个的（多层级文件夹都可以，会根据文件夹结构生成目录树）：

![image](https://forumcdn.freemdict.com/uploads/default/original/2X/1/153a37ca05b803cd41c4c44e898c2b07113f2243.png)

使用小提示：使用 Accelon3 中，在关闭词典窗口退出前，记得清空搜索框，否则可能会弹窗报错

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 02:55 UTC](https://forum.freemdict.com/t/topic/8207/3 "2021-09-14T02:55:39Z")

</div>

感谢解答！  
请教笔记功能该怎么用？没有看到直接添加笔记的地方，只有书签可以添加书签心得。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 06:12 UTC](https://forum.freemdict.com/t/topic/8207/4 "2021-09-14T06:12:50Z")

</div>

试图把一下这个带有目录层级的txt文档用脚本打包，貌似最后这些标签都成为文字而不是成为目录。。

\<檔 n=“zxlcs.htm”\>  
\<集 l=“書.”\>哲学类辞书\</集\>  
\<樹 s=“\*” t=“書,章,節,條.”\>目录\</樹\>

\<書\>2021-9-14\</書\>   
\<書\>2021-9-14\</書\>

\<條\>### 123 \</條\>

\<書\>2021-9-14 书\</書\>   
\<章\># 章 \</章\>  
章   
\<節\>## 节 \</節\>  
节   
\<條\>### 条 \</條\>  
条   
\<書\>2021-9-14\</書\>   
\<書\>2021-9-14\</書\>

\</檔\>

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 06:17 UTC](https://forum.freemdict.com/t/topic/8207/5 "2021-09-14T06:17:45Z")

</div>

脚本会自动处理好一切，会自动加标签，不用手动加。

txt文本就放最原始最plain的就行了。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 06:18 UTC](https://forum.freemdict.com/t/topic/8207/6 "2021-09-14T06:18:56Z")

</div>

不懂。。  
比如2021-9-14我要设置为 書 这个级别，脚本不会帮我设置这个呀

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 06:20 UTC](https://forum.freemdict.com/t/topic/8207/7 "2021-09-14T06:20:29Z")

</div>

噢，你要自定义目录树的话，那就别用脚本了，直接另存为xml文件就行了。存完去indexer打包就可以了。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 06:39 UTC](https://forum.freemdict.com/t/topic/8207/8 "2021-09-14T06:39:45Z")

</div>

找了一圈没有找到批量转化txt为xml的趁手工具。。  
可否麻烦您修改一下脚本，支持这种自定义目录树的txt，不然几十个txt一个个保存还是太烦了。

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 06:42 UTC](https://forum.freemdict.com/t/topic/8207/9 "2021-09-14T06:42:50Z")

</div>

EmEditor有合并多个txt为一个txt的功能，合并完改txt后缀为xml就行了。

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 06:55 UTC](https://forum.freemdict.com/t/topic/8207/10 "2021-09-14T06:55:25Z")

</div>

或者你不妨这样：仍然按照之前那样用脚本生成xml，但生成后的xml你再打开替换那些中文的“〈〉”为英文的“\<\>”就行了。

注意：txt文件里不要写以下标签（xml的文件头和尾）

```auto
<檔 n=“zxlcs.htm”>
<集 l=“書.”>哲学类辞书</集>
<樹 s="*" t=“書,章,節,條.”>目录</樹>

</檔>

```

这些脚本会自动统一加。你的txt就仅标注自己想标的目录标签。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 07:41 UTC](https://forum.freemdict.com/t/topic/8207/11 "2021-09-14T07:41:32Z")

</div>

似乎不行，替换xml中的括号之后之后文档树的结构不正常  
文本内容：

| \<書\>2021-9-14 书\</書\> | |
| --- | --- |
| \<章\># 章 | \</章\> |
| 章 | |
| \<節\>## 节 | \</節\> |
| 节 | |
| \<條\>### 条 | \</條\> |
| 条 | |

[书章节条测试 替换后.rar](https://forum.freemdict.com/uploads/short-url/mH4TBr7X38IQVY04cKRD4fr35CD.rar) (320 字节)

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 10:02 UTC](https://forum.freemdict.com/t/topic/8207/12 "2021-09-14T10:02:22Z")

</div>

没有问题，得到的xml能正常使用 indexer 打包。至于得到的目录只有三个是因为你手工做的标签跳过了一个层级，自然就会中断了（软件不知道怎么显示）。

![image](https://forumcdn.freemdict.com/uploads/default/original/2X/5/56806a149e11e4459546ea2be7ec1061882b610f.png)

脚本中我默认写的层级标签是『\<樹 s=“\*” t=“書,章,篇,節,條.”\>』，从左过右分别是1到5级。所以你自定义的话可以用这五个标签，不要用其他的，并且不要跳级。

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 11:27 UTC](https://forum.freemdict.com/t/topic/8207/13 "2021-09-14T11:27:39Z")

</div>

非常感谢！！

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 14 日 13:49 UTC](https://forum.freemdict.com/t/topic/8207/14 "2021-09-14T13:49:07Z")

</div>

不知道哪里出处了，还是不对。  
我的文本是：  
\<書\>2021-9-14 书\</書\>  
\<章\># 章 \</章\>  
章   
\<篇\># 篇 \</篇\>  
篇  
\<節\>## 节 \</節\>  
节   
\<條\>### 条 \</條\>  
条

打包之后所得是：  
\<檔\>  
\<集 l=“書.”\>测试1\</集\>  
\<樹 s=“_條"\>全文\</樹\>  
\<樹 s=“$條”\>书目\</樹\>  
\<樹 s="_” t=“書,章,篇,節,條.”\>分类\</樹\>

\<書\>New folder\</書\>  
\<條\>测试\</條\>  
﻿  
\<書\>2021-9-14 书\</書\>  
\<章\># 章 \</章\>  
章   
\<篇\># 篇 \</篇\>  
篇  
\<節\>## 节 \</節\>  
节   
\<條\>### 条 \</條\>  
条   
\</檔\>

也就是说，自动会帮我加上  
\<書\>New folder\</書\>  
\<條\>测试\</條\>

但即便我删了这两条，最后显示出来的也只有最后一级：

 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/e/e7aac28e440327ff1d55663ee86bc18e82366027.png)

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 14:46 UTC](https://forum.freemdict.com/t/topic/8207/15 "2021-09-14T14:46:34Z")

</div>

对，忘了说了，脚本还会自动把文件夹路径添加为标签。

这个……你自己看情况调整吧，程序是死的，人是活的，或者你改改代码也行。

本来这个脚本只是简单地用来将纯文本资料打包下放到accelon里只做全文检索用的，没过多考虑目录树方面的问题。如果你自定义目录树比较多，其实还不如自己直接另存为xml来得好点。

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 15:03 UTC](https://forum.freemdict.com/t/topic/8207/16 "2021-09-14T15:03:04Z")

</div>

或者不要建子文件夹📁，txt文件📄全放根目录，和脚本同级试试。

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 14 日 15:15 UTC](https://forum.freemdict.com/t/topic/8207/17 "2021-09-14T15:15:17Z")

</div>

你看的是条目栏……当然只有条目列表，切到目录栏看看：

![image](https://forumcdn.freemdict.com/uploads/default/original/2X/c/c4632b08eb452f3044bc3d0539b64921efa300fb.png)

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 15 日 01:25 UTC](https://forum.freemdict.com/t/topic/8207/18 "2021-09-15T01:25:15Z")

</div>

果然如此：  
 ![image](https://forumcdn.freemdict.com/uploads/default/original/2X/5/5c0f55fc37b92f9e4e33822e1b559431966a9e7e.png)

非常感谢！

---

<div class="post-metadata">

作者： ![hkreporter](https://forumcdn.freemdict.com/letter_avatar_proxy/v4/letter/h/41988e/32.png) [@hkreporter](https://forum.freemdict.com/u/hkreporter)\
发布日期： [2021 年9 月 15 日 02:58 UTC](https://forum.freemdict.com/t/topic/8207/19 "2021-09-15T02:58:12Z")

</div>

全文检索软件不少，但像accelon这样方便读、批注的不多，所以目录这个功能还是得重视起来。  
刚才分别用最底两层的节和条、最高两层的书和章分别尝试了一下目录的建构，发现前者无法在分类之中显示目录层级（但在全文之中可以显示，并且都显示为条这一层），而书章这两层则能够显示层级，但无法在全文中显示，因为没有条这一层。[书章 节条.rar](https://forum.freemdict.com/uploads/short-url/d0qHFlDS99cmv9xkDb9501Fi1eU.rar) (526.3 KB)  
另外请教，怎么改脚本才能省去转换之后替换中文书名号那一步？

---

<div class="post-metadata">

作者： ![Mandolin](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/mandolin/32/4948_2.png) [@Mandolin](https://forum.freemdict.com/u/Mandolin)\
发布日期： [2021 年9 月 15 日 05:03 UTC](https://forum.freemdict.com/t/topic/8207/20 "2021-09-15T05:03:11Z")

</div>

> [@hkreporter](#):
>
> 用最底两层的节和条

前面讲过，因为跳级了，要从1到5级依次用下来，从書、章、篇用下来，这些只是等级标签，具体代表什么不要紧的。

“怎么改脚本才能省去转换之后替换中文书名号那一步？”  
把 **那两行替换代码** 注释掉就再可以了。

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