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

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

[elpa] externals/pyim 43595b8 2/2: * pyim-liberime.el (pyim-liberime-pr


From: ELPA Syncer
Subject: [elpa] externals/pyim 43595b8 2/2: * pyim-liberime.el (pyim-liberime-process-create-word): 删除,影响性能。
Date: Sun, 5 Dec 2021 07:57:33 -0500 (EST)

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

    * pyim-liberime.el (pyim-liberime-process-create-word): 删除,影响性能。
---
 pyim-liberime.el | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/pyim-liberime.el b/pyim-liberime.el
index 9dbd526..3afb2ac 100644
--- a/pyim-liberime.el
+++ b/pyim-liberime.el
@@ -225,22 +225,6 @@
                 (setq words nil))
                (t (liberime-process-key 65366))))))))))
 
-(defun pyim-liberime-process-create-word (word &optional _prepend 
_wordcount-handler)
-  "Create WORD at current rime backend.
-ONlY works with quanpin."
-  ;; 判断当前 rime 环境是否支持全拼,如果支持,就添加词条。
-  (ignore-errors
-    (let ((codes (pyim-cstring-to-codes word 'quanpin)))
-      (when (member "你好" (liberime-search "nihao" 10))
-        (dolist (code codes)
-          (unless (pyim-string-match-p "[^ a-z-]" code)
-            (pyim-liberime-create-word
-             (split-string code "-")
-             (remove "" (split-string word "")))
-            (pyim-process-terminate:rime)))))))
-
-(advice-add 'pyim-process-create-word :after 
#'pyim-liberime-process-create-word)
-
 (defun pyim-liberime-get-code (word input &optional _limit)
   "Get the code of WORD from the beginning of INPUT.
 `liberime-search' with LIMIT argument is used internal.



reply via email to

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