[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 3833fd7a24: pyim-cstring-to-pinyin--from-dcache: d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 3833fd7a24: pyim-cstring-to-pinyin--from-dcache: deal with / in code. |
Date: |
Mon, 16 Jan 2023 05:58:40 -0500 (EST) |
branch: externals/pyim
commit 3833fd7a241972d7442bd1cff2f5b1ba529e23df
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-cstring-to-pinyin--from-dcache: deal with / in code.
---
pyim-cstring.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pyim-cstring.el b/pyim-cstring.el
index 5f8c27cb85..1d1e4df051 100644
--- a/pyim-cstring.el
+++ b/pyim-cstring.el
@@ -133,7 +133,11 @@ BUG: 当 STRING 中包含其它标点符号,并且设置 SEPERATER 时,结
(pinyins-list
(mapcar (lambda (str)
(if (pyim-string-match-p "\\cc" str)
- (when-let ((code (car (pyim-dcache-get str
'(word2code)))))
+ (when-let ((code (cl-find-if-not
+ (lambda (c)
+ ;; 注意:Pinyin 词库中不包含 "/" 字符。
+ (string-match-p c "/"))
+ (pyim-dcache-get str '(word2code)))))
(split-string code "-"))
(list str)))
string-parts)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/pyim 3833fd7a24: pyim-cstring-to-pinyin--from-dcache: deal with / in code.,
ELPA Syncer <=