diff --git a/operational b/operational index 96dbe953047fc21755623d7e98ffe554ee021d26..2eea61a8fe67241ea36e787150d41ec6bb3d9188 100644 --- a/operational +++ b/operational @@ -1,6 +1,6 @@ * COMMENT -*- mode: org -*- #+Date: 2019-10-08 -Time-stamp: <2020-02-21> +Time-stamp: <2020-02-23> #+STARTUP: content * notes :entry: ** 2019-04-01 zero-el a Chinese IM framework in emacs; FSM :doc: @@ -123,6 +123,34 @@ cd ~/lisp/elisp/zero/ * later :entry: * current :entry: ** +** 2020-02-23 support typing ±, ≥, ≤ easier. +when user type +-, it is converted to ±. +use a flag to control conversion. +zero-input-auto-symbol-p default value is 'FULL, means only enable when +punctuation mode is 'FULL. if set to t, always convert char to symbol. if set +to nil, never convert char to symbol. + +Non-nil means auto convert some consective character to related symbol. + +#+BEGIN_SRC elisp + (defcustom zero-input-auto-symbol-alist + '(((?+ ?-) "±") + ((?> ?=) "≥") + ((?< ?=) "≤") + ((?* ?x) "×") + ((?< ?>) "≠") + ((?! ?=) "≠")) + "When user type chars in key, convert it to symbol in the value." + :group 'zero-input + :type 'TODO) +#+END_SRC +((?* ?x) "×") this one is different. x will be preedit str. +it's better if this is wrapped in a new mode. +like v mode used in some IM. +type v > = will show ≥ in candidate list. + +- rethink about it later. + ** 2020-02-21 zero-pinyin-service and zero-panel should recommend or suggest dbus pkg. I don't know it should recommend or suggest. ** 2019-10-23 checkdoc and package-lint can't ignore some non-issues. diff --git a/zero-input-framework.el b/zero-input-framework.el index b55d90c0a4135183e369070d87e77a721478027c..0f0c6c9ec5228a7344bec903b4db253637f37d55 100644 --- a/zero-input-framework.el +++ b/zero-input-framework.el @@ -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.6.0") +(setq zero-input-version "2.7.0") ;; FSM state (defconst zero-input--state-im-off 'IM-OFF) @@ -192,6 +192,7 @@ independent from punctuation map. You can change this via (?^ "……") (?~ "~") (?\; ";") + (?\` "·") (?$ "¥")) "Additional punctuation map used when `zero-input-punctuation-level' is 'FULL." :group 'zero-input diff --git a/zero-input-pinyin.el b/zero-input-pinyin.el index ca5f39213fafeb456b8134954f9898296a45faa7..47e4d9429958cfd20b335c336be4a2a4ee8585aa 100644 --- a/zero-input-pinyin.el +++ b/zero-input-pinyin.el @@ -18,7 +18,7 @@ ;; ;; (add-to-list 'load-path "~/fromsource/zero") ;; omit if install from melpa ;; (require 'zero-input-pinyin) -;; (zero-input-set-default-im 'pinyin) +;; (zero-input-set-default-im "pinyin") ;; ;; Now you may bind a key to zero-input-mode to make it easy to ;; ;; switch on/off the input method. ;; (global-set-key (kbd "") 'zero-input-mode) diff --git a/zero-input.el b/zero-input.el index 5fe7fca36690620ce4bce5b2aca74a20525b1cea..39e251e77943e0f83bd5f88c591162fd6233f8da 100644 --- a/zero-input.el +++ b/zero-input.el @@ -12,7 +12,7 @@ ;; See the License for the specific language governing permissions and ;; limitations under the License. -;; Version: 2.6.0 +;; Version: 2.7.0 ;; URL: https://gitlab.emacsos.com/sylecn/zero-el ;; Package-Requires: ((emacs "24.3") (s "1.2.0")) @@ -251,7 +251,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.6.0") +(setq zero-input-version "2.7.0") ;; FSM state (defconst zero-input--state-im-off 'IM-OFF) @@ -310,6 +310,7 @@ independent from punctuation map. You can change this via (?^ "……") (?~ "~") (?\; ";") + (?\` "·") (?$ "¥")) "Additional punctuation map used when `zero-input-punctuation-level' is 'FULL." :group 'zero-input