70
|
1 ;;; ethiopic-hooks.el --- pre-loaded support for Ethiopic.
|
|
2
|
|
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Amdahl Corporation.
|
|
5 ;; Copyright (C) 1995 Sun Microsystems.
|
|
6
|
|
7 ;; This file is part of XEmacs.
|
|
8
|
|
9 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
10 ;; under the terms of the GNU General Public License as published by
|
|
11 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
12 ;; any later version.
|
|
13
|
|
14 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17 ;; General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
|
20 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 ;; Boston, MA 02111-1307, USA.
|
|
23
|
|
24 ;;; Synched up with: Mule 2.3.
|
|
25
|
|
26 ;; Ethiopic
|
|
27 (make-charset 'ethiopic "Ethiopic"
|
|
28 '(registry "Ethio"
|
|
29 dimension 2
|
|
30 chars 94
|
|
31 final ?2
|
|
32 graphic 0
|
|
33 ))
|
|
34
|
|
35
|
|
36
|
|
37
|
|
38 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
39 ;;; ETHIOPIC
|
|
40 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
41
|
|
42 (define-category ?E "Ethiopic (Ge'ez) character.")
|
|
43 (modify-category-entry 'ethiopic ?E)
|
|
44
|
|
45 (define-ccl-program ccl-ethiopic
|
|
46 '(((r0 -= #x21)
|
|
47 (r1 -= #x21)
|
|
48 (r0 *= 94)
|
|
49 (r1 += r0)
|
|
50 (if (r1 < 256) (r0 = 0) ((r1 -= 256) (r0 = 1))))))
|
|
51
|
|
52 (set-charset-ccl-program 'ethiopic ccl-ethiopic)
|
|
53
|
138
|
54 (add-hook 'quail-package-alist '("ethio" "quail-ethio"))
|
70
|
55
|
|
56 (define-language-environment 'ethiopic
|
|
57 "Ethiopic"
|
|
58 #'(lambda ()
|
|
59 (setq-default quail-current-package
|
|
60 (assoc "ethio" quail-package-alist))))
|