branch: externals/pyim commit f108f69eff1fa2f8b9b610b4f4f8853739ab60c5 Author: Feng Shu <tuma...@163.com> Commit: Feng Shu <tuma...@163.com>
Fix quote warn in docstring --- pyim-dhashcache.el | 2 +- pyim-probe.el | 2 +- pyim-punctuation.el | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el index e6756e4e81..75c73f1f63 100644 --- a/pyim-dhashcache.el +++ b/pyim-dhashcache.el @@ -289,7 +289,7 @@ (defun pyim-dhashcache-generate-dcache-file (dict-files dcache-file) "读取词库文件列表:DICT-FILES, 生成一个词库缓冲文件 DCACHE-FILE. -pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 'utf-8-unix, +pyim 使用的词库文件是简单的文本文件,编码 *强制* 为 \\='utf-8-unix, 其结构类似: ni-bu-hao 你不好 diff --git a/pyim-probe.el b/pyim-probe.el index aba8c32296..90b782ec9f 100644 --- a/pyim-probe.el +++ b/pyim-probe.el @@ -115,7 +115,7 @@ 3. 使用 `pyim-convert-code-at-point' 可以将光标前的 code 字符串转换为中文, 所以用户需要给 `pyim-convert-code-at-point' 绑定一个快捷键,比如: - (global-set-key (kbd \"M-i\") 'pyim-convert-code-at-point) + (global-set-key (kbd \"M-i\") #'pyim-convert-code-at-point) 这个函数用于:`pyim-english-input-switch-functions' 。" (let* ((offset 0) diff --git a/pyim-punctuation.el b/pyim-punctuation.el index 1c724a6a11..0ae736b6ca 100644 --- a/pyim-punctuation.el +++ b/pyim-punctuation.el @@ -81,9 +81,9 @@ pyim 输入半角标点,函数列表中每个函数都有一个参数:char (defvar pyim-punctuation-translate-p '(auto yes no) "这个变量的第一个元素的取值用于控制标点符号全角半角模式切换. -1. 当第一个元素为 'yes 时,输入全角标点。 -2. 当第一个元素为 'no 时,输入半角标点。 -3. 当第一个元素为 'auto 时,根据中英文环境,自动切换。") +1. 当第一个元素为 \\='yes 时,输入全角标点。 +2. 当第一个元素为 \\='no 时,输入半角标点。 +3. 当第一个元素为 \\='auto 时,根据中英文环境,自动切换。") (defvar pyim-punctuation-pair-status '(("\"" nil) ("'" nil)) @@ -109,9 +109,9 @@ If you don't like this function, set the variable to nil") `pyim-process-punctuation-full-width-p' 函数的返回值,来决定是否转换标点 符号: -1. 当返回值为 'yes 时,`pyim-process-outcome-handle-char' 转换标点符号,从而输入全角标点。 -2. 当返回值为 'no 时,`pyim-process-outcome-handle-char' 忽略转换,从而输入半角标点。 -3. 当返回值为 'auto 时,根据中英文环境,自动切换。" +1. 当返回值为 \\='yes 时,`pyim-process-outcome-handle-char' 转换标点符号,从而输入全角标点。 +2. 当返回值为 \\='no 时,`pyim-process-outcome-handle-char' 忽略转换,从而输入半角标点。 +3. 当返回值为 \\='auto 时,根据中英文环境,自动切换。" (interactive) (setq pyim-punctuation-translate-p `(,@(cdr pyim-punctuation-translate-p) @@ -141,8 +141,8 @@ If you don't like this function, set the variable to nil") (defun pyim-punctuation-translate (&optional punct-style) "将光标前1个或前后连续成对的n个标点符号进行全角/半角转换. -当 PUNCT-STYLE 设置为 'full-width 时,所有的标点符号转换为全角符 -号,设置为 'half-width 时,转换为半角符号。" +当 PUNCT-STYLE 设置为 \\='full-width 时,所有的标点符号转换为全角符 +号,设置为 \\='half-width 时,转换为半角符号。" (interactive) (let ((punc-list (pyim-flatten-tree pyim-punctuation-dict)) (punct-style @@ -197,7 +197,7 @@ If you don't like this function, set the variable to nil") PUNCT-LIST 格式类似: - `(\",\" \",\") 或者:`(\"'\" \"‘\" \"’\") + (\",\" \",\") 或者:(\"'\" \"‘\" \"’\") 当 BEFORE 为 t 时,只返回切换之前的结果,这个用来获取切换之前的 标点符号。