Add arch taglines
[bpt/emacs.git] / lisp / language / ethiopic.el
CommitLineData
e8af40ee 1;;; ethiopic.el --- support for Ethiopic -*- coding: iso-2022-7bit; -*-
4ed46869 2
fc3dc40c 3;; Copyright (C) 1995, 2001 Electrotechnical Laboratory, JAPAN.
fa526c4a 4;; Licensed to the Free Software Foundation.
4ed46869
KH
5
6;; Keywords: multilingual, Ethiopic
7
8;; This file is part of GNU Emacs.
9
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)
13;; any later version.
14
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.
19
20;; You should have received a copy of the GNU General Public License
e803d6bd
KH
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.
60acfd15 24
fc3dc40c 25;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
4ed46869 26
e8af40ee
PJ
27;;; Commentary:
28
4ed46869
KH
29;;; Code:
30
31(define-ccl-program ccl-encode-ethio-font
32 '(0
60acfd15 33 ;; In: R0:ethiopic (not checked)
4ed46869
KH
34 ;; R1:position code 1
35 ;; R2:position code 2
36 ;; Out: R1:font code point 1
37 ;; R2:font code point 2
38 ((r1 -= 33)
39 (r2 -= 33)
40 (r1 *= 94)
41 (r2 += r1)
60acfd15
KH
42 (if (r2 < 256)
43 (r1 = ?\x12)
44 (if (r2 < 448)
45 ((r1 = ?\x13) (r2 -= 256))
46 ((r1 = ?\xfd) (r2 -= 208))
47 ))))
15e8ea5a 48 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
4ed46869
KH
49
50(setq font-ccl-encoder-alist
60acfd15 51 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
4ed46869 52
4ed46869 53(set-language-info-alist
a564ccf9 54 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
b3c357b6 55 (exit-function . exit-ethiopic-environment)
539c55ed
KH
56 (charset ethiopic)
57 (coding-system iso-2022-7bit)
58 (coding-priority iso-2022-7bit)
a564ccf9
KH
59 (input-method . "ethiopic")
60 (features ethio-util)
9afa6c35 61 (sample-text . "\e$(3$Q#U!.\e(B")
a1506d29 62 (documentation .
fc3dc40c
KH
63"This language envrironment provides these function key bindings
64 \(old bindings are shown in parentheses):
65 [f3] ethio-fidel-to-sera-buffer (f5)
66 [S-f3] ethio-fidel-to-sera-region (f5)
67 [C-f3] ethio-fidel-to-sera-mail-or-marker (f5)
68
69 [f4] ethio-sera-to-fidel-buffer (unchanged)
70 [S-f4] ethio-sera-to-fidel-region (unchanged)
71 [C-f4] ethio-sera-to-fidel-mail-or-marker (unchanged)
72
73 [S-f5] ethio-toggle-punctuation (f3)
74 [S-f6] ethio-modify-vowel (f6)
75 [S-f7] ethio-replace-space (f7)
76 [S-f8] ethio-input-special-character (f8)
77 [S-f9] ethio-replace-space (unchanged)
78 [C-f9] ethio-toggle-space (f2)"
79)))
4ed46869 80
41da80b1
DL
81(provide 'ethiopic)
82
ab5796a9 83;;; arch-tag: e81329d9-1286-43ba-92fd-54ce5c7b213c
4ed46869 84;;; ethiopic.el ends here