[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 6a6fb04e36 1/2: Add pyim-cstring-to-codes method t
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 6a6fb04e36 1/2: Add pyim-cstring-to-codes method to liberime, Fix #457 |
Date: |
Mon, 26 Sep 2022 20:57:54 -0400 (EDT) |
branch: externals/pyim
commit 6a6fb04e366a3ac45f11fa3f5b739917257e3913
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Add pyim-cstring-to-codes method to liberime, Fix #457
---
pyim-liberime.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyim-liberime.el b/pyim-liberime.el
index 75ae3ddfaf..efa1463402 100644
--- a/pyim-liberime.el
+++ b/pyim-liberime.el
@@ -213,6 +213,10 @@
(setq pyim-liberime-word-log nil)
(pyim-process-terminate))))
+(cl-defmethod pyim-cstring-to-codes (string (_scheme pyim-scheme-rime)
&optional criteria)
+ "将中文字符串 STRING 转换为对应的拼音。"
+ (pyim-cstring-to-codes string (pyim-scheme-get 'quanpin) criteria))
+
(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.