1 ;;; its/zenkau.el --- Zenkaku ASCII Input in Egg Input Method Architecture
3 ;; Copyright (C) 1999,2000 PFU LIMITED
5 ;; Author: KATAYAMA Yoshio <kate@pfu.co.jp>
7 ;; Maintainer: TOMURA Satoru <tomura@etl.go.jp>
9 ;; Keywords: mule, multilingual, input method
11 ;; This file is part of EGG.
13 ;; EGG is free software; you can redistribute it and/or modify
14 ;; it under the terms of the GNU General Public License as published by
15 ;; the Free Software Foundation; either version 2, or (at your option)
18 ;; EGG is distributed in the hope that it will be useful,
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;; GNU General Public License for more details.
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with GNU Emacs; see the file COPYING. If not, write to the
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
26 ;; Boston, MA 02111-1307, USA.
36 (define-its-state-machine its-zenkaku-up-map
37 "zenkaku-upcase" "
\e$B#A
\e(B" Japanese
38 "Map for zenkaku-upcase input."
40 (dolist (ascii '(("0" . "
\e$B#0
\e(B") ("1" . "
\e$B#1
\e(B") ("2" . "
\e$B#2
\e(B") ("3" . "
\e$B#3
\e(B")
41 ("4" . "
\e$B#4
\e(B") ("5" . "
\e$B#5
\e(B") ("6" . "
\e$B#6
\e(B") ("7" . "
\e$B#7
\e(B")
42 ("8" . "
\e$B#8
\e(B") ("9" . "
\e$B#9
\e(B")
43 (" " . "
\e$B!!
\e(B") ("!" . "
\e$B!*
\e(B") ("@" . "
\e$B!w
\e(B") ("#" . "
\e$B!t
\e(B")
44 ("$" . "
\e$B!p
\e(B") ("%" . "
\e$B!s
\e(B") ("^" . "
\e$B!0
\e(B") ("&" . "
\e$B!u
\e(B")
45 ("*" . "
\e$B!v
\e(B") ("(" . "
\e$B!J
\e(B") (")" . "
\e$B!K
\e(B")
46 ("-" . "
\e$B!]
\e(B") ("=" . "
\e$B!a
\e(B") ("`" . "
\e$B!.
\e(B") ("\\" . "
\e$B!@
\e(B")
47 ("|" . "
\e$B!C
\e(B") ("_" . "
\e$B!2
\e(B") ("+" . "
\e$B!\
\e(B") ("~" . "
\e$B!A
\e(B")
48 ("[" . "
\e$B!N
\e(B") ("]" . "
\e$B!O
\e(B") ("{" . "
\e$B!P
\e(B") ("}" . "
\e$B!Q
\e(B")
49 (":" . "
\e$B!'
\e(B") (";" . "
\e$B!(
\e(B") ("\"" . "
\e$B!I
\e(B") ("'" . "
\e$B!-
\e(B")
50 ("<" . "
\e$B!c
\e(B") (">" . "
\e$B!d
\e(B") ("?" . "
\e$B!)
\e(B") ("/" . "
\e$B!?
\e(B")
51 ("," . "
\e$B!$
\e(B") ("." . "
\e$B!%
\e(B")
52 ("a" . "
\e$B#A
\e(B") ("b" . "
\e$B#B
\e(B") ("c" . "
\e$B#C
\e(B") ("d" . "
\e$B#D
\e(B")
53 ("e" . "
\e$B#E
\e(B") ("f" . "
\e$B#F
\e(B") ("g" . "
\e$B#G
\e(B") ("h" . "
\e$B#H
\e(B")
54 ("i" . "
\e$B#I
\e(B") ("j" . "
\e$B#J
\e(B") ("k" . "
\e$B#K
\e(B") ("l" . "
\e$B#L
\e(B")
55 ("m" . "
\e$B#M
\e(B") ("n" . "
\e$B#N
\e(B") ("o" . "
\e$B#O
\e(B") ("p" . "
\e$B#P
\e(B")
56 ("q" . "
\e$B#Q
\e(B") ("r" . "
\e$B#R
\e(B") ("s" . "
\e$B#S
\e(B") ("t" . "
\e$B#T
\e(B")
57 ("u" . "
\e$B#U
\e(B") ("v" . "
\e$B#V
\e(B") ("w" . "
\e$B#W
\e(B") ("x" . "
\e$B#X
\e(B")
58 ("y" . "
\e$B#Y
\e(B") ("z" . "
\e$B#Z
\e(B")
59 ("A" . "
\e$B#A
\e(B") ("B" . "
\e$B#B
\e(B") ("C" . "
\e$B#C
\e(B") ("D" . "
\e$B#D
\e(B")
60 ("E" . "
\e$B#E
\e(B") ("F" . "
\e$B#F
\e(B") ("G" . "
\e$B#G
\e(B") ("H" . "
\e$B#H
\e(B")
61 ("I" . "
\e$B#I
\e(B") ("J" . "
\e$B#J
\e(B") ("K" . "
\e$B#K
\e(B") ("L" . "
\e$B#L
\e(B")
62 ("M" . "
\e$B#M
\e(B") ("N" . "
\e$B#N
\e(B") ("O" . "
\e$B#O
\e(B") ("P" . "
\e$B#P
\e(B")
63 ("Q" . "
\e$B#Q
\e(B") ("R" . "
\e$B#R
\e(B") ("S" . "
\e$B#S
\e(B") ("T" . "
\e$B#T
\e(B")
64 ("U" . "
\e$B#U
\e(B") ("V" . "
\e$B#V
\e(B") ("W" . "
\e$B#W
\e(B") ("X" . "
\e$B#X
\e(B")
65 ("Y" . "
\e$B#Y
\e(B") ("Z" . "
\e$B#Z
\e(B")))
66 (let ((in (car ascii)) (out (cdr ascii)))
67 (its-defrule in out))))
69 (define-its-state-machine-append its-zenkaku-up-map)
71 (define-its-state-machine its-zenkaku-down-map
72 "zenkaku-downcase" "
\e$B#a
\e(B" Japanese
73 "Map for zenkaku-downcase input."
75 (dolist (ascii '(("0" . "
\e$B#0
\e(B") ("1" . "
\e$B#1
\e(B") ("2" . "
\e$B#2
\e(B") ("3" . "
\e$B#3
\e(B")
76 ("4" . "
\e$B#4
\e(B") ("5" . "
\e$B#5
\e(B") ("6" . "
\e$B#6
\e(B") ("7" . "
\e$B#7
\e(B")
77 ("8" . "
\e$B#8
\e(B") ("9" . "
\e$B#9
\e(B")
78 (" " . "
\e$B!!
\e(B") ("!" . "
\e$B!*
\e(B") ("@" . "
\e$B!w
\e(B") ("#" . "
\e$B!t
\e(B")
79 ("$" . "
\e$B!p
\e(B") ("%" . "
\e$B!s
\e(B") ("^" . "
\e$B!0
\e(B") ("&" . "
\e$B!u
\e(B")
80 ("*" . "
\e$B!v
\e(B") ("(" . "
\e$B!J
\e(B") (")" . "
\e$B!K
\e(B")
81 ("-" . "
\e$B!]
\e(B") ("=" . "
\e$B!a
\e(B") ("`" . "
\e$B!.
\e(B") ("\\" . "
\e$B!@
\e(B")
82 ("|" . "
\e$B!C
\e(B") ("_" . "
\e$B!2
\e(B") ("+" . "
\e$B!\
\e(B") ("~" . "
\e$B!A
\e(B")
83 ("[" . "
\e$B!N
\e(B") ("]" . "
\e$B!O
\e(B") ("{" . "
\e$B!P
\e(B") ("}" . "
\e$B!Q
\e(B")
84 (":" . "
\e$B!'
\e(B") (";" . "
\e$B!(
\e(B") ("\"" . "
\e$B!I
\e(B") ("'" . "
\e$B!-
\e(B")
85 ("<" . "
\e$B!c
\e(B") (">" . "
\e$B!d
\e(B") ("?" . "
\e$B!)
\e(B") ("/" . "
\e$B!?
\e(B")
86 ("," . "
\e$B!$
\e(B") ("." . "
\e$B!%
\e(B")
87 ("a" . "
\e$B#a
\e(B") ("b" . "
\e$B#b
\e(B") ("c" . "
\e$B#c
\e(B") ("d" . "
\e$B#d
\e(B")
88 ("e" . "
\e$B#e
\e(B") ("f" . "
\e$B#f
\e(B") ("g" . "
\e$B#g
\e(B") ("h" . "
\e$B#h
\e(B")
89 ("i" . "
\e$B#i
\e(B") ("j" . "
\e$B#j
\e(B") ("k" . "
\e$B#k
\e(B") ("l" . "
\e$B#l
\e(B")
90 ("m" . "
\e$B#m
\e(B") ("n" . "
\e$B#n
\e(B") ("o" . "
\e$B#o
\e(B") ("p" . "
\e$B#p
\e(B")
91 ("q" . "
\e$B#q
\e(B") ("r" . "
\e$B#r
\e(B") ("s" . "
\e$B#s
\e(B") ("t" . "
\e$B#t
\e(B")
92 ("u" . "
\e$B#u
\e(B") ("v" . "
\e$B#v
\e(B") ("w" . "
\e$B#w
\e(B") ("x" . "
\e$B#x
\e(B")
93 ("y" . "
\e$B#y
\e(B") ("z" . "
\e$B#z
\e(B")
94 ("A" . "
\e$B#A
\e(B") ("B" . "
\e$B#B
\e(B") ("C" . "
\e$B#C
\e(B") ("D" . "
\e$B#D
\e(B")
95 ("E" . "
\e$B#E
\e(B") ("F" . "
\e$B#F
\e(B") ("G" . "
\e$B#G
\e(B") ("H" . "
\e$B#H
\e(B")
96 ("I" . "
\e$B#I
\e(B") ("J" . "
\e$B#J
\e(B") ("K" . "
\e$B#K
\e(B") ("L" . "
\e$B#L
\e(B")
97 ("M" . "
\e$B#M
\e(B") ("N" . "
\e$B#N
\e(B") ("O" . "
\e$B#O
\e(B") ("P" . "
\e$B#P
\e(B")
98 ("Q" . "
\e$B#Q
\e(B") ("R" . "
\e$B#R
\e(B") ("S" . "
\e$B#S
\e(B") ("T" . "
\e$B#T
\e(B")
99 ("U" . "
\e$B#U
\e(B") ("V" . "
\e$B#V
\e(B") ("W" . "
\e$B#W
\e(B") ("X" . "
\e$B#X
\e(B")
100 ("Y" . "
\e$B#Y
\e(B") ("Z" . "
\e$B#Z
\e(B")))
101 (let ((in (car ascii)) (out (cdr ascii)))
102 (its-defrule in out))))
104 (define-its-state-machine-append its-zenkaku-down-map)
106 (provide 'its/zenkaku)