annotate lisp/mule/ethiopic.el @ 353:3b3709405255 r21-1-6

Import from CVS: tag r21-1-6
author cvs
date Mon, 13 Aug 2007 10:55:33 +0200
parents
children 697ef44129c6 576fb035e263
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
353
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
1 ;;; ethiopic.el --- Support for Ethiopic -*- coding: iso-2022-7bit; -*-
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
2
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
3 ;; Copyright (C) 1995,1999 Electrotechnical Laboratory, JAPAN.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
4 ;; Licensed to the Free Software Foundation.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
5 ;; Copyright (C) 1997 MORIOKA Tomohiko
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
6
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
7 ;; Keywords: multilingual, Ethiopic
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
8
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
9 ;; This file is part of XEmacs.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
10
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
11 ;; XEmacs is free software; you can redistribute it and/or modify it
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
12 ;; under the terms of the GNU General Public License as published by
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
13 ;; the Free Software Foundation; either version 2, or (at your option)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
14 ;; any later version.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
15
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
16 ;; XEmacs is distributed in the hope that it will be useful, but
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
17 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
19 ;; General Public License for more details.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
20
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
21 ;; You should have received a copy of the GNU General Public License
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
22 ;; along with XEmacs; see the file COPYING. If not, write to the Free
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
23 ;; Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
24 ;; 02111-1307, USA.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
25
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
26 ;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp>
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
27 ;; modified by MORIOKA Tomohiko <morioka@jaist.ac.jp> for XEmacs.
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
28
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
29 ;;; Code:
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
30
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
31 ;; Ethiopic
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
32 (make-charset 'ethiopic "Ethiopic"
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
33 '(registry "Ethio"
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
34 dimension 2
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
35 chars 94
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
36 final ?3
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
37 graphic 0
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
38 ))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
39
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
40 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
41 ;;; ETHIOPIC
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
42 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
43
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
44 (define-category ?E "Ethiopic (Ge'ez) character.")
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
45 (modify-category-entry 'ethiopic ?E)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
46
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
47 (define-ccl-program ccl-encode-ethio-font
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
48 '(0
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
49 ;; In: R0:ethiopic (not checked)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
50 ;; R1:position code 1
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
51 ;; R2:position code 2
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
52 ;; Out: R1:font code point 1
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
53 ;; R2:font code point 2
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
54 ((r1 -= 33)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
55 (r2 -= 33)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
56 (r1 *= 94)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
57 (r2 += r1)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
58 (if (r2 < 256)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
59 (r1 = ?\x12)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
60 (if (r2 < 448)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
61 ((r1 = ?\x13) (r2 -= 256))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
62 ((r1 = ?\xfd) (r2 -= 208))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
63 ))))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
64 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
65
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
66 ;; (setq font-ccl-encoder-alist
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
67 ;; (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
68 (set-charset-ccl-program 'ethiopic ccl-encode-ethio-font)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
69
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
70 (set-language-info-alist
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
71 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
72 (exit-function . exit-ethiopic-environment)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
73 (charset ethiopic)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
74 (coding-system iso-2022-7bit)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
75 (coding-priority iso-2022-7bit)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
76 (input-method . "ethiopic")
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
77 (features ethio-util)
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
78 (sample-text . "$(3$Q#U!.(B")
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
79 (documentation . t)))
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
80
3b3709405255 Import from CVS: tag r21-1-6
cvs
parents:
diff changeset
81 ;;; ethiopic.el ends here