1 ;;; ethiopic.el --- Support for Ethiopic -*- coding: iso-2022-7bit; -*-
3 ;; Copyright (C) 1995,1999 Electrotechnical Laboratory, JAPAN.
4 ;; Licensed to the Free Software Foundation.
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
7 ;; Keywords: multilingual, Ethiopic
9 ;; This file is part of XEmacs.
11 ;; XEmacs is free software; you can redistribute it and/or modify it
12 ;; under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; XEmacs is distributed in the hope that it will be useful, but
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ;; General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 ;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp>
27 ;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> for XEmacs.
31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
33 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
35 (define-category ?E "Ethiopic (Ge'ez) character.")
36 (modify-category-entry 'ethiopic ?E)
38 (define-ccl-program ccl-encode-ethio-font
40 ;; In: R0:ethiopic (not checked)
43 ;; Out: R1:font code point 1
44 ;; R2:font code point 2
52 ((r1 = ?\x13) (r2 -= 256))
53 ((r1 = ?\xfd) (r2 -= 208))
55 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
57 ;; (setq font-ccl-encoder-alist
58 ;; (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
59 (set-charset-ccl-program 'ethiopic 'ccl-encode-ethio-font)
61 (set-language-info-alist
62 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
63 (exit-function . exit-ethiopic-environment)
65 (coding-system iso-2022-7bit)
66 (coding-priority iso-2022-7bit)
67 (input-method . "ethiopic")
69 (sample-text . "
\e$(3$Q#U!.
\e(B")
72 ;;; ethiopic.el ends here