Skip to content

Commit f92a94f

Browse files
committed
rtl template: Updated based on Uighur
1 parent 4a0c8a7 commit f92a94f

19 files changed

+623
-397
lines changed

_template_rtl/defaults.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,44 @@
11
var defaults = {}
22
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)
44
factoryDefaults.size = "50"; // text area font size, number of pixels (just the number)
55
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)
99
factoryDefaults.uisize = "40"; // selection area font size, number of pixels (just the number)
1010
factoryDefaults.ccbase = "\u25CC"; // default base for combining characters
1111
factoryDefaults.uidir = "rtl" // indicates the base direction for the selection area
1212
factoryDefaults.contrast = "low" // contrast for UI text colours
1313

1414

15-
var thisPicker = 'xxxxxxxPicker'
15+
var thisPicker = 'uighurPicker'
1616

1717
if (localStorage.pickersStore && localStorage[thisPicker]) defaults = JSON.parse(localStorage[thisPicker])
1818
else defaults = factoryDefaults
1919

2020

2121
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
2525
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'
2828

2929

3030

3131
var inputAids = [
32-
{"title":"Show cursive forms", "dataVar":"showCursive", "dataLocn":"cursive", "dataShortTitle":"S", "type":"hint"},
3332
{"title":"Hinting", "dataVar":"showShapeHints", "dataLocn":"", "dataShortTitle":"H", "type":"hint"},
34-
{"title":"Shape lookup", "dataVar":"showShapeLookup", "dataLocn":"shapelist", "dataShortTitle":"S", "type":"shape"},
3533
{"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"}
3737
]
3838

3939
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')"},
4442
]
4543

44+
-1.2 KB
Binary file not shown.
-1.41 KB
Binary file not shown.
-1.62 KB
Binary file not shown.
-7.84 KB
Binary file not shown.
-3.32 KB
Binary file not shown.
-656 Bytes
Binary file not shown.
-12.7 KB
Binary file not shown.
-838 Bytes
Binary file not shown.
-10.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)