Commit 93c25804 authored by Yuanle Song's avatar Yuanle Song

v2.7.0 add ` -> · mapping in punctuation full map.

update doc
parent b6ee5fe2
* 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.
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment