1 ;;; ethiopic.el --- Support for Ethiopic -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1995, 2001 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
6 ;; Keywords: multilingual, Ethiopic
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 ;; Boston, MA 02111-1307, USA.
25 ;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
29 (define-ccl-program ccl-encode-ethio-font
31 ;; In: R0:ethiopic (not checked)
34 ;; Out: R1:font code point 1
35 ;; R2:font code point 2
43 ((r1 = ?\x13) (r2 -= 256))
44 ((r1 = ?\xfd) (r2 -= 208))
46 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
48 (setq font-ccl-encoder-alist
49 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
51 (set-language-info-alist
52 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
53 (exit-function . exit-ethiopic-environment)
55 (coding-system iso-2022-7bit)
56 (coding-priority iso-2022-7bit)
57 (input-method . "ethiopic")
59 (sample-text . "
\e$(3$Q#U!.
\e(B")
61 "This language envrironment provides these function key bindings
62 \(old bindings are shown in parentheses):
63 [f3] ethio-fidel-to-sera-buffer (f5)
64 [S-f3] ethio-fidel-to-sera-region (f5)
65 [C-f3] ethio-fidel-to-sera-mail-or-marker (f5)
67 [f4] ethio-sera-to-fidel-buffer (unchanged)
68 [S-f4] ethio-sera-to-fidel-region (unchanged)
69 [C-f4] ethio-sera-to-fidel-mail-or-marker (unchanged)
71 [S-f5] ethio-toggle-punctuation (f3)
72 [S-f6] ethio-modify-vowel (f6)
73 [S-f7] ethio-replace-space (f7)
74 [S-f8] ethio-input-special-character (f8)
75 [S-f9] ethio-replace-space (unchanged)
76 [C-f9] ethio-toggle-space (f2)"
81 ;;; ethiopic.el ends here