(latexenc-find-file-coding-system): Don't inherit the EOL part of the
[emacs.git] / lisp / language / ethiopic.el
blobb5e4299e907120e70228b6dd6092b82ae4013abf
1 ;;; ethiopic.el --- support for Ethiopic -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 2001
5 ;; National Institute of Advanced Industrial Science and Technology (AIST)
6 ;; Registration Number H14PRO021
8 ;; Keywords: multilingual, Ethiopic
10 ;; This file is part of GNU Emacs.
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 2, or (at your option)
15 ;; any later version.
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
27 ;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
29 ;;; Commentary:
31 ;;; Code:
33 (define-ccl-program ccl-encode-ethio-font
34 '(0
35 ;; In: R0:ethiopic (not checked)
36 ;; R1:position code 1
37 ;; R2:position code 2
38 ;; Out: R1:font code point 1
39 ;; R2:font code point 2
40 ((r1 -= 33)
41 (r2 -= 33)
42 (r1 *= 94)
43 (r2 += r1)
44 (if (r2 < 256)
45 (r1 = ?\x12)
46 (if (r2 < 448)
47 ((r1 = ?\x13) (r2 -= 256))
48 ((r1 = ?\xfd) (r2 -= 208))
49 ))))
50 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
52 (setq font-ccl-encoder-alist
53 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
55 (set-language-info-alist
56 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
57 (exit-function . exit-ethiopic-environment)
58 (charset ethiopic)
59 (coding-system iso-2022-7bit)
60 (coding-priority iso-2022-7bit)
61 (input-method . "ethiopic")
62 (features ethio-util)
63 (sample-text . "\e$(3$Q#U!.\e(B")
64 (documentation .
65 "This language envrironment provides these function key bindings
66 \(old bindings are shown in parentheses):
67 [f3] ethio-fidel-to-sera-buffer (f5)
68 [S-f3] ethio-fidel-to-sera-region (f5)
69 [C-f3] ethio-fidel-to-sera-mail-or-marker (f5)
71 [f4] ethio-sera-to-fidel-buffer (unchanged)
72 [S-f4] ethio-sera-to-fidel-region (unchanged)
73 [C-f4] ethio-sera-to-fidel-mail-or-marker (unchanged)
75 [S-f5] ethio-toggle-punctuation (f3)
76 [S-f6] ethio-modify-vowel (f6)
77 [S-f7] ethio-replace-space (f7)
78 [S-f8] ethio-input-special-character (f8)
79 [S-f9] ethio-replace-space (unchanged)
80 [C-f9] ethio-toggle-space (f2)"
81 )))
83 (provide 'ethiopic)
85 ;;; arch-tag: e81329d9-1286-43ba-92fd-54ce5c7b213c
86 ;;; ethiopic.el ends here