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