|
1 | 1 | var defaults = {} |
2 | 2 | var factoryDefaults = {} |
3 | | - factoryDefaults.font = 'XXXXXXXX' // text area font name (a single font, no quotes) |
| 3 | + factoryDefaults.font = 'Scheherazade' // text area font name (a single font, no quotes) |
4 | 4 | factoryDefaults.size = "50"; // text area font size, number of pixels (just the number) |
5 | 5 | factoryDefaults.rows = "2.5"; // number representing number of times 100px for height of text area |
6 | | - factoryDefaults.lineheight = "1.2"; // number representing line height of text area in pixels/100 |
7 | | - factoryDefaults.language = 'aii' // language to use for examples |
8 | | - factoryDefaults.uifont = 'XXXXXXX'; // font name for selection area (a single font, no quotes) |
| 6 | + factoryDefaults.lineheight = "1.8"; // number representing line height of text area in pixels/100 |
| 7 | + factoryDefaults.language = 'ug' // language to use for examples |
| 8 | + factoryDefaults.uifont = 'Scheherazade'; // font name for selection area (a single font, no quotes) |
9 | 9 | factoryDefaults.uisize = "40"; // selection area font size, number of pixels (just the number) |
10 | 10 | factoryDefaults.ccbase = "\u25CC"; // default base for combining characters |
11 | 11 | factoryDefaults.uidir = "rtl" // indicates the base direction for the selection area |
12 | 12 | factoryDefaults.contrast = "low" // contrast for UI text colours |
13 | 13 |
|
14 | 14 |
|
15 | | -var thisPicker = 'xxxxxxxPicker' |
| 15 | +var thisPicker = 'uighurPicker' |
16 | 16 |
|
17 | 17 | if (localStorage.pickersStore && localStorage[thisPicker]) defaults = JSON.parse(localStorage[thisPicker]) |
18 | 18 | else defaults = factoryDefaults |
19 | 19 |
|
20 | 20 |
|
21 | 21 | var template = {} |
22 | | - template.title = 'XXXXXXX character picker' |
23 | | - template.sample = "" |
24 | | - template.blocklocation= '/scripts/xxxxxxx/block' // blocklocation to use for examples |
| 22 | + template.title = 'Uighur character picker' |
| 23 | + template.sample = "2. ھەممە ئادەم ھەرقانداق دۆلەتتىن كېتىشكە، جوملىدىن ئۆز دۆلىتىدىن كېتىشكە ھوقۇقلۇق ھەمدە ئۆزىنىڭ دۆلىتىگە قايتىپ كېلىشكە ھوقۇقلۇق." |
| 24 | + template.blocklocation= '/scripts/arabic/block' // blocklocation to use for examples |
25 | 25 | template.direction = "rtl" // indicates whether this is a picker for a RTL script |
26 | | - template.github = 'xxxxxxx' |
27 | | - template.scriptcode = 'Xxxx' |
| 26 | + template.github = 'uighur' |
| 27 | + template.scriptcode = 'Arab' |
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 | 31 | var inputAids = [ |
32 | | -{"title":"Show cursive forms", "dataVar":"showCursive", "dataLocn":"cursive", "dataShortTitle":"S", "type":"hint"}, |
33 | 32 | {"title":"Hinting", "dataVar":"showShapeHints", "dataLocn":"", "dataShortTitle":"H", "type":"hint"}, |
34 | | -{"title":"Shape lookup", "dataVar":"showShapeLookup", "dataLocn":"shapelist", "dataShortTitle":"S", "type":"shape"}, |
35 | 33 | {"title":"Latin characters", "dataVar":"showLatinTrans", "dataLocn":"latintranscript", "dataShortTitle":"L", "type":"palette"}, |
36 | | -{"title":"Xxxxxxxxxxxx", "dataVar":"xxxxxxxxx", "dataLocn":"xxxxxxxxx", "dataShortTitle":"XXXXXX", "type":"palette"}, |
| 34 | +{"title":"Reverse transliteration", "dataVar":"showTransliteration", "dataLocn":"transliteration", "dataShortTitle":"R", "type":"palette"}, |
| 35 | +{"title":"ULY to Uighur", "dataVar":"showULYTrans", "dataLocn":"ULYtranscription", "dataShortTitle":"U", "type":"palette"}, |
| 36 | +{"title":"Keyboard", "dataVar":"showKeyboard", "dataLocn":"keyboard", "dataShortTitle":"K", "type":"keyboard"} |
37 | 37 | ] |
38 | 38 |
|
39 | 39 | var controls = [ |
40 | | -{"title":"XXXXXXX<br/>to XXXXXX", "alt":"Xxxxxxxxxxxxxxxxxx.", "code":"doTranscription('XXXXXXX')"}, |
41 | | -{"title":"XXXXXXX<br/>to XXXXXX", "alt":"Xxxxxxxxxxxxxxxxxx.", "code":"doTranscription('XXXXXXX')"}, |
42 | | -{"title":"XXXXXXX<br/>to XXXXXX", "alt":"Xxxxxxxxxxxxxxxxxx.", "code":"doTranscription('XXXXXXX')"}, |
43 | | -{"title":"XXXXXXX<br/>to XXXXXX", "alt":"Xxxxxxxxxxxxxxxxxx.", "code":"doTranscription('XXXXXXX')"}, |
| 40 | +{"title":"Trans-<br/>literate", "alt":"Convert Uighur text to a Latin transliteration.", "code":"doTranscription('transliterate')"}, |
| 41 | +{"title":"Trans-<br/>scribe", "alt":"Convert Uighur text to a ULY Latin transcription.", "code":"doTranscription('toULY')"}, |
44 | 42 | ] |
45 | 43 |
|
| 44 | + |
0 commit comments