]> code.delx.au - gnu-emacs/blob - lisp/language/lao.el
Merge from emacs--devo--0
[gnu-emacs] / lisp / language / lao.el
1 ;;; lao.el --- support for Lao -*- coding: iso-2022-7bit; no-byte-compile: t -*-
2
3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4 ;; Free Software Foundation, Inc.
5 ;; Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
6 ;; 2007, 2008
7 ;; National Institute of Advanced Industrial Science and Technology (AIST)
8 ;; Registration Number H14PRO021
9 ;; Copyright (C) 2003
10 ;; National Institute of Advanced Industrial Science and Technology (AIST)
11 ;; Registration Number H13PRO009
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
19 ;; the Free Software Foundation; either version 3, or (at your option)
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
29 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
30 ;; Boston, MA 02110-1301, USA.
31
32 ;;; Commentary:
33
34 ;;; Code:
35
36 (define-coding-system 'lao
37 "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)."
38 :coding-type 'charset
39 :mnemonic ?L
40 :charset-list '(lao))
41
42 (set-language-info-alist
43 "Lao" '((charset lao)
44 (coding-system lao)
45 (coding-priority lao)
46 (input-method . "lao")
47 (unibyte-display . lao)
48 (features lao-util)
49 (documentation . t)))
50
51 ;; For automatic composition.
52 ;; (let ((chars "\e(1QTUVWXY[\hijklm\e(B"))
53 ;; (dotimes (i (length chars))
54 ;; (aset composition-function-table (aref chars i)
55 ;; 'lao-composition-function)))
56 (set-char-table-range composition-function-table '(#xE80 . #xEDF)
57 '(("[\xE80-\xEDF]+" . font-shape-text)))
58
59 (provide 'lao)
60
61 ;;; arch-tag: ba540fd9-6352-4449-a9cd-669afd21fa57
62 ;;; lao.el ends here