Mercurial > emacs
annotate lisp/language/ethiopic.el @ 22763:059f1c33af70
(read_process_output): Even if we read data without
code conversion, calculate character counts. If we insert the
data into a unibyte buffer, treat the data as unibyte.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 16 Jul 1998 00:14:44 +0000 |
parents | 64b8166a9747 |
children | 8543c4052dd2 |
rev | line source |
---|---|
17052 | 1 ;;; ethiopic.el --- Support for Ethiopic |
2 | |
3 ;; Copyright (C) 1995 Electrotechnical Laboratory, JAPAN. | |
18377
8b4a66c66dd6
Change copyright notice.
Richard M. Stallman <rms@gnu.org>
parents:
18309
diff
changeset
|
4 ;; Licensed to the Free Software Foundation. |
17052 | 5 |
6 ;; Keywords: multilingual, Ethiopic | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
17314
f438ebf1c679
Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents:
17299
diff
changeset
|
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
f438ebf1c679
Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents:
17299
diff
changeset
|
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
f438ebf1c679
Fix FSF address in comment.
Kenichi Handa <handa@m17n.org>
parents:
17299
diff
changeset
|
23 ;; Boston, MA 02111-1307, USA. |
17299 | 24 |
25 ;; Author: TAKAHASHI Naoto <ntakahas@etl.go.jp> | |
17052 | 26 |
27 ;;; Code: | |
28 | |
29 (define-ccl-program ccl-encode-ethio-font | |
30 '(0 | |
17299 | 31 ;; In: R0:ethiopic (not checked) |
17052 | 32 ;; R1:position code 1 |
33 ;; R2:position code 2 | |
34 ;; Out: R1:font code point 1 | |
35 ;; R2:font code point 2 | |
36 ((r1 -= 33) | |
37 (r2 -= 33) | |
38 (r1 *= 94) | |
39 (r2 += r1) | |
17299 | 40 (if (r2 < 256) |
41 (r1 = ?\x12) | |
42 (if (r2 < 448) | |
43 ((r1 = ?\x13) (r2 -= 256)) | |
44 ((r1 = ?\xfd) (r2 -= 208)) | |
45 )))) | |
19090
7d36a4bbe75e
(ccl-encode-ethio-font): Fix typo in doc-string.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
46 "CCL program to encode an Ethiopic code to code point of Ethiopic font.") |
17052 | 47 |
48 (setq font-ccl-encoder-alist | |
17299 | 49 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist)) |
17052 | 50 |
51 (set-language-info-alist | |
17772
550afdbb31d8
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17314
diff
changeset
|
52 "Ethiopic" '((setup-function . setup-ethiopic-environment) |
22518
64b8166a9747
Set `exit-function' of Ethiopic
Kenichi Handa <handa@m17n.org>
parents:
20744
diff
changeset
|
53 (exit-function . exit-ethiopic-environment) |
20744
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
54 (charset ethiopic) |
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
55 (coding-system iso-2022-7bit) |
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
56 (coding-priority iso-2022-7bit) |
17772
550afdbb31d8
Make functions setup-LANGUAGE-environment
Kenichi Handa <handa@m17n.org>
parents:
17314
diff
changeset
|
57 (sample-text . "$(3$O#U!.(B") |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17772
diff
changeset
|
58 (documentation . t))) |
17052 | 59 |
60 ;;; ethiopic.el ends here |