Commit | Line | Data |
---|---|---|
123f4a5e | 1 | ;;; py-punct.el --- Quail packages for Chinese (pinyin + extra symbols) -*-coding: iso-2022-7bit;-*- |
029eaa11 KH |
2 | |
3 | ;; Copyright (C) 1997 Electrotechnical Laboratory, JAPAN. | |
4 | ;; Licensed to the Free Software Foundation. | |
852027b6 | 5 | ;; Copyright (C) 2001 Free Software Foundation, Inc. |
029eaa11 KH |
6 | |
7 | ;; Author: Ken'ichi HANDA <handa@etl.go.jp> | |
8 | ||
9 | ;; Keywords: multilingual, input method, Chienese | |
10 | ||
11 | ;; This file is part of GNU Emacs. | |
12 | ||
13 | ;; GNU Emacs is free software; you can redistribute it and/or modify | |
14 | ;; it under the terms of the GNU General Public License as published by | |
15 | ;; the Free Software Foundation; either version 2, or (at your option) | |
16 | ;; any later version. | |
17 | ||
18 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
19 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | ;; GNU General Public License for more details. | |
22 | ||
23 | ;; You should have received a copy of the GNU General Public License | |
24 | ;; along with GNU Emacs; see the file COPYING. If not, write to the | |
25 | ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
26 | ;; Boston, MA 02111-1307, USA. | |
27 | ||
be567141 PJ |
28 | ;;; Commentary: |
29 | ||
30 | ;;; Code: | |
31 | ||
05e60fc0 KH |
32 | (require 'quail) |
33 | ||
029eaa11 KH |
34 | (load "quail/PY") |
35 | (load "quail/Punct") | |
36 | ||
37 | (quail-define-package | |
38 | "chinese-py-punct" "Chinese-GB" "\e$AF47{\e(B" | |
39 | t | |
40 | "\e$A::WVJdHk\e(B \e$AF4Rt7=08\e(B and `v' for \e$A1j5c7{:EJdHk\e(B | |
41 | ||
e6788ea8 KH |
42 | This is the combination of the input methods `chinese-py' and `chinese-punct'. |
43 | You can enter normal Chinese characters by the same way as `chinese-py'. | |
029eaa11 | 44 | And, you can enter symbols by typing `v' followed by any key sequences |
e6788ea8 | 45 | defined in `chinese-punct'. |
029eaa11 KH |
46 | |
47 | For instance, typing `v' and `%' insert `\e$A#%\e(B'. | |
48 | ") | |
49 | ||
50 | (setcar (nthcdr 2 quail-current-package) | |
852027b6 | 51 | (copy-sequence (nth 2 (assoc "chinese-py" quail-package-alist)))) |
029eaa11 KH |
52 | |
53 | (quail-defrule "v" (nth 2 (assoc "chinese-punct" quail-package-alist))) | |
e6788ea8 KH |
54 | |
55 | (load "quail/TONEPY") | |
56 | ||
57 | (quail-define-package | |
58 | "chinese-tonepy-punct" "Chinese-GB" "\e$AF47{\e(B" | |
59 | t | |
60 | "\e$A::WVJdHk\e(B \e$A4x5wF4Rt7=08\e(B and `v' for \e$A1j5c7{:EJdHk\e(B | |
61 | ||
62 | This is the combination of the input methods `chinese-tonepy' and | |
63 | `chinese-punct'. | |
64 | ||
65 | You can enter normal Chinese characters by the same way as | |
66 | `chinese-tonepy'. And, you can enter symbols by typing `v' followed | |
67 | by any key sequences defined in `chinese-punct'. | |
68 | ||
69 | For instance, typing `v' and `%' insert `\e$A#%\e(B'. | |
70 | ") | |
71 | ||
852027b6 GM |
72 | (setcar (nthcdr 2 quail-current-package) |
73 | (copy-sequence (nth 2 (assoc "chinese-tonepy" quail-package-alist)))) | |
74 | ||
75 | (quail-defrule "v" (nth 2 (assoc "chinese-punct" quail-package-alist))) | |
be567141 | 76 | |
6b61353c | 77 | ;;; arch-tag: 941fd2ac-2d26-4b0e-8458-b5e485c5aa7d |
be567141 | 78 | ;;; py-punct.el ends here |