From 52257b6d956f2e5f3e41c1e1349d7658fa6a7953 Mon Sep 17 00:00:00 2001 From: pyoor Date: Wed, 31 May 2017 15:25:48 -0400 Subject: [PATCH] Add make.text.bidiCharCodes --- lib/make/text.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/make/text.js b/lib/make/text.js index 1b90990..762d0a2 100644 --- a/lib/make/text.js +++ b/lib/make/text.js @@ -98,7 +98,18 @@ make.text = { 0x2044 // fraction slash character ]) }, - + bidiCharCodes: function() { + return random.pick([ + 0x0660, // START_HINDI_DIGITS + 0x0669, // END_HINDI_DIGITS + 0x066A, // START_ARABIC_SEPARATOR + 0x066B, // END_ARABIC_SEPARATOR + 0x0030, // START_ARABIC_DIGITS + 0x0039, // END_ARABIC_DIGITS + 0x06f0, // START_FARSI_DIGITS + 0x06f9, // END_FARSI_DIGITS + ]) + }, // http://www.unicode.org/Public/6.0.0/ucd/UnicodeData.txt unicodeCombiningCharacters: function () { return random.item([