1 ;; cjk-util.mim -- Provide utilities for CJK input methods.
3 ;; National Institute of Advanced Industrial Science and Technology (AIST)
4 ;; Registration Number H15PRO112
6 ;; This file is part of the m17n library.
8 ;; The m17n library is free software; you can redistribute it and/or
9 ;; modify it under the terms of the GNU Lesser General Public License
10 ;; as published by the Free Software Foundation; either version 2.1 of
11 ;; the License, or (at your option) any later version.
13 ;; The m17n library is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ;; Lesser General Public License for more details.
18 ;; You should have received a copy of the GNU Lesser General Public
19 ;; License along with the m17n library; if not, write to the Free
20 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 (input-method t nil cjk-util)
27 (description "Provide utilities for CJK input methods.
28 This is acutually not a standalone input method, but is expected
29 to be included in the other input method (e.g. zh-py).
31 The fullwidth mode is turned on by typing \">>\", and turned off
34 The single fullwidth mode is turned on by typing \"Z\". In this
35 mode, any key typed is converted to the fullwidth character and
36 is inserted, then the mode is turned off.
41 (" " ? ) ("!" ?!) ("\"" ?") ("#" ?#)
42 ("$" ?$) ("%" ?%) ("&" ?&) ("'" ?')
43 ("(" ?\() (")" ?\)) ("*" ?*) ("+" ?+)
44 ("," ?,) ("-" ?-) ("." ?.) ("/" ?/)
45 ("0" ?0) ("1" ?1) ("2" ?2) ("3" ?3)
46 ("4" ?4) ("5" ?5) ("6" ?6) ("7" ?7)
47 ("8" ?8) ("9" ?9) (":" ?:) (";" ?;)
48 ("<" ?<) ("=" ?=) (">" ?>) ("?" ??)
49 ("@" ?@) ("A" ?A) ("B" ?B) ("C" ?C)
50 ("D" ?D) ("E" ?E) ("F" ?F) ("G" ?G)
51 ("H" ?H) ("I" ?I) ("J" ?J) ("K" ?K)
52 ("L" ?L) ("M" ?M) ("N" ?N) ("O" ?O)
53 ("P" ?P) ("Q" ?Q) ("R" ?R) ("S" ?S)
54 ("T" ?T) ("U" ?U) ("V" ?V) ("W" ?W)
55 ("X" ?X) ("Y" ?Y) ("Z" ?Z) ("[" ?\[)
56 ("\\" ?\) ("]" ?\]) ("^" ?^) ("_" ?_)
57 ("`" ?`) ("a" ?a) ("b" ?b) ("c" ?c)
58 ("d" ?d) ("e" ?e) ("f" ?f) ("g" ?g)
59 ("h" ?h) ("i" ?i) ("j" ?j) ("k" ?k)
60 ("l" ?l) ("m" ?m) ("n" ?n) ("o" ?o)
61 ("p" ?p) ("q" ?q) ("r" ?r) ("s" ?s)
62 ("t" ?t) ("u" ?u) ("v" ?v) ("w" ?w)
63 ("x" ?x) ("y" ?y) ("z" ?z) ("{" ?\{)
64 ("|" ?|) ("}" ?\}) ("~" ?~)
74 (">>" (shift fullwidth-mode)))
77 (enter-single-fullwidth-mode
78 ("Z" (shift single-fullwidth-mode)))
80 ;; Typing 1, 2, ..., 0 selects the 0th, 1st, ..., 9th candidate.
101 ((C-n) (select @]))))
106 (enter-fullwidth-mode)
107 (enter-single-fullwidth-mode))
112 (exit-fullwidth-mode)
115 (single-fullwidth-mode
117 (fullwidth (commit) (shift t))))