diff options
| author | Kenichi Handa | 1997-02-26 12:22:56 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-02-26 12:22:56 +0000 |
| commit | d92d01280179237ea7237163eba527bcd0d19266 (patch) | |
| tree | d3f1d18005a47379344d9fdf6279874f49a7159f | |
| parent | 433b28ce19fb3c7c54d3cfae1bcc398e63187f00 (diff) | |
| download | emacs-d92d01280179237ea7237163eba527bcd0d19266.tar.gz emacs-d92d01280179237ea7237163eba527bcd0d19266.zip | |
Initial revision
| -rw-r--r-- | lisp/language/lao-util.el | 133 | ||||
| -rw-r--r-- | lisp/language/lao.el | 62 |
2 files changed, 195 insertions, 0 deletions
diff --git a/lisp/language/lao-util.el b/lisp/language/lao-util.el new file mode 100644 index 00000000000..d354f534ad4 --- /dev/null +++ b/lisp/language/lao-util.el | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | ;; lao-util.el -- utilities 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 | (let ((l '((?(1!(B consonant "LETTER KOR KAI'" "CHICKEN") | ||
| 28 | (?(1"(B consonant "LETTER KHOR KHAI'" "EGG") | ||
| 29 | (?(1#(B invalid nil) | ||
| 30 | (?(1$(B consonant "LETTER QHOR QHWARGN" "BUFFALO") | ||
| 31 | (?(1%(B invalid nil) | ||
| 32 | (? invalid nil) | ||
| 33 | (?(1'(B consonant "LETTER NGOR NGUU" "SNAKE") | ||
| 34 | (?(1((B consonant "LETTER JOR JUA" "BUDDHIST NOVICE") | ||
| 35 | (?(1)(B invalid nil) | ||
| 36 | (?(1*(B consonant "LETTER XOR X\"ARNG" "ELEPHANT") | ||
| 37 | (?(1+(B invalid nil) | ||
| 38 | (?(1,(B invalid nil) | ||
| 39 | (?(1-(B consonant "LETTER YOR YUNG" "MOSQUITO") | ||
| 40 | (?(1.(B invalid nil) | ||
| 41 | (?(1.(B invalid nil) | ||
| 42 | (?(1.(B invalid nil) | ||
| 43 | (?(1.(B invalid nil) | ||
| 44 | (?(1.(B invalid nil) | ||
| 45 | (?(1.(B invalid nil) | ||
| 46 | (?(14(B consonant "LETTER DOR DANG" "NOSE") | ||
| 47 | (?(15(B consonant "LETTER TOR TAR" "EYE") | ||
| 48 | (?(16(B consonant "LETTER DHOR DHARM" "TO ASK,QUESTION") | ||
| 49 | (?(17(B consonant "LETTER THOR THUNG" "FLAG") | ||
| 50 | (?(18(B invalid nil) | ||
| 51 | (?(19(B consonant "LETTER NOR NOK" "BIRD") | ||
| 52 | (?(1:(B consonant "LETTER BOR BED" "FISHHOOK") | ||
| 53 | (?(1;(B consonant "LETTER POR PAR" "FISH") | ||
| 54 | (?(1<(B consonant "LETTER HPOR HPER\"" "BEE") | ||
| 55 | (?(1=(B consonant "LETTER FHOR FHAR" "WALL") | ||
| 56 | (?(1>(B consonant "LETTER PHOR PHUU" "MOUNTAIN") | ||
| 57 | (?(1?(B consonant "LETTER FOR FAI" "FIRE") | ||
| 58 | (?(1@(B invalid nil) | ||
| 59 | (?(1A(B consonant "LETTER MOR MAR\"" "HORSE") | ||
| 60 | (?(1B(B consonant "LETTER GNOR GNAR" "MEDICINE") | ||
| 61 | (?(1C(B consonant "LETTER ROR ROD" "CAR") | ||
| 62 | (?(1D(B invalid nil) | ||
| 63 | (?(1E(B consonant "LETTER LOR LIING" "MONKEY") | ||
| 64 | (?(1F(B invalid nil) | ||
| 65 | (?(1G(B consonant "LETTER WOR WII" "HAND FAN") | ||
| 66 | (?(1H(B invalid nil) | ||
| 67 | (?(1I(B invalid nil) | ||
| 68 | (?(1J(B consonant "LETTER SOR SEA" "TIGER") | ||
| 69 | (?(1K(B consonant "LETTER HHOR HHAI" "JAR") | ||
| 70 | (?(1L(B invalid nil) | ||
| 71 | (?(1M(B consonant "LETTER OR OOW" "TAKE") | ||
| 72 | (?(1N(B consonant "LETTER HOR HEA" "BOAT") | ||
| 73 | (?(1O(B special "ELLIPSIS") | ||
| 74 | (?(1P(B vowel-base "VOWEL SIGN SARA A") | ||
| 75 | (?(1Q(B vowel-upper "VOWEL SIGN MAI KAN") | ||
| 76 | (?(1R(B vowel-base "VOWEL SIGN SARA AR") | ||
| 77 | (?(1S(B vowel-base "VOWEL SIGN SARA AM") | ||
| 78 | (?(1T(B vowel-upper "VOWEL SIGN SARA I") | ||
| 79 | (?(1U(B vowel-upper "VOWEL SIGN SARA II") | ||
| 80 | (?(1V(B vowel-upper "VOWEL SIGN SARA EU") | ||
| 81 | (?(1W(B vowel-upper "VOWEL SIGN SARA UR") | ||
| 82 | (?(1X(B vowel-lower "VOWEL SIGN SARA U") | ||
| 83 | (?(1Y(B vowel-lower "VOWEL SIGN SARA UU") | ||
| 84 | (?(1Z(B invalid nil) | ||
| 85 | (?(1[(B vowel-upper "VOWEL SIGN MAI KONG") | ||
| 86 | (?(1\(B semivowel-lower "SEMIVOWEL SIGN LO") | ||
| 87 | (?(1](B vowel-base "SEMIVOWEL SIGN SARA IA") | ||
| 88 | (?(1^(B invalid nil) | ||
| 89 | (?(1_(B invalid nil) | ||
| 90 | (?(1`(B vowel-base "VOWEL SIGN SARA EE") | ||
| 91 | (?(1a(B vowel-base "VOWEL SIGN SARA AA") | ||
| 92 | (?(1b(B vowel-base "VOWEL SIGN SARA OO") | ||
| 93 | (?(1c(B vowel-base "VOWEL SIGN SARA EI MAI MUAN\"") | ||
| 94 | (?(1d(B vowel-base "VOWEL SIGN SARA AI MAI MAY") | ||
| 95 | (?(1e(B invalid nil) | ||
| 96 | (?(1f(B special "KO LA (REPETITION)") | ||
| 97 | (?(1g(B invalid nil) | ||
| 98 | (?(1h(B tone "TONE MAI EK") | ||
| 99 | (?(1i(B tone "TONE MAI THO") | ||
| 100 | (?(1j(B tone "TONE MAI TI") | ||
| 101 | (?(1k(B tone "TONE MAI JADTAWAR") | ||
| 102 | (?(1l(B tone "CANCELLATION MARK") | ||
| 103 | (?(1m(B vowel-upper "VOWEL SIGN SARA OR") | ||
| 104 | (?(1n(B invalid nil) | ||
| 105 | (?(1o(B invalid nil) | ||
| 106 | (?(1p(B special "DIGIT ZERO") | ||
| 107 | (?(1q(B special "DIGIT ONE") | ||
| 108 | (?(1r(B special "DIGIT TWO") | ||
| 109 | (?(1s(B special "DIGIT THREE") | ||
| 110 | (?(1t(B special "DIGIT FOUR") | ||
| 111 | (?(1u(B special "DIGIT FIVE") | ||
| 112 | (?(1v(B special "DIGIT SIX") | ||
| 113 | (?(1w(B special "DIGIT SEVEN") | ||
| 114 | (?(1x(B special "DIGIT EIGHT") | ||
| 115 | (?(1y(B special "DIGIT NINE") | ||
| 116 | (?(1z(B invalid nil) | ||
| 117 | (?(1{(B invalid nil) | ||
| 118 | (?(1|(B consonant "LETTER NHOR NHUU" "MOUSE") | ||
| 119 | (?(1}(B consonant "LETTER MHOR MHAR" "DOG") | ||
| 120 | (?(1~(B invalid nil) | ||
| 121 | )) | ||
| 122 | elm) | ||
| 123 | (while l | ||
| 124 | (setq elm (car l)) | ||
| 125 | (put-char-code-property (car elm) 'phonetic-type (car (cdr elm))) | ||
| 126 | (put-char-code-property (car elm) 'name (nth 2 elm)) | ||
| 127 | (put-char-code-property (car elm) 'meaning (nth 3 elm)) | ||
| 128 | (setq l (cdr l)))) | ||
| 129 | |||
| 130 | ;; | ||
| 131 | (provide 'language/lao-util) | ||
| 132 | |||
| 133 | ;;; lao-util.el ends here | ||
diff --git a/lisp/language/lao.el b/lisp/language/lao.el new file mode 100644 index 00000000000..78e73e1102b --- /dev/null +++ b/lisp/language/lao.el | |||
| @@ -0,0 +1,62 @@ | |||
| 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 | (setq coding-category-iso-8-1 'lao) | ||
| 41 | |||
| 42 | (set-coding-priority | ||
| 43 | '(coding-category-iso-7 | ||
| 44 | coding-category-iso-8-1)) | ||
| 45 | |||
| 46 | (set-default buffer-file-coding-system 'iso-2022-7) | ||
| 47 | |||
| 48 | (setq default-input-method '("Lao" . "quail-lao"))) | ||
| 49 | |||
| 50 | (set-language-info-alist | ||
| 51 | "Lao" '((setup-function . setup-lao-environment) | ||
| 52 | (charset . (lao)) | ||
| 53 | (coding-system . (lao)) | ||
| 54 | (documentation . t) | ||
| 55 | (sample-text . "Lao((1>RJRERG(B) (1JP:R-04U1(B, 0(1"i1M-`0;Q190$[19ERG(B"))) | ||
| 56 | |||
| 57 | (aset use-default-ascent ?(1;(B t) | ||
| 58 | (aset use-default-ascent ?(1=(B t) | ||
| 59 | (aset use-default-ascent ?(1?(B t) | ||
| 60 | (aset use-default-ascent ?(1B(B t) | ||
| 61 | |||
| 62 | ;;; lao.el ends here | ||