Mercurial > emacs
annotate lisp/language/lao.el @ 91697:056e52861ec3
*** empty log message ***
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 09 Feb 2008 10:53:10 +0000 |
parents | 606f2d163a64 |
children | 008ecb0c705a |
rev | line source |
---|---|
47726
33d53d287ee4
Add "no-byte-compile: t" in first line.
Juanma Barranquero <lekktu@gmail.com>
parents:
42152
diff
changeset
|
1 ;;; lao.el --- support for Lao -*- coding: iso-2022-7bit; no-byte-compile: t -*- |
17083 | 2 |
79710
d82b84af645c
Add missing FSF copyright years.
Glenn Morris <rgm@gnu.org>
parents:
78309
diff
changeset
|
3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
d82b84af645c
Add missing FSF copyright years.
Glenn Morris <rgm@gnu.org>
parents:
78309
diff
changeset
|
4 ;; Free Software Foundation, Inc. |
d82b84af645c
Add missing FSF copyright years.
Glenn Morris <rgm@gnu.org>
parents:
78309
diff
changeset
|
5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
d82b84af645c
Add missing FSF copyright years.
Glenn Morris <rgm@gnu.org>
parents:
78309
diff
changeset
|
6 ;; 2007, 2008 |
62396 | 7 ;; National Institute of Advanced Industrial Science and Technology (AIST) |
8 ;; Registration Number H14PRO021 | |
89483 | 9 ;; Copyright (C) 2003 |
10 ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
11 ;; Registration Number H13PRO009 | |
17083 | 12 |
13 ;; Keywords: multilingual, Lao | |
14 | |
15 ;; This file is part of GNU Emacs. | |
16 | |
17 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
18 ;; it under the terms of the GNU General Public License as published by | |
78309
0938de05f510
Restore comma mistakenly removed in last change.
Glenn Morris <rgm@gnu.org>
parents:
78300
diff
changeset
|
19 ;; the Free Software Foundation; either version 3, or (at your option) |
17083 | 20 ;; any later version. |
21 | |
22 ;; GNU Emacs is distributed in the hope that it will be useful, | |
23 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
24 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
25 ;; GNU General Public License for more details. | |
26 | |
27 ;; You should have received a copy of the GNU General Public License | |
28 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
64085 | 29 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
30 ;; Boston, MA 02110-1301, USA. | |
17083 | 31 |
38414
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
32 ;;; Commentary: |
67b464da13ec
Some fixes to follow coding conventions.
Pavel Janík <Pavel@Janik.cz>
parents:
33778
diff
changeset
|
33 |
17083 | 34 ;;; Code: |
35 | |
88414
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
36 (define-coding-system 'lao |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
37 "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)." |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
38 :coding-type 'charset |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
39 :mnemonic ?L |
fad0f879877f
Call define-coding-system instead of make-coding-system. All CCL program deleted.
Kenichi Handa <handa@m17n.org>
parents:
42152
diff
changeset
|
40 :charset-list '(lao)) |
17083 | 41 |
42 (set-language-info-alist | |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
43 "Lao" '((charset lao) |
20739
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20156
diff
changeset
|
44 (coding-system lao) |
5f2c7f919bbf
Adjusted for the change of make-coding-system. Register
Kenichi Handa <handa@m17n.org>
parents:
20156
diff
changeset
|
45 (coding-priority lao) |
22983
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
46 (input-method . "lao") |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
47 (unibyte-display . lao) |
7a010b8c0d99
("LANUGAGE-ENVIRONMENT"): Delete property setup-function or change
Kenichi Handa <handa@m17n.org>
parents:
20739
diff
changeset
|
48 (features lao-util) |
17841
084d922fcd78
Coding system names changed as follows:
Kenichi Handa <handa@m17n.org>
parents:
17772
diff
changeset
|
49 (documentation . t))) |
17083 | 50 |
89299
a89011cf0b79
Register lao-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
88414
diff
changeset
|
51 ;; For automatic composition. |
91281
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
52 ;; (let ((chars "(1QTUVWXY[\hijklm(B")) |
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
53 ;; (dotimes (i (length chars)) |
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
54 ;; (aset composition-function-table (aref chars i) |
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
55 ;; 'lao-composition-function))) |
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
56 (set-char-table-range composition-function-table '(#xE80 . #xEDF) |
585e7f50637d
Register font-shape-text in composition-function-table.
Kenichi Handa <handa@m17n.org>
parents:
90996
diff
changeset
|
57 '(("[\xE80-\xEDF]+" . font-shape-text))) |
26893
78d4a8d767d5
Register lao-composition-function in
Kenichi Handa <handa@m17n.org>
parents:
23158
diff
changeset
|
58 |
33778 | 59 (provide 'lao) |
60 | |
52401 | 61 ;;; arch-tag: ba540fd9-6352-4449-a9cd-669afd21fa57 |
17083 | 62 ;;; lao.el ends here |