[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znab
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words |
Date: |
Sat, 4 Jun 2022 09:57:45 -0400 (EDT) |
branch: externals/pyim
commit 6ef8630475f96555a84763c4902e185ec233e1d2
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words
---
pyim-candidates.el | 4 ++--
tests/pyim-tests.el | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pyim-candidates.el b/pyim-candidates.el
index 320484f1ae..313c2003fd 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -165,7 +165,7 @@
(defun pyim-candidates-create-quanpin (imobjs scheme &optional fast-search)
"`pyim-candidates-create' 内部使用的函数。"
- (let* ((znabc-words (pyim-candidates-create-like-znabc imobjs scheme
fast-search))
+ (let* ((znabc-words (pyim-candidates-znabc-words imobjs scheme fast-search))
(jianpin-words (pyim-candidates-create-like-jianpin imobjs scheme))
(dcache-words (pyim-candidates-create-get-dcache-words imobjs scheme))
(personal-words (nth 0 dcache-words))
@@ -203,7 +203,7 @@
,@pinyin-chars-2
)))))
-(defun pyim-candidates-create-like-znabc (imobjs scheme &optional fast-search)
+(defun pyim-candidates-znabc-words (imobjs scheme &optional fast-search)
"智能ABC模式,得到尽可能的拼音组合,查询这些组合,得到的词条做为联想词。"
(let ((codes (mapcar (lambda (x)
(pyim-subconcat x "-"))
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index dac7c90dbe..424b0cf666 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -513,7 +513,7 @@
wubi)
'("㠭子叕" "㠭子又")))))
-(ert-deftest pyim-tests-pyim-candidates-create-like-znabc ()
+(ert-deftest pyim-tests-pyim-candidates-znabc-words ()
(let* ((pyim-dhashcache-code2word (make-hash-table :test #'equal))
(pyim-dhashcache-icode2word (make-hash-table :test #'equal))
(quanpin (pyim-scheme-get 'quanpin))
@@ -521,9 +521,9 @@
(puthash "ni-hao" (list "你好" "尼耗") pyim-dhashcache-code2word)
(puthash "ni-hao-ma" (list "你好吗" "你好马") pyim-dhashcache-code2word)
(puthash "ni-hao-ma-peng-you" (list "你好吗朋友" "你好吗喷油")
pyim-dhashcache-code2word)
- (should (equal (pyim-candidates-create-like-znabc imobjs quanpin)
+ (should (equal (pyim-candidates-znabc-words imobjs quanpin)
'("你好吗朋友" "你好吗" "你好" "你好吗喷油" "你好马" "尼耗")))
- (should (equal (pyim-candidates-create-like-znabc imobjs quanpin t)
+ (should (equal (pyim-candidates-znabc-words imobjs quanpin t)
'("你好吗朋友" "你好吗" "你好")))))
(ert-deftest pyim-tests-pyim-candidates-create-like-jianpin ()
- [elpa] externals/pyim 0d357b5fd9 08/41: pyim-candidates-create-like-znabc, (continued)
- [elpa] externals/pyim 0d357b5fd9 08/41: pyim-candidates-create-like-znabc, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 6ce5f49b8f 01/41: Big refactor: use cl-defstruct and cl-defgeneric., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f5300086fd 02/41: * tests/pyim-tests.el (pyim-tests-pyim-candidates-get-chief): New test., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f536e5ede3 06/41: Fix warns., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 33a0f5a9b7 09/41: Add pyim-candidates-create-like-jianpin, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim b6b46a4e36 22/41: * pyim-candidates.el (pyim-candidates-create): Remove method of shuangpin., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim b3868caa80 29/41: Add pyim-probe tests, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 951013539c 33/41: Add progress to commentary, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim f4cc14ac64 32/41: Fix pyim-test.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 1b767c669e 40/41: * pyim-probe.el (pyim-probe-org-speed-commands): Updated., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words,
ELPA Syncer <=
- [elpa] externals/pyim 2aa48479b4 14/41: pyim-candidates-create-get-pymap-chars -> pyim-candidates-pymap-chars, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 016064e7fc 16/41: Update docstring., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 1330b436a6 27/41: Refactor pyim-page.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 302f1bff4b 34/41: Refactor pyim-preview.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 987087e515 15/41: Update pyim-candidates-create-quanpin., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 35bf05ce3e 19/41: pyim-scheme-common -> pyim-scheme, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim fa9f9f4244 24/41: Update pyim-candidates-dcache-words., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim aaa5f728f9 25/41: Fix compile warn., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 29a112182a 28/41: Refactor pyim-candidates.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim c4d73f836d 13/41: pyim-candidates-create-get-dcache-words -> pyim-candidates-dcache-words, ELPA Syncer, 2022/06/04