Expand make.text.language

This commit is contained in:
pyoor 2017-06-23 11:35:05 -04:00
parent 0bb9953ddb
commit 72322bbb2d

View file

@ -25,9 +25,19 @@ make.text = {
]) ])
}, },
language: function () { language: function () {
// https://gist.github.com/tonyhb/635401
return random.pick([ 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 () { layoutCharCodes: function () {