Add ua-kbd.mim.
[m17n/m17n-db.git] / MIM / cjk-util.mim
1 ;; cjk-util.mim -- Provide utilities for CJK input methods.
2 ;; Copyright (C) 2005
3 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
4 ;;   Registration Number H15PRO112
5
6 ;; This file is part of the m17n library.
7
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.
12
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.
17
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., 51 Franklin Street, Fifth Floor,
21 ;; Boston, MA 02110-1301, USA.
22
23 (input-method t nil cjk-util)
24
25 (description "Provide utilities for CJK input methods.
26 This is acutually not a standalone input method, but is expected
27 to be included in the other input method (e.g. zh-py).
28
29 The fullwidth mode is turned on by typing \">>\", and turned off
30 by typing \"<<\".
31
32 The single fullwidth mode is turned on by typing \"Z\".  In this
33 mode, any key typed is converted to the fullwidth character and
34 is inserted, then the mode is turned off.
35 ")
36
37 (map
38  (fullwidth
39   (" " ? )  ("!" ?!)  ("\"" ?") ("#" ?#)
40   ("$" ("$¢£¥₩"))  ("%" ?%)  ("&" ?&)  ("'" ?')
41   ("(" ?\() (")" ?\)) ("*" ?*)  ("+" ?+)
42   ("," ?,)  ("-" ?-)  ("." ?.)  ("/" ?/)
43   ("0" ?0)  ("1" ?1)  ("2" ?2)  ("3" ?3)
44   ("4" ?4)  ("5" ?5)  ("6" ?6)  ("7" ?7)
45   ("8" ?8)  ("9" ?9)  (":" ?:)  (";" ?;)
46   ("<" ?<)  ("=" ?=)  (">" ?>)  ("?" ??)
47   ("@" ?@)  ("A" ?A)  ("B" ?B)  ("C" ?C)
48   ("D" ?D)  ("E" ?E)  ("F" ?F)  ("G" ?G)
49   ("H" ?H)  ("I" ?I)  ("J" ?J)  ("K" ?K)
50   ("L" ?L)  ("M" ?M)  ("N" ?N)  ("O" ?O)
51   ("P" ?P)  ("Q" ?Q)  ("R" ?R)  ("S" ?S)
52   ("T" ?T)  ("U" ?U)  ("V" ?V)  ("W" ?W)
53   ("X" ?X)  ("Y" ?Y)  ("Z" ?Z)  ("[" ?\[)
54   ("\\" ?\) ("]" ?\]) ("^" ?^)  ("_" ?_)
55   ("`" ?`)  ("a" ?a)  ("b" ?b)  ("c" ?c)
56   ("d" ?d)  ("e" ?e)  ("f" ?f)  ("g" ?g)
57   ("h" ?h)  ("i" ?i)  ("j" ?j)  ("k" ?k)
58   ("l" ?l)  ("m" ?m)  ("n" ?n)  ("o" ?o)
59   ("p" ?p)  ("q" ?q)  ("r" ?r)  ("s" ?s)
60   ("t" ?t)  ("u" ?u)  ("v" ?v)  ("w" ?w)
61   ("x" ?x)  ("y" ?y)  ("z" ?z)  ("{" ?\{)
62   ("|" ?|)  ("}" ?\}) ("~" ?~)
63
64   ((cent) ?¢)
65   ((sterling) ?£)
66   ((notsign) ?¬)
67   ((brokenbar) ?¦)
68   ((yen) ?¥)
69   ((Korean_Won) ?₩))
70
71  (enter-fullwidth-mode
72   (">>"))
73  (exit-fullwidth-mode
74   ("<<"))
75  (enter-single-fullwidth-mode
76   ("Z")))
77
78 (state
79  (fullwidth-mode
80   "A"
81   (fullwidth (commit))
82   (exit-fullwidth-mode (shift t))
83   (nil (unhandle)))
84
85  (single-fullwidth-mode
86   "A"
87   (fullwidth (commit) (shift t))))
88
89 ;; Local Variables:
90 ;; mode: lisp
91 ;; coding: utf-8
92 ;; End: