Input method integration with ULS

The file ext.uls.settingspanel.js is a draft for common
code in the different settings panels.

Change-Id: I057274f16b27b2c18d43d41c1d43f485a18ef0bf
This commit is contained in:
Santhosh Thottingal
2012-10-18 16:27:25 +05:30
parent 90de05cb97
commit f13e474e43
67 changed files with 8867 additions and 22 deletions

View File

@@ -0,0 +1,65 @@
( function ( $ ) {
'use strict';
var heStandardExtOnly = {
id: 'he-standard-2012-extonly',
name: 'Hebrew 2012',
description: 'Hebrew keyboard according to Israeli Standard 1452',
date: '2012-10-15',
URL: 'http://www.lingnu.com/he/howto/78-si1452.html',
author: 'Amir E. Aharoni (אָמִיר אֱלִישָׁע אַהֲרוֹנִי, [[User:Amire80]])',
license: 'GPLv3',
version: '1.0',
patterns: [], //// Empty, because the assumption is that the user is using a Hebrew keyboard already
patterns_x: [
['\u05E9', 'ְ'], // Sheva, ש
['\u05E7', 'ָ'], // Qamats, ק
['\u05E8', 'ֳ'], // Hataf qamats, ר
['\u05E4', 'ַ'], // Patah, פ
['\\]', 'ֲ'], // Hataf patah, ]
['\u05E6', 'ֵ'], // Tsere, צ
['\u05E1', 'ֶ'], // Segol, ס
['\u05D1', 'ֱ'], // Hataf segol, ב
['\u05D7', 'ִ'], // Hiriq, ח
['\u05D5', 'ֹ'], // Holam, ו
['\\\\', 'ֻ'], // Qubuts, \
['\u05D3', 'ּ'], // Dagesh, ד
['/', 'ׂ'], // Sin dot
['\'', 'ׁ'], // Shin dot
['-', '\u05BE'], // Maqaf
['=', ''], // Qav mafrid - en dash
['\\[', 'ֿ'], // Rafe
['1', 'ֽ'], // Meteg
['3', '€'], // Euro sign
['4', '₪'], // Sheqel sign
['5', '°'], // Degree
['6', '֫'], // Ole
['8', '×'], // Multiplication
['\\.', '÷'], // Division
['\u05D8', 'װ'], // Double vav, ט
['\u05D9', 'ײ'], // Double yod, י
['\u05E2', 'ױ'], // Vav-yod, ע
// Some source code editors may show the next two lines
// in a weird way because of auto-directionality.
[';', '׳'], // Geresh, ;
[',', '״'], // Gershayim, ,
['\u05E3', '„'], // Opening double quote, ף
['\u05DA', '”'], // Closing double quote, ך
['\u05E5', ''], // Opening single quote, ץ
['\u05EA', ''] // Closing single quote, ת
]
};
$.ime.register( heStandardExtOnly );
}( jQuery ) );

View File

@@ -0,0 +1,115 @@
( function ( $ ) {
'use strict';
var heStandard = {
id: 'he-standard-2012',
name: 'Hebrew 2012 (from English)',
description: 'Hebrew keyboard according to Israeli Standard 1452',
date: '2012-10-15',
URL: 'http://www.lingnu.com/he/howto/78-si1452.html',
author: 'Amir E. Aharoni (אָמִיר אֱלִישָׁע אַהֲרוֹנִי, [[User:Amire80]])',
license: 'GPLv3',
version: '1.0',
contextLength: 0,
maxKeyLength: 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', 'צ' ],
[ ',', 'ת' ],
[ '\\.', 'ץ' ],
[ '/', '.' ],
[ '`', ';' ],
// These characters are mirrored in RTL languages
[ '\\(', ')' ],
[ '\\)', '(' ],
[ '\\[', ']' ],
[ '\\]', '[' ],
[ '{', '}' ],
[ '}', '{' ],
[ '<', '>' ],
[ '>', '<' ]
],
// Your text editor may show the resulting characters in
// the next lines as empty. These are diacritics.
patterns_x: [
[ 'a', 'ְ' ], // Sheva
[ 'e', 'ָ' ], // Qamats
[ 'r', 'ֳ' ], // Hataf qamats
[ 'p', 'ַ' ], // Patah
[ '\\[', 'ֲ' ], // Hataf patah
[ 'm', 'ֵ' ], // Tsere
[ 'x', 'ֶ' ], // Segol
[ 'c', 'ֱ' ], // Hataf segol
[ 'j', 'ִ' ], // Hiriq
[ 'u', 'ֹ' ], // Holam
[ '\\\\', 'ֻ' ], // Qubuts
[ 's', 'ּ' ], // Dagesh
[ 'q', 'ׂ' ], // Sin dot
[ 'w', 'ׁ' ], // Shin dot
[ '-', '־' ], // Maqaf
[ '=', '' ], // Qav mafrid - en dash
[ '\\]', 'ֿ' ], // Rafe
[ '1', 'ֽ' ], // Meteg
[ '3', '€' ], // Euro sign
[ '4', '₪' ], // Sheqel sign
[ '5', '°' ], // Degree
[ '6', '֫' ], // Ole
[ '8', '×' ], // Multiplication
[ '/', '÷' ], // Division
[ 'y', 'װ' ], // Double vav
[ 'h', 'ײ' ], // Double yod
[ 'H', 'ײַ' ], // Yod yod patah
[ 'g', 'ױ' ], // Vav-yod
[ '`', '׳' ], // Geresh
[ '\'', '״' ], // Gershayim
[ ';', '„' ], // Opening double quote
[ 'l', '”' ], // Closing double quote
[ '\\.', '' ], // Opening single quote
[ ',', '' ] // Closing single quote
]
};
$.ime.register( heStandard );
}( jQuery ) );