[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim a86cb9b606 47/58: pyim-pinyin-get-shenmu -> pyim-p
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim a86cb9b606 47/58: pyim-pinyin-get-shenmu -> pyim-pinyin--get-shenmu |
Date: |
Fri, 24 Jun 2022 06:57:55 -0400 (EDT) |
branch: externals/pyim
commit a86cb9b60635958775847a2663f549ba0f58452a
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
pyim-pinyin-get-shenmu -> pyim-pinyin--get-shenmu
---
pyim-pinyin.el | 6 +++---
tests/pyim-tests.el | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/pyim-pinyin.el b/pyim-pinyin.el
index 723a23eb24..bd856701a1 100644
--- a/pyim-pinyin.el
+++ b/pyim-pinyin.el
@@ -76,7 +76,7 @@
因为用户有即时界面反馈,不可能连续输入无效拼音.")
;; 分解拼音的相关函数
-(defun pyim-pinyin-get-shenmu (pinyin)
+(defun pyim-pinyin--get-shenmu (pinyin)
"从一个拼音字符串 PINYIN 中提出第一个声母。"
(let ((i (min (length pinyin) 2))
shenmu)
@@ -102,7 +102,7 @@
(defun pyim-pinyin-get-charpy (pinyin)
"将拼音字符串 PINYIN 分解成声母,韵母和剩余部分."
- (let* ((x (pyim-pinyin-get-shenmu pinyin))
+ (let* ((x (pyim-pinyin--get-shenmu pinyin))
(shenmu (car x))
(yunmu-and-rest (cdr x))
(i (min (length yunmu-and-rest) 5))
@@ -118,7 +118,7 @@
(setq yunmu ""))
((and (string< "" rest)
;; 截取后剩余的字符串 rest 找不出声母
- (equal (car (pyim-pinyin-get-shenmu rest)) "")
+ (equal (car (pyim-pinyin--get-shenmu rest)) "")
;; 截取后的韵母最后一个字符是一个有效声母
(member (substring yunmu -1) pyim-pinyin--shenmu)
;; 截取得到的韵母如果去掉最后一个字符,还是有效的韵母
diff --git a/tests/pyim-tests.el b/tests/pyim-tests.el
index d606d5b6fd..49432eb9ad 100644
--- a/tests/pyim-tests.el
+++ b/tests/pyim-tests.el
@@ -301,12 +301,12 @@
;; ** pyim-pinyin 相关单元测试
(ert-deftest pyim-tests-pyim-pinyin ()
- ;; pyim-pinyin-get-shenmu
- (should (equal (pyim-pinyin-get-shenmu "nihao")
+ ;; pyim-pinyin--get-shenmu
+ (should (equal (pyim-pinyin--get-shenmu "nihao")
'("n" . "ihao")))
- (should (equal (pyim-pinyin-get-shenmu "ao")
+ (should (equal (pyim-pinyin--get-shenmu "ao")
'("" . "ao")))
- (should (equal (pyim-pinyin-get-shenmu "")
+ (should (equal (pyim-pinyin--get-shenmu "")
'(nil . "")))
;; pyim-pinyin-valid-charpy-p
- [elpa] externals/pyim 9e006e703d 21/58: pyim-candidates-search-buffer -> pyim-candidates--search-buffer, (continued)
- [elpa] externals/pyim 9e006e703d 21/58: pyim-candidates-search-buffer -> pyim-candidates--search-buffer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 4bb3a611cc 24/58: pyim-local-variable-list -> pyim--local-variable-list, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 76f67a8d9c 27/58: pyim-kill-emacs-hook-function -> pyim--kill-emacs-hook-function, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 25a704da4b 28/58: pyim-input-method-1 -> pyim--input-method, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 37812896c5 34/58: pyim-indicator-revert-cursor-color -> pyim-indicator--revert-cursor-color, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 80c81b88cf 48/58: pyim-pinyin-valid-charpy-p -> pyim-pinyin--valid-charpy-p, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 70a2d9a754 51/58: Add pyim-pinyin-valid-shuangpin-p, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 894e4cd5e1 43/58: Remove pyim-pinyin-build-regexp, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 578d096ba9 44/58: pyim-pinyin-shenmu -> pyim-pinyin--shenmu, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim aef2a941f3 05/58: pyim-cregexp-create-beautiful-cregexp-from-string -> pyim-cregexp--create-beautiful-cregexp-from-string, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim a86cb9b606 47/58: pyim-pinyin-get-shenmu -> pyim-pinyin--get-shenmu,
ELPA Syncer <=
- [elpa] externals/pyim c604b1f4aa 55/58: pyim-pymap-py2cchar-cache2 -> pyim-pymap--py2cchar-cache2, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim c0798d5e4d 57/58: pyim-pymap-cchar2py-cache -> pyim-pymap--cchar2py-cache, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim c573694ae4 58/58: Update pyim-pymap-utils.el, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim f4074fc4ef 04/58: pyim-cregexp-valid-p -> pyim-cregexp--valid-p, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 291798d23d 09/58: pyim-cregexp-scheme -> pyim-cregexp--scheme, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim b243e7e8e7 15/58: pyim-isearch-search-fun -> pyim-isearch--search-fun, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 56505723bc 16/58: pyim-autoselector-xingma-1 -> pyim-autoselector--xingma, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim ea2988cf16 26/58: pyim-dict-manager-buffer -> pyim-dict-manager--buffer, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 91b1aa37da 11/58: pyim-cregexp-build-xingma-regexp-from-words -> pyim-cregexp--build-xingma-regexp-from-words, ELPA Syncer, 2022/06/24
- [elpa] externals/pyim 40ed5dc8a4 10/58: pyim-cregexp-quanpin- -> pyim-cregexp-quanpin--, ELPA Syncer, 2022/06/24