Commit e9779a33 authored by Yuanle Song's avatar Yuanle Song
Browse files

v2.2.2 move customize group to 'zero-input instead of 'zero.

to match the package name. update doc in README file.
parent d0a3506b
Loading
Loading
Loading
Loading
+34 −4
Original line number Diff line number Diff line
* COMMENT -*- mode: org -*-
#+Date: 2019-09-01
Time-stamp: <2019-10-28>
Time-stamp: <2020-02-16>

* zero-el

zero-el provides zero-input-pinyin, an Emacs pinyin input method for Chinese
and zero-input-framework, which is an emacs Chinese input method framework.

* An introduction to zero-el, including how to install and config zero-el.
https://blog.emacsos.com/zero-el.html

For normal configurable variables, see
M-x customize-group zero-input
M-x customize-group zero-input-pinyin

* Zero Pinyin Usage
- Enable zero-input minor mode in emacs buffer.
  M-x zero-input-mode

  You should bind a global hotkey for this function for easier switch, e.g.
  (global-set-key (kbd "<f1>") 'zero-input-mode)

- Type pinyin string, for example, "zhongwen", zero will show candidates
  matches this pinyin string. You may choose first candidate by space. You may
  choose other candidates by digit keys. You may page down, page up by =/-
  key.

  Some notes on pinyin string,
  - There is no ü on US keyboard, type v instead. For example lve 略.
  - Use ' to separate pinyin substring like xi'an 西安

* Zero Framework features
- Auto save user phrases. When you type a new phrase, it will be remembered in
  user phrase db.
- To delete system phrase or user phrase, type C-<digit> when candidate is
  shown in zero-panel.
- Auto period for digits and English letter and digit mixed words. For
  example, to type "3.6" when zero-input-mode is on, type "3." will insert "3。
  ", just continue type 6, it will be converted to "3.6". Same thing for "H。
  265" -> "H.265".

* File list
- zero-input.el

@@ -43,9 +76,6 @@ and zero-input-framework, which is an emacs Chinese input method framework.
  serves as an example of how to use zero framework to create new input
  methods.

* introduce to zero-el
https://blog.emacsos.com/zero-el.html

* License
zero-el is under Apache License 2.0

+4 −1
Original line number Diff line number Diff line
* COMMENT -*- mode: org -*-
#+Date: 2019-10-08
Time-stamp: <2020-02-04>
Time-stamp: <2020-02-16>
#+STARTUP: content
* notes                                                               :entry:
** 2019-04-01 zero-el a Chinese IM framework in emacs; FSM              :doc:
@@ -111,6 +111,9 @@ cd ~/lisp/elisp/zero/
* later                                                               :entry:
* current                                                             :entry:
** 
** 2020-02-16 declare zero-input-punctuation-level, zero-input-full-width-p using defcustom
use setq-default to set the value.

** 2019-11-03 add completion support for zero-input-set-im
complete registered im symbols.
** 2019-10-23 checkdoc and package-lint can't ignore some non-issues.
+3 −3
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.2.1")
(setq zero-input-version "2.2.2")

;; FSM state
(defconst zero-input--state-im-off 'IM-OFF)
@@ -194,7 +194,7 @@ Used to handle Chinese dot in digit input.
e.g. 1。3 could be converted to 1.3.")
(defcustom zero-input-auto-fix-dot-between-numbers t
  "Non-nil means zero should change 1。3 to 1.3."
  :group 'zero
  :group 'zero-input
  :type 'boolean)
(defvar-local zero-input-preedit-str "")
(defvar-local zero-input-candidates nil)
@@ -202,7 +202,7 @@ e.g. 1。3 could be converted to 1.3.")
  "How many candidates to show on each page.

Change will be effective only in new `zero-input-mode' buffer."
  :group 'zero
  :group 'zero-input
  :type 'integer)
(defvar-local zero-input-current-page 0 "Current page number.  count from 0.")
(defvar-local zero-input-initial-fetch-size 21
+4 −4
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.2.1
;; Version: 2.2.2
;; 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.2.1")
(setq zero-input-version "2.2.2")

;; FSM state
(defconst zero-input--state-im-off 'IM-OFF)
@@ -307,7 +307,7 @@ Used to handle Chinese dot in digit input.
e.g. 1。3 could be converted to 1.3.")
(defcustom zero-input-auto-fix-dot-between-numbers t
  "Non-nil means zero should change 1。3 to 1.3."
  :group 'zero
  :group 'zero-input
  :type 'boolean)
(defvar-local zero-input-preedit-str "")
(defvar-local zero-input-candidates nil)
@@ -315,7 +315,7 @@ e.g. 1。3 could be converted to 1.3.")
  "How many candidates to show on each page.

Change will be effective only in new `zero-input-mode' buffer."
  :group 'zero
  :group 'zero-input
  :type 'integer)
(defvar-local zero-input-current-page 0 "Current page number.  count from 0.")
(defvar-local zero-input-initial-fetch-size 21