New file. Modified from ru-kbd.png.
[m17n/m17n-db.git] / MIM / zh-pinyin.mim
1 ;; zh-pinyin.mim -- Input method for Chinese Pinyin characters
2 ;; Copyright (C) 2004, 2005
3 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
4 ;;   Registration Number H15PRO112
5
6 ;; This file is part of the m17n database; a sub-part of the m17n
7 ;; library.
8
9 ;; The m17n library is free software; you can redistribute it and/or
10 ;; modify it under the terms of the GNU Lesser General Public License
11 ;; as published by the Free Software Foundation; either version 2.1 of
12 ;; the License, or (at your option) any later version.
13
14 ;; The m17n library is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 ;; Lesser General Public License for more details.
18
19 ;; You should have received a copy of the GNU Lesser General Public
20 ;; License along with the m17n library; if not, write to the Free
21 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23
24 (input-method zh pinyin)
25
26 (description "Input method for Chinese Pinyin characters.
27 Note that it's not for inputting Han characters.
28 ")
29
30 (title "PinYin")
31
32 (map
33  (vowel
34   ("a"    (("a"    "ā"    "á"    "ǎ"    "à"   )))
35   ("ai"   (("ai"   "āi"   "ái"   "ǎi"   "ài"  )))
36   ("an"   (("an"   "ān"   "án"   "ǎn"   "àn"  )))
37   ("ang"  (("ang"  "āng"  "áng"  "ǎng"  "àng" )))
38   ("ao"   (("ao"   "āo"   "áo"   "ǎo"   "ào"  )))
39   ("e"    (("e"    "ē"    "é"    "ě"    "è"   )))
40   ("ei"   (("ei"   "ēi"   "éi"   "ěi"   "èi"  )))
41   ("en"   (("en"   "ēn"   "én"   "ěn"   "èn"  )))
42   ("eng"  (("eng"  "ēng"  "éng"  "ěng"  "èng" )))
43   ("er"   (("er"   "ēr"   "ér"   "ěr"   "èr"  )))
44   ("i"    (("i"    "ī"    "í"    "ǐ"    "ì"   )))
45   ("ia"   (("ia"   "iā"   "iá"   "iǎ"   "ià"  )))
46   ("ian"  (("ian"  "iān"  "ián"  "iǎn"  "iàn" )))
47   ("iang" (("iang" "iāng" "iáng" "iǎng" "iàng")))
48   ("iao"  (("iao"  "iāo"  "iáo"  "iǎo"  "iào" )))
49   ("ie"   (("ie"   "iē"   "ié"   "iě"   "iè"  )))
50   ("in"   (("in"   "īn"   "ín"   "ǐn"   "ìn"  )))
51   ("ing"  (("ing"  "īng"  "íng"  "ǐng"  "ìng" )))
52   ("iong" (("iong" "iōng" "ióng" "iǒng" "iòng")))
53   ("iu"   (("iu"   "iū"   "iú"   "iǔ"   "iù"  )))
54   ("o"    (("o"    "ō"    "ó"    "ǒ"    "ò"   )))
55   ("ong"  (("ong"  "ōng"  "óng"  "ǒng"  "òng" )))
56   ("ou"   (("ou"   "ōu"   "óu"   "ǒu"   "òu"  )))
57   ("u"    (("u"    "ū"    "ú"    "ǔ"    "ù"   )))
58   ("u:"   (("ü"    "ǖ"    "ǘ"    "ǚ"    "ǜ"   )))
59   ("v"    (("ü"    "ǖ"    "ǘ"    "ǚ"    "ǜ"   )))
60   ("ua"   (("ua"   "uā"   "uá"   "uǎ"   "uà"  )))
61   ("uai"  (("uai"  "uāi"  "uái"  "uǎi"  "uài" )))
62   ("uan"  (("uan"  "uān"  "uán"  "uǎn"  "uàn" )))
63   ("uang" (("uang" "uāng" "uáng" "uǎng" "uàng")))
64   ("ue"   (("ue"   "uē"   "ué"   "uě"   "uè"  )))
65   ("u:e"  (("üe"   "üē"   "üé"   "üě"   "üè"  )))
66   ("ve"   (("üe"   "üē"   "üé"   "üě"   "üè"  )))
67   ("ui"   (("ui"   "uī"   "uí"   "uǐ"   "uì"  )))
68   ("un"   (("un"   "ūn"   "ún"   "ǔn"   "ùn"  )))
69   ("uo"   (("uo"   "uō"   "uó"   "uǒ"   "uò"  ))))
70
71  (tone
72   ("1" (select 1))
73   ("2" (select 2))
74   ("3" (select 3))
75   ("4" (select 4))))
76
77 (state
78  (init
79   (vowel (shift select)))
80  (select
81   (tone (shift init))))