Expand make.text.language
This commit is contained in:
parent
0bb9953ddb
commit
72322bbb2d
1 changed files with 12 additions and 2 deletions
|
@ -25,9 +25,19 @@ make.text = {
|
|||
])
|
||||
},
|
||||
language: function () {
|
||||
// https://gist.github.com/tonyhb/635401
|
||||
return random.pick([
|
||||
'en-US', 'en', 'de'
|
||||
// special casing for i, I, dotted/dotless variants
|
||||
['tr', 'az'],
|
||||
// special casing rules: https://developer.mozilla.org/en/CSS/text-transform
|
||||
['nl', 'gr'],
|
||||
// special justification rules
|
||||
['ja', 'zh'],
|
||||
// tend to be RTL
|
||||
['ar', 'he'],
|
||||
// http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/gfxAtomList.h
|
||||
['en', 'x-unicode', 'x-western', 'ja', 'ko', 'zh-cn', 'zh-hk', 'zh-tw', 'x-cyrillic', 'el', 'tr', 'he', 'ar', 'x-baltic', 'th', 'x-devanagari', 'x-tamil', 'x-armn', 'x-beng', 'x-cans', 'x-ethi', 'x-geor', 'x-gujr', 'x-guru', 'x-khmr', 'x-knda', 'x-mlym', 'x-orya', 'x-sinh', 'x-telu', 'x-tibt', 'ko-xxx', 'x-central-euro', 'x-symbol', 'x-user-def', 'az', 'ba', 'crh', 'tt'],
|
||||
// Seen in mxr
|
||||
['en-US', 'fr', 'fra', 'de', 'ru', 'en-us', 'is-IS', 'xyzzy']
|
||||
])
|
||||
},
|
||||
layoutCharCodes: function () {
|
||||
|
|
Loading…
Reference in a new issue