Mercurial > hg > xemacs-beta
annotate lisp/mule/lao.el @ 5940:c608d4b0b75e cygwin64 tip
rescue lost branch from 64bit.backup
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 16 Dec 2021 18:48:58 +0000 |
parents | 308d34e9f07d |
children |
rev | line source |
---|---|
778 | 1 ;;; lao.el --- support for Lao -*- coding: iso-2022-7bit; -*- |
771 | 2 |
3 ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
4 ;; Licensed to the Free Software Foundation. | |
5 | |
6 ;; Keywords: multilingual, Lao | |
7 | |
8 ;; This file is part of XEmacs. | |
9 | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
10 ;; XEmacs is free software: you can redistribute it and/or modify it |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
11 ;; under the terms of the GNU General Public License as published by the |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
12 ;; Free Software Foundation, either version 3 of the License, or (at your |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
13 ;; option) any later version. |
771 | 14 |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
15 ;; XEmacs is distributed in the hope that it will be useful, but WITHOUT |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
16 ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
17 ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
18 ;; for more details. |
771 | 19 |
20 ;; You should have received a copy of the GNU General Public License | |
5402
308d34e9f07d
Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents:
3970
diff
changeset
|
21 ;; along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
771 | 22 |
778 | 23 ;;; Synched up with: Emacs 21.1 (language/lao.el). |
24 | |
25 ;;; Commentary: | |
771 | 26 |
27 ;;; Code: | |
28 | |
778 | 29 ;; Lao script. |
30 ;; ISO10646's 0x0E80..0x0EDF are mapped to 0x20..0x7F. | |
31 (make-charset 'lao "Lao characters (ISO10646 0E80..0EDF)" | |
32 '(dimension | |
33 1 | |
3659 | 34 registries ["MuleLao-1"] |
778 | 35 chars 94 |
36 columns 1 | |
37 direction l2r | |
38 final ?1 | |
39 graphic 0 | |
40 short-name "Lao" | |
41 long-name "Lao" | |
42 )) | |
43 | |
771 | 44 ; (make-coding-system |
45 ; 'lao 2 ?L | |
46 ; "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)" | |
47 ; '(ascii lao nil nil | |
48 ; nil nil) | |
49 ; '((safe-charsets ascii lao))) | |
50 | |
51 (make-coding-system | |
52 'lao 'iso2022 "Lao" | |
53 '(charset-g0 ascii | |
54 charset-g1 lao | |
55 mnemonic "Lao" | |
56 safe-charsets (ascii lao) | |
57 documentation "8-bit encoding for ASCII (MSB=0) and LAO (MSB=1)")) | |
58 | |
59 (set-language-info-alist | |
60 "Lao" '((charset lao) | |
61 (coding-system lao) | |
62 (coding-priority lao) | |
3970 | 63 ;; (input-method . "lao") |
771 | 64 (nonascii-translation . lao) |
65 (unibyte-display . lao) | |
66 (features lao-util) | |
67 (documentation . t))) | |
68 | |
780 | 69 (put-char-table ?(1;(B t use-default-ascent) |
70 (put-char-table ?(1=(B t use-default-ascent) | |
71 (put-char-table ?(1?(B t use-default-ascent) | |
72 (put-char-table ?(1B(B t use-default-ascent) | |
73 (put-char-table ?(1\(B t ignore-relative-composition) | |
771 | 74 |
75 ;; Register a function to compose Lao characters. | |
778 | 76 (put-char-table 'lao |
77 '(("\\c0\\c9?\\(\\(\\c2\\|\\c3\\)\\c4?\\|\\c4\\)?" | |
78 . lao-composition-function)) | |
79 composition-function-table) | |
771 | 80 |
81 (provide 'lao) | |
82 | |
83 ;;; lao.el ends here |