annotate lisp/language/ethiopic.el @ 90515:83058d9ed764

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Mon, 03 Jul 2006 03:50:08 +0000
parents d3b6ae880dce
children 6588c6259dfb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
1 ;;; ethiopic.el --- support for Ethiopic -*- coding: utf-8-emacs; -*-
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
62396
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
3 ;; Copyright (C) 1997 Free Software Foundation, Inc.
90281
d3b6ae880dce Copyright fixed.
Kenichi Handa <handa@m17n.org>
parents: 90200
diff changeset
4 ;; Copyright (C) 1995, 2001, 2006
62396
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
5 ;; National Institute of Advanced Industrial Science and Technology (AIST)
197607499a29 Fix copyrights.
Kenichi Handa <handa@m17n.org>
parents: 52401
diff changeset
6 ;; Registration Number H14PRO021
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
7
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8 ;; Keywords: multilingual, Ethiopic
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
9
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
10 ;; This file is part of GNU Emacs.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
11
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
12 ;; GNU Emacs is free software; you can redistribute it and/or modify
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13 ;; it under the terms of the GNU General Public License as published by
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
14 ;; the Free Software Foundation; either version 2, or (at your option)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
15 ;; any later version.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
16
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
17 ;; GNU Emacs is distributed in the hope that it will be useful,
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
20 ;; GNU General Public License for more details.
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
21
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22 ;; 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
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
64085
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 62396
diff changeset
24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 62396
diff changeset
25 ;; Boston, MA 02110-1301, USA.
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
26
36429
1610938fcd8b ("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents: 33778
diff changeset
27 ;; Author: TAKAHASHI Naoto <ntakahas@m17n.org>
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
28
38436
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 36429
diff changeset
29 ;;; Commentary:
b174db545cfd Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents: 36429
diff changeset
30
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
31 ;;; Code:
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
32
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
33 (define-ccl-program ccl-encode-ethio-font
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
34 '(0
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
35 ;; In: R0:ethiopic (not checked)
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
36 ;; R1:position code 1
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
37 ;; R2:position code 2
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
38 ;; Out: R1:font code point 1
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
39 ;; R2:font code point 2
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
40 ((r1 -= 33)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
41 (r2 -= 33)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
42 (r1 *= 94)
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
43 (r2 += r1)
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
44 (if (r2 < 256)
90281
d3b6ae880dce Copyright fixed.
Kenichi Handa <handa@m17n.org>
parents: 90200
diff changeset
45 (r1 = #x12)
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
46 (if (r2 < 448)
90281
d3b6ae880dce Copyright fixed.
Kenichi Handa <handa@m17n.org>
parents: 90200
diff changeset
47 ((r1 = #x13) (r2 -= 256))
d3b6ae880dce Copyright fixed.
Kenichi Handa <handa@m17n.org>
parents: 90200
diff changeset
48 ((r1 = #xfd) (r2 -= 208))
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
49 ))))
19090
7d36a4bbe75e (ccl-encode-ethio-font): Fix typo in doc-string.
Kenichi Handa <handa@m17n.org>
parents: 18377
diff changeset
50 "CCL program to encode an Ethiopic code to code point of Ethiopic font.")
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
51
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
52 (setq font-ccl-encoder-alist
17299
1d2c8b8a2875 Completely updated.
Kenichi Handa <handa@m17n.org>
parents: 17071
diff changeset
53 (cons (cons "ethiopic" ccl-encode-ethio-font) font-ccl-encoder-alist))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
54
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
55 (set-language-info-alist
22983
7a010b8c0d99 ("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents: 22764
diff changeset
56 "Ethiopic" '((setup-function . setup-ethiopic-environment-internal)
22518
64b8166a9747 Set `exit-function' of Ethiopic
Kenichi Handa <handa@m17n.org>
parents: 20744
diff changeset
57 (exit-function . exit-ethiopic-environment)
20744
48d79ef65489 Register coding-priority key in
Kenichi Handa <handa@m17n.org>
parents: 19090
diff changeset
58 (charset ethiopic)
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
59 (coding-system utf-8-emacs)
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
60 (coding-priority utf-8-emacs)
22983
7a010b8c0d99 ("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents: 22764
diff changeset
61 (input-method . "ethiopic")
7a010b8c0d99 ("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents: 22764
diff changeset
62 (features ethio-util)
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
63 (sample-text . "ፊደል")
49598
0d8b17d428b5 Trailing whitepace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 38436
diff changeset
64 (documentation .
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
65 "This language envrironment provides these function key bindings:
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
66 [f3] ethio-fidel-to-sera-buffer
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
67 [S-f3] ethio-fidel-to-sera-region
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
68 [C-f3] ethio-fidel-to-sera-marker
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
69
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
70 [f4] ethio-sera-to-fidel-buffer
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
71 [S-f4] ethio-sera-to-fidel-region
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
72 [C-f4] ethio-sera-to-fidel-marker
36429
1610938fcd8b ("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents: 33778
diff changeset
73
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
74 [S-f5] ethio-toggle-punctuation
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
75 [S-f6] ethio-modify-vowel
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
76 [S-f7] ethio-replace-space
36429
1610938fcd8b ("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents: 33778
diff changeset
77
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
78 [S-f9] ethio-replace-space
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
79 [C-f9] ethio-toggle-space"
36429
1610938fcd8b ("Ethiopic"): Add documentation.
Kenichi Handa <handa@m17n.org>
parents: 33778
diff changeset
80 )))
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
81
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
82 ;; For automatic composition
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
83 (aset composition-function-table ? 'ethio-composition-function)
90281
d3b6ae880dce Copyright fixed.
Kenichi Handa <handa@m17n.org>
parents: 90200
diff changeset
84 (aset composition-function-table ?፟ 'ethio-composition-function)
90123
b34d1b1795af Encoding changed to utf-8-emacs.
Kenichi Handa <handa@m17n.org>
parents: 89909
diff changeset
85
33778
6d966e8b4bbe Use provide.
Dave Love <fx@gnu.org>
parents: 23158
diff changeset
86 (provide 'ethiopic)
6d966e8b4bbe Use provide.
Dave Love <fx@gnu.org>
parents: 23158
diff changeset
87
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49598
diff changeset
88 ;;; arch-tag: e81329d9-1286-43ba-92fd-54ce5c7b213c
17052
d0d7b244b1d0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
89 ;;; ethiopic.el ends here