[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim c4d73f836d 13/41: pyim-candidates-create-get-dcach
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim c4d73f836d 13/41: pyim-candidates-create-get-dcache-words -> pyim-candidates-dcache-words |
Date: |
Sat, 4 Jun 2022 09:57:46 -0400 (EDT) |
branch: externals/pyim
commit c4d73f836d711d53c7b63d933336fb46afa72c10
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-candidates-create-get-dcache-words -> pyim-candidates-dcache-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 88ee5ee296..79de531b4b 100644
--- a/pyim-candidates.el
+++ b/pyim-candidates.el
@@ -167,7 +167,7 @@
"`pyim-candidates-create' 内部使用的函数。"
(let* ((znabc-words (pyim-candidates-znabc-words imobjs scheme fast-search))
(jianpin-words (pyim-candidates-jianpin-words imobjs scheme))
- (dcache-words (pyim-candidates-create-get-dcache-words imobjs scheme))
+ (dcache-words (pyim-candidates-dcache-words imobjs scheme))
(personal-words (nth 0 dcache-words))
(common-words (nth 1 dcache-words))
(pinyin-chars-1 (nth 2 dcache-words))
@@ -245,7 +245,7 @@
(push (delete-dups (append w2 w1)) jianpin-words)))
(pyim-zip (nreverse jianpin-words) fast-search))))
-(defun pyim-candidates-create-get-dcache-words (imobjs scheme &optional
fast-search ignore-pymap-chars)
+(defun pyim-candidates-dcache-words (imobjs scheme &optional fast-search
ignore-pymap-chars)
"获取个人词条,词库词条和第一汉字列表。"
(let (personal-words common-words pinyin-chars-1 pinyin-chars-2)
(dolist (imobj imobjs)
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index a475c0c322..384be5dbed 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -552,11 +552,11 @@
(puthash "ni" (list "你" "尼") pyim-dhashcache-code2word)
(puthash "ni-hao" (list "你好" "尼耗") pyim-dhashcache-code2word)
(puthash "n-h" (list "你好" "你坏" "尼耗" "南好" "内核" "内河")
pyim-dhashcache-ishortcode2word)
- (should (equal (pyim-candidates-create-get-dcache-words imobjs1 quanpin
nil t)
+ (should (equal (pyim-candidates-dcache-words imobjs1 quanpin nil t)
'(("你" "您" "妮") nil nil nil)))
- (should (equal (pyim-candidates-create-get-dcache-words imobjs2 quanpin
nil t)
+ (should (equal (pyim-candidates-dcache-words imobjs2 quanpin nil t)
'(nil ("你好" "尼耗") ("你好" "尼耗") nil)))
- (should (equal (pyim-candidates-create-get-dcache-words imobjs3 quanpin
nil t)
+ (should (equal (pyim-candidates-dcache-words imobjs3 quanpin nil t)
'(("你" "尼") ("你" "尼") ("你" "尼" "你" "尼") nil)))))
(ert-deftest pyim-tests-pyim-candidates-create-get-pymap-chars ()
- [elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words, (continued)
- [elpa] externals/pyim 6ef8630475 11/41: pyim-candidates-create-like-znabc -> pyim-candidates-znabc-words, ELPA Syncer, 2022/06/04
- [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 <=
- [elpa] externals/pyim 3e53c5e923 20/41: pyim-candidates-create-quanpin -> pyim-candidates-quanpin, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim c1cbba5f52 18/41: Fix pyim-tests.el, ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 4c8b8afc5a 21/41: * pyim-candidates.el (pyim-candidates-quanpin): Simplify., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 7c6ece9d4d 26/41: * pyim-liberime.el (pyim-process-terminate-really): do not use :after., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim cfe94f23f4 30/41: Set pyim-force-input-chinese-functions default value is nil., ELPA Syncer, 2022/06/04
- [elpa] externals/pyim 5747879711 37/41: pyim-page-info-format style eql two-lines., ELPA Syncer, 2022/06/04