egg4r000
[elisp/tamago.git] / its / ascii.el
1 ;;; its/ascii.el --- ASCII Input in Egg Input Method Architecture
2
3 ;; Copyright (C) 1999,2000 PFU LIMITED
4
5 ;; Author: KATAYAMA Yoshio <kate@pfu.co.jp>
6
7 ;; Maintainer: TOMURA Satoru <tomura@etl.go.jp>
8
9 ;; Keywords: mule, multilingual, input method
10
11 ;; This file is part of EGG.
12
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)
16 ;; any later version.
17
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.
22
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.
27
28 ;;; Commentary:
29 ;;
30 ;; Symbol input is desined by jiro@math.keio.ac.jp (TANAKA Jiro)
31 ;; This file is based on the rules of its/hira.el in Mule-2.3 distribution.
32 ;;
33
34 ;;; Code:
35
36 (eval-when-compile
37   (require 'its))
38
39 (define-its-state-machine its-up-map
40   "upcase" "aA" nil
41   "Map for upcase input."
42
43   (let ((i ? ))
44     (while (<= i ?~)
45       (its-defrule (char-to-string i) (upcase (char-to-string i)))
46       (setq i (1+ i)))))
47
48 (define-its-state-machine-append its-up-map)
49
50 (define-its-state-machine its-down-map
51   "downcase" "aa" nil
52   "Map for downcase input."
53
54   (let ((i ? ))
55     (while (<= i ?~)
56       (its-defrule (char-to-string i) (char-to-string i))
57       (setq i (1+ i)))))
58
59 (define-its-state-machine-append its-down-map)
60
61 (provide 'its/ascii)