summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/UniversalLanguageSelector/lib/jquery.ime/rules/cv/cv-cyr-altgr.js
blob: 835acca01e212e91768c0ccfa656c87af26391c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// This Chuvash keyboard layout is the "official" layout
// in chuvash.org
// This implementation is based on ru-jcuken ime rule
// which supports both transliteration mode and the native jcuken
// Along them there are four Chuvash letters ă ĕ ç ÿ
// The keyboard layout is an agreement
// of the Chuvash Language  Committee 2009-03-12
// http://comissi.chv.su/node/23
// This layout differs from the agreement in that matter
// that all letters are from the Cyrillic subset of Unicode

( function ( $ ) {
	'use strict';

	var cv = {
		id: 'cv-cyr-altgr',
		name: 'Чăвашла (AltGr)',
		description: 'AltGr пускăчлă чăваш сарăмĕ',
		date: '2013-03-24',
		URL: 'http://comissi.chv.su/',
		author: 'Anatoly Mironov, @mirontoli',
		license: 'MIT',
		version: '1.0',
		patterns: [
			[ 'Q', 'Й' ],
			[ 'W', 'Ц' ],
			[ 'E', 'У' ],
			[ 'R', 'К' ],
			[ 'T', 'Е' ],
			[ 'Y', 'Н' ],
			[ 'U', 'Г' ],
			[ 'I', 'Ш' ],
			[ 'O', 'Щ' ],
			[ 'P', 'З' ],
			[ '{', 'Х' ],
			[ '}', 'Ъ' ],
			[ 'A', 'Ф' ],
			[ 'S', 'Ы' ],
			[ 'D', 'В' ],
			[ 'F', 'А' ],
			[ 'G', 'П' ],
			[ 'H', 'Р' ],
			[ 'J', 'О' ],
			[ 'K', 'Л' ],
			[ 'L', 'Д' ],
			[ ':', 'Ж' ],
			[ '"', 'Э' ],
			[ 'Z', 'Я' ],
			[ 'X', 'Ч' ],
			[ 'C', 'С' ],
			[ 'V', 'М' ],
			[ 'B', 'И' ],
			[ 'N', 'Т' ],
			[ 'M', 'Ь' ],
			[ '<', 'Б' ],
			[ '>', 'Ю' ],
			[ '\\?', ',' ],

			[ 'q', 'й' ],
			[ 'w', 'ц' ],
			[ 'e', 'у' ],
			[ 'r', 'к' ],
			[ 't', 'е' ],
			[ 'y', 'н' ],
			[ 'u', 'г' ],
			[ 'i', 'ш' ],
			[ 'o', 'щ' ],
			[ 'p', 'з' ],
			[ '\\[', 'х' ],
			[ '\\]', 'ъ' ],
			[ 'a', 'ф' ],
			[ 's', 'ы' ],
			[ 'd', 'в' ],
			[ 'f', 'а' ],
			[ 'g', 'п' ],
			[ 'h', 'р' ],
			[ 'j', 'о' ],
			[ 'k', 'л' ],
			[ 'l', 'д' ],
			[ ';', 'ж' ],
			[ '\'', 'э' ],
			[ 'z', 'я' ],
			[ 'x', 'ч' ],
			[ 'c', 'с' ],
			[ 'v', 'м' ],
			[ 'b', 'и' ],
			[ 'n', 'т' ],
			[ 'm', 'ь' ],
			[ ',', 'б' ],
			[ '\\.', 'ю' ],
			[ '/', '.' ],

			[ '`', 'ё' ],
			[ '~', 'Ё' ],

			// ! is the same // 1
			[ '@', '"' ], // 2
			[ '#', '№' ], // 3
			[ '\\$', ';' ], // 4
			// '%' is the same // 5
			[ '^', ':' ], // 6
			[ '&', '?' ] // 7
			// '*', '(' and ')' are the same    // 8, 9, 0
			],
		// support both qwerty and jcuken keyboards
		patterns_x: [
			[ 'f|а', 'ӑ' ],
			[ 'F|А', 'Ӑ' ],
			[ 't|е', 'ӗ' ],
			[ 'T|Е', 'Ӗ' ],
			[ 'c|с', 'ҫ' ],
			[ 'C|С', 'Ҫ' ],
			[ 'e|у', 'ӳ' ],
			[ 'E|У', 'Ӳ' ]
		]
	};

	$.ime.register( cv );

}( jQuery ) );