Commit 4f721b17 authored by Yuanle Song's avatar Yuanle Song
Browse files

v2.3.1 zero pinyin: never auto commit on ' insert in preedit mode

parent 2d42ba8d
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -111,12 +111,6 @@ cd ~/lisp/elisp/zero/
* later                                                               :entry:
* current                                                             :entry:
** 
** 2020-02-15 zero-el:中文标点full模式下,无法输入 fan'gai 翻盖
因为'会自动变成左引号。
而'在zps里面还有分词字符的含义。

- 建议取消 preedit 状态下'的自动 commit 1st candidate 并插入引号的功能。

** 2020-02-16 declare zero-input-punctuation-level, zero-input-full-width-p using defcustom
use setq-default to set the value.

@@ -125,6 +119,14 @@ complete registered im symbols.
** 2019-10-23 checkdoc and package-lint can't ignore some non-issues.
I can't run them in git pre-commit hook.
* done                                                                :entry:
** 2020-02-15 zero-el:中文标点full模式下,无法输入 fan'gai 翻盖
因为'会自动变成左引号。
而'在zps里面还有分词字符的含义。

- 建议取消 preedit 状态下'的自动 commit 1st candidate 并插入引号的功能。

  zero-input-pinyin-handle-preedit-char

** 2020-02-14 zero-el: H。265 > H.265
除了数字+小数点+数字,大写英文+小数点+数字也可以自动转换。

+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ If item is not in lst, return nil."

;; zero-input-el version
(defvar zero-input-version nil "Zero package version.")
(setq zero-input-version "2.3.0")
(setq zero-input-version "2.3.1")

;; FSM state
(defconst zero-input--state-im-off 'IM-OFF)
+3 −1
Original line number Diff line number Diff line
@@ -295,7 +295,9 @@ CH the character user typed."
   ((= ch zero-input-next-page-key)
    (zero-input-pinyin-page-down))
   (t (let ((str (zero-input-convert-punctuation ch)))
	(if str
	;; ?' is used as pinyin substring separator, never auto commit on ?'
	;; insert when pre-editing.
	(if (and str (not (eq ch ?')))
	    (when (zero-input-pinyin-commit-first-candidate-in-full)
	      (zero-input-set-state zero-input--state-im-waiting-input)
	      (insert str))
+5 −3
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.

;; Version: 2.3.0
;; Version: 2.3.1
;; URL: https://gitlab.emacsos.com/sylecn/zero-el
;; Package-Requires: ((emacs "24.3") (s "1.2.0"))

@@ -246,7 +246,7 @@ If item is not in lst, return nil."

;; zero-input-el version
(defvar zero-input-version nil "Zero package version.")
(setq zero-input-version "2.3.0")
(setq zero-input-version "2.3.1")

;; FSM state
(defconst zero-input--state-im-off 'IM-OFF)
@@ -1473,7 +1473,9 @@ CH the character user typed."
   ((= ch zero-input-next-page-key)
    (zero-input-pinyin-page-down))
   (t (let ((str (zero-input-convert-punctuation ch)))
	(if str
	;; ?' is used as pinyin substring separator, never auto commit on ?'
	;; insert when pre-editing.
	(if (and str (not (eq ch ?')))
	    (when (zero-input-pinyin-commit-first-candidate-in-full)
	      (zero-input-set-state zero-input--state-im-waiting-input)
	      (insert str))