Loading operational +29 −1 Original line number Diff line number Diff line * 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: Loading Loading @@ -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. Loading zero-input-framework.el +2 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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 Loading zero-input-pinyin.el +1 −1 Original line number Diff line number Diff line Loading @@ -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 "<f5>") 'zero-input-mode) Loading zero-input.el +3 −2 Original line number Diff line number Diff line Loading @@ -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")) Loading Loading @@ -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) Loading Loading @@ -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 Loading Loading
operational +29 −1 Original line number Diff line number Diff line * 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: Loading Loading @@ -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. Loading
zero-input-framework.el +2 −1 Original line number Diff line number Diff line Loading @@ -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) Loading Loading @@ -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 Loading
zero-input-pinyin.el +1 −1 Original line number Diff line number Diff line Loading @@ -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 "<f5>") 'zero-input-mode) Loading
zero-input.el +3 −2 Original line number Diff line number Diff line Loading @@ -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")) Loading Loading @@ -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) Loading Loading @@ -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 Loading