branch: externals/pyim commit 681606c044adf591ceefe4ef65e82d578e91d24e Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
Update comment. --- pyim-dcache.el | 4 ++-- pyim-dhashcache.el | 2 +- pyim-dregcache.el | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyim-dcache.el b/pyim-dcache.el index 7dff11ebb8..b1789800cc 100644 --- a/pyim-dcache.el +++ b/pyim-dcache.el @@ -212,9 +212,9 @@ code 对应的中文词条了." (cl-defgeneric pyim-dcache-update (&optional force) "读取并加载所有相关词库 dcache, 如果 FORCE 为真,强制加载。") -;; ** Dcache 更新词条统计量功能接口 +;; ** Dcache 更新词频功能接口 (cl-defgeneric pyim-dcache-update-wordcount (word &optional wordcount-handler) - "保存 WORD 词频. + "更新 WORD 词频. 1. 如果 WORDCOUNT-HANDLER 是一个函数:那么其返回值将作为词频保存, 参数为原有词频。 diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el index f07cdf7811..b86cf46e57 100644 --- a/pyim-dhashcache.el +++ b/pyim-dhashcache.el @@ -557,7 +557,7 @@ pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf (push (concat prefix (substring code1 0 i)) results))) results))) -;; ** 更新 dhashcache 词条计数 +;; ** 更新 dhashcache 词频功能 (cl-defmethod pyim-dcache-update-wordcount (word &context (pyim-dcache-backend (eql pyim-dhashcache)) &optional wordcount-handler) diff --git a/pyim-dregcache.el b/pyim-dregcache.el index ef4d5d6e8c..06d7669f26 100644 --- a/pyim-dregcache.el +++ b/pyim-dregcache.el @@ -275,7 +275,7 @@ ;; 删除对应词条的词频 (remhash word pyim-dregcache-iword2count)) -;; ** 更新 dhashcache 相关函数 +;; ** 更新 dregcache 相关函数 (cl-defmethod pyim-dcache-update (&context (pyim-dcache-backend (eql pyim-dregcache)) &optional force) "读取并加载所有相关词库 dcache. @@ -393,7 +393,7 @@ DICT-FILES 是词库文件列表. DICTS-MD5 是词库的MD5校验码. (push chunk content-segments) (list :content (nreverse content-segments)))) -;; ** 更新 dregcache 词条计数。 +;; ** 更新 dregcache 词频功能。 (cl-defmethod pyim-dcache-update-wordcount (word &context (pyim-dcache-backend (eql pyim-dregcache)) &optional wordcount-handler) @@ -413,7 +413,7 @@ DICT-FILES 是词库文件列表. DICTS-MD5 是词库的MD5校验码. (unless (equal orig-value new-value) (puthash word new-value pyim-dregcache-iword2count)))) -;; ** 升级 dhashcache 相关函数 +;; ** 升级 dregcache 相关函数 (cl-defmethod pyim-dcache-upgrade (&context (pyim-dcache-backend (eql pyim-dregcache))) "升级词库缓存.