Mercurial > hg > xemacs-beta
comparison lisp/language/lao.el @ 159:3bb7ccffb0c0 r20-3b6
Import from CVS: tag r20-3b6
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:41:43 +0200 |
parents | |
children | acd284d43ca1 |
comparison
equal
deleted
inserted
replaced
158:558dfa75ffb3 | 159:3bb7ccffb0c0 |
---|---|
1 ;;; lao.el --- Support for Lao | |
2 | |
3 ;; Copyright (C) 1997 Free Software Foundation, Inc. | |
4 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
5 | |
6 ;; Keywords: multilingual, Lao | |
7 | |
8 ;; This file is part of GNU Emacs. | |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
23 ;; Boston, MA 02111-1307, USA. | |
24 | |
25 ;;; Code: | |
26 | |
27 (make-coding-system | |
28 'lao 2 ?T | |
29 "Coding-system used for ASCII(MSB=0) & LAO(MSB=1)." | |
30 '((ascii t) (lao t) nil nil | |
31 nil ascii-eol)) | |
32 | |
33 (register-input-method | |
34 "Lao" '("quail-lao" quail-use-package "quail/lao")) | |
35 | |
36 (register-input-method | |
37 "Lao" '("quail-lrt" quail-use-package "quail/lrt")) | |
38 | |
39 (defun setup-lao-environment () | |
40 "Setup multilingual environment (MULE) for Lao." | |
41 (interactive) | |
42 (setup-english-environment) | |
43 (setq coding-category-iso-8-1 'lao) | |
44 | |
45 (set-coding-priority | |
46 '(coding-category-iso-7 | |
47 coding-category-iso-8-1)) | |
48 | |
49 (set-default buffer-file-coding-system 'iso-2022-7) | |
50 | |
51 (setq default-input-method '("Lao" . "quail-lao"))) | |
52 | |
53 (defun describe-lao-support () | |
54 "Describe how Emacs supports Lao." | |
55 (interactive) | |
56 (describe-language-support-internal "Lao")) | |
57 | |
58 (set-language-info-alist | |
59 "Lao" '((setup-function . setup-lao-environment) | |
60 (describe-function . describe-lao-support) | |
61 (charset . (lao)) | |
62 (coding-system . (lao)) | |
63 (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B") | |
64 (documentation . nil))) | |
65 | |
66 (aset use-default-ascent ?(1;(B t) | |
67 (aset use-default-ascent ?(1=(B t) | |
68 (aset use-default-ascent ?(1?(B t) | |
69 (aset use-default-ascent ?(1B(B t) | |
70 | |
71 ;;; lao.el ends here |