emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/pyim 2d0513de05 2/2: * pyim-dhashcache.el (pyim-dhashca


From: ELPA Syncer
Subject: [elpa] externals/pyim 2d0513de05 2/2: * pyim-dhashcache.el (pyim-dhashcache-generate-word2code-dcache-file): Simplify.
Date: Mon, 6 Jun 2022 00:57:48 -0400 (EDT)

branch: externals/pyim
commit 2d0513de0514f91e8f80ba9ebd773c21597acba5
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * pyim-dhashcache.el (pyim-dhashcache-generate-word2code-dcache-file): 
Simplify.
---
 pyim-dhashcache.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 59ab03840a..e6756e4e81 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -324,7 +324,9 @@ DCACHE 是一个 code -> words 的 hashtable.
     (let ((hashtable (make-hash-table :size 1000000 :test #'equal)))
       (maphash
        (lambda (code words)
-         (unless (pyim-string-match-p "-" code)
+         ;; 这里主要考虑五笔仓颉等形码输入法,也就是 code-prefix 中包含 "/" 的输
+         ;; 入法,全拼输入法反查功能主要使用 pymap 实现,不使用这个表。
+         (when (pyim-string-match-p "/" code)
            (dolist (word words)
              (let ((value (gethash word hashtable))
                    ;; NOTE: 这里使用 `cl-copy-seq', 可以让保存的文件内容类似:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]