1 ;;; ethiopic.el --- support for Ethiopic -*- coding: utf-8-emacs; -*-
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
4 ;; Copyright (C) 1995, 2001, 2006
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)
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., 51 Franklin Street, Fifth Floor,
25 ;; Boston, MA 02110-1301, USA.
27 ;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
33 (define-ccl-program ccl-encode-ethio-font
35 ;; In: R0:ethiopic (not checked)
38 ;; Out: R1:font code point 1
39 ;; R2:font code point 2
47 ((r1 = #x13) (r2 -= 256))
48 ((r1 = #xfd) (r2 -= 208))
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)
59 (coding-system utf-8-emacs)
60 (coding-priority utf-8-emacs)
61 (input-method . "ethiopic")
65 "This language envrironment provides these function key bindings:
66 [f3] ethio-fidel-to-sera-buffer
67 [S-f3] ethio-fidel-to-sera-region
68 [C-f3] ethio-fidel-to-sera-marker
70 [f4] ethio-sera-to-fidel-buffer
71 [S-f4] ethio-sera-to-fidel-region
72 [C-f4] ethio-sera-to-fidel-marker
74 [S-f5] ethio-toggle-punctuation
75 [S-f6] ethio-modify-vowel
76 [S-f7] ethio-replace-space
78 [S-f9] ethio-replace-space
79 [C-f9] ethio-toggle-space"
82 ;; For automatic composition
83 (aset composition-function-table ? 'ethio-composition-function)
84 (aset composition-function-table ?፟ 'ethio-composition-function)
88 ;;; arch-tag: e81329d9-1286-43ba-92fd-54ce5c7b213c
89 ;;; ethiopic.el ends here