tamago:00516
[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
31 ;;; Code:
32
33 (eval-when-compile
34   (require 'its))
35
36 (define-its-state-machine its-up-map
37   "upcase" "aA" nil
38   "Map for upcase input."
39
40   (let ((i ? ))
41     (while (<= i ?~)
42       (its-defrule (char-to-string i) (upcase (char-to-string i)))
43       (setq i (1+ i)))))
44
45 (define-its-state-machine-append its-up-map)
46
47 (define-its-state-machine its-down-map
48   "downcase" "aa" nil
49   "Map for downcase input."
50
51   (let ((i ? ))
52     (while (<= i ?~)
53       (its-defrule (char-to-string i) (char-to-string i))
54       (setq i (1+ i)))))
55
56 (define-its-state-machine-append its-down-map)
57
58 (provide 'its/ascii)