Mercurial > emacs
annotate lisp/language/ethiopic.el @ 42754:158482d8af9d
(Fplay_sound): Initialize header_size also for :data case.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Mon, 14 Jan 2002 14:37:17 +0000 |
parents | b174db545cfd |
children | 0d8b17d428b5 |
rev | line source |
---|---|
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36429
diff
changeset
|
1 ;;; ethiopic.el --- support for Ethiopic -*- coding: iso-2022-7bit; -*- |
17052 | 2 |
36429
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
3 ;; Copyright (C) 1995, 2001 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 |
36429
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
25 ;; Author: TAKAHASHI Naoto <ntakahas@m17n.org> |
17052 | 26 |
38436
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36429
diff
changeset
|
27 ;;; Commentary: |
b174db545cfd
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
36429
diff
changeset
|
28 |
17052 | 29 ;;; Code: |
30 | |
31 (define-ccl-program ccl-encode-ethio-font | |
32 '(0 | |
17299 | 33 ;; In: R0:ethiopic (not checked) |
17052 | 34 ;; R1:position code 1 |
35 ;; R2:position code 2 | |
36 ;; Out: R1:font code point 1 | |
37 ;; R2:font code point 2 | |
38 ((r1 -= 33) | |
39 (r2 -= 33) | |
40 (r1 *= 94) | |
41 (r2 += r1) | |
17299 | 42 (if (r2 < 256) |
43 (r1 = ?\x12) | |
44 (if (r2 < 448) | |
45 ((r1 = ?\x13) (r2 -= 256)) | |
46 ((r1 = ?\xfd) (r2 -= 208)) | |
47 )))) | |
19090
7d36a4bbe75e
(ccl-encode-ethio-font): Fix typo in doc-string.
Kenichi Handa <handa@m17n.org>
parents:
18377
diff
changeset
|
48 "CCL program to encode an Ethiopic code to code point of Ethiopic font.") |
17052 | 49 |
50 (setq font-ccl-encoder-alist | |
17299 | 51 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist)) |
17052 | 52 |
53 (set-language-info-alist | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22764
diff
changeset
|
54 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal) |
22518
64b8166a9747
Set `exit-function' of Ethiopic
Kenichi Handa <handa@m17n.org>
parents:
20744
diff
changeset
|
55 (exit-function . exit-ethiopic-environment) |
20744
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
56 (charset ethiopic) |
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
57 (coding-system iso-2022-7bit) |
48d79ef65489
Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents:
19090
diff
changeset
|
58 (coding-priority iso-2022-7bit) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22764
diff
changeset
|
59 (input-method . "ethiopic") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
22764
diff
changeset
|
60 (features ethio-util) |
22764
8543c4052dd2
("Ethiopic"): Typo in sample-text fixed.
Kenichi Handa <handa@m17n.org>
parents:
22518
diff
changeset
|
61 (sample-text . "$(3$Q#U!.(B") |
36429
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
62 (documentation . |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
63 "This language envrironment provides these function key bindings |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
64 \(old bindings are shown in parentheses): |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
65 [f3] ethio-fidel-to-sera-buffer (f5) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
66 [S-f3] ethio-fidel-to-sera-region (f5) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
67 [C-f3] ethio-fidel-to-sera-mail-or-marker (f5) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
68 |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
69 [f4] ethio-sera-to-fidel-buffer (unchanged) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
70 [S-f4] ethio-sera-to-fidel-region (unchanged) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
71 [C-f4] ethio-sera-to-fidel-mail-or-marker (unchanged) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
72 |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
73 [S-f5] ethio-toggle-punctuation (f3) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
74 [S-f6] ethio-modify-vowel (f6) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
75 [S-f7] ethio-replace-space (f7) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
76 [S-f8] ethio-input-special-character (f8) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
77 [S-f9] ethio-replace-space (unchanged) |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
78 [C-f9] ethio-toggle-space (f2)" |
1610938fcd8b
("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents:
33778
diff
changeset
|
79 ))) |
17052 | 80 |
33778 | 81 (provide 'ethiopic) |
82 | |
17052 | 83 ;;; ethiopic.el ends here |