Commit | Line | Data |
---|---|---|
0a10297a | 1 | ;;; lao.el --- support for Lao -*- coding: iso-2022-7bit; no-byte-compile: t -*- |
d92d0128 | 2 | |
eaa61218 KH |
3 | ;; Copyright (C) 2001 Free Software Foundation, Inc. |
4 | ;; Copyright (C) 1997, 1998, 1999, 2002 | |
5 | ;; National Institute of Advanced Industrial Science and Technology (AIST) | |
6 | ;; Registration Number H14PRO021 | |
d92d0128 KH |
7 | |
8 | ;; Keywords: multilingual, Lao | |
9 | ||
10 | ;; This file is part of GNU Emacs. | |
11 | ||
12 | ;; GNU Emacs is free software; you can redistribute it and/or modify | |
13 | ;; it under the terms of the GNU General Public License as published by | |
14 | ;; the Free Software Foundation; either version 2, or (at your option) | |
15 | ;; any later version. | |
16 | ||
17 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ;; GNU General Public License for more details. | |
21 | ||
22 | ;; You should have received a copy of the GNU General Public License | |
23 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
24 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
25 | ;; Boston, MA 02111-1307, USA. | |
26 | ||
60370d40 PJ |
27 | ;;; Commentary: |
28 | ||
d92d0128 KH |
29 | ;;; Code: |
30 | ||
31 | (make-coding-system | |
4b9121fc | 32 | 'lao 2 ?L |
5ef35063 | 33 | "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)." |
a79a3c79 | 34 | '(ascii lao nil nil |
8c181cf1 | 35 | nil nil nil nil nil nil nil nil nil nil nil t) |
10c9f8c2 DL |
36 | '((safe-charsets ascii lao) |
37 | (post-read-conversion . lao-post-read-conversion))) | |
d92d0128 | 38 | |
d92d0128 | 39 | (set-language-info-alist |
a564ccf9 | 40 | "Lao" '((charset lao) |
a79a3c79 KH |
41 | (coding-system lao) |
42 | (coding-priority lao) | |
a564ccf9 KH |
43 | (input-method . "lao") |
44 | (nonascii-translation . lao) | |
45 | (unibyte-display . lao) | |
46 | (features lao-util) | |
78eee0ed | 47 | (documentation . t))) |
d92d0128 KH |
48 | |
49 | (aset use-default-ascent ?\e(1;\e(B t) | |
10c9f8c2 | 50 | (aset use-default-ascent ?\e$,1D;\e(B t) |
d92d0128 | 51 | (aset use-default-ascent ?\e(1=\e(B t) |
10c9f8c2 | 52 | (aset use-default-ascent ?\e$,1D=\e(B t) |
d92d0128 | 53 | (aset use-default-ascent ?\e(1?\e(B t) |
10c9f8c2 | 54 | (aset use-default-ascent ?\e$,1D?\e(B t) |
d92d0128 | 55 | (aset use-default-ascent ?\e(1B\e(B t) |
10c9f8c2 | 56 | (aset use-default-ascent ?\e$,1DB\e(B t) |
b688d081 | 57 | (aset ignore-relative-composition ?\e(1\\e(B t) |
10c9f8c2 | 58 | (aset ignore-relative-composition ?\e$,1D\\e(B t) |
d92d0128 | 59 | |
86e2a803 | 60 | ;; Register a function to compose Lao characters. |
10c9f8c2 DL |
61 | (let ((patterns '(("\\c0\\c9?\\(\\(\\c2\\|\\c3\\)\\c4?\\|\\c4\\)?" |
62 | . lao-composition-function)))) | |
63 | (aset composition-function-table (make-char 'lao) patterns) | |
64 | (dotimes (i (1+ (- #xeff #xe80))) | |
65 | (aset composition-function-table (decode-char 'ucs (+ i #xe80)) patterns))) | |
86e2a803 | 66 | |
41da80b1 DL |
67 | (provide 'lao) |
68 | ||
ab5796a9 | 69 | ;;; arch-tag: ba540fd9-6352-4449-a9cd-669afd21fa57 |
d92d0128 | 70 | ;;; lao.el ends here |