OSDN Git Service

release 5.0.6.0, fixed FSF address (#34859) and Maintainer lines (#34862)
[tamago-tsunagi/tamago-tsunagi.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 ;; Keywords: mule, multilingual, input method
8
9 ;; This file is part of EGG.
10
11 ;; EGG is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
14 ;; any later version.
15
16 ;; EGG is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 ;; GNU General Public License for more details.
20
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
23 ;; Free Software Foundation, Inc.,
24 ;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25
26 ;;; Commentary:
27
28
29 ;;; Code:
30
31 (eval-when-compile
32   (require 'its))
33
34 (define-its-state-machine its-up-map
35   "upcase" "aA" nil
36   "Map for upcase input."
37
38   (let ((i ? ))
39     (while (<= i ?~)
40       (its-defrule (char-to-string i) (upcase (char-to-string i)))
41       (setq i (1+ i)))))
42
43 (define-its-state-machine-append its-up-map)
44
45 (define-its-state-machine its-down-map
46   "downcase" "aa" nil
47   "Map for downcase input."
48
49   (let ((i ? ))
50     (while (<= i ?~)
51       (its-defrule (char-to-string i) (char-to-string i))
52       (setq i (1+ i)))))
53
54 (define-its-state-machine-append its-down-map)
55
56 (provide 'its/ascii)