7) { $t = 1; } $fntClass = 'pers'; if (isset($_POST['fontclass'])) { $fntClass = $_POST['fontclass']; } switch ($t) { case 1: // The "vaared" letters--letters that are always unconnected to the left $letters = array('و', 'ا', 'ر', 'د', 'ز', 'ژ', 'ذ'); // vaav, alef, re, daal, ze, zhe, zaal break; case 2: // letters with a left-stretch in final position $letters = array('ب', 'پ', 'ف', 'ت', 'ث', 'ک', 'گ'); // be, pe, fe, te, se, kaaf, gaaf break; case 3: // letters with a left-downward swing in final position $letters = array('س', 'ش', 'ص', 'ض', 'ل', 'ق', 'ن'); // sin, shin, saad, zaad, laam, qaaf, nun break; case 4: // one letter with the simplest, one with the most elegant arbesque: $letters = array('م', 'ی'); // mim, ye break; case 5: // letters with inward swing in final position $letters = array('ج', 'چ', 'ح', 'خ', 'ع', 'غ'); // jim, che, he (hotti), khe, `ayn, ghayn break; case 6: // *he (havvaz)* $letters = array('ه'); break; case 7: $letters = array('ط', 'ظ'); break; } if (isset($_POST['data'])) { $data = $_POST['data']; $newdata = explode(";", base64_decode($data)); $qletters = explode(",", $newdata[0]); $textname = $newdata[1]; } else { srand((float)microtime() * 1000000); $qletters = array(); $qletters[] = $letters[array_rand($letters, 1)]; $qletters[] = $letters[array_rand($letters, 1)]; if (rand(0, 1)==1) $qletters[] = $letters[array_rand($letters, 1)]; // $qletters[] = $letters[rand(0, count($letters)-1)]; $textname = ""; for ($i=0; $i Test for Disjoining Group Letter

Test for Disjoining Group $t Letter".(count($letters)>1?"s":"")."

\n"; print "

You have answered correctly.

\n"; exit("

Back to the Persian Tests
"); } } ?>

Test for Disjoining Group Letter

Please disjoin these 0 letters by typing them on your keyboard from right to left:

\n"; } ?>
Keyboard layout, unshifted




Back to the Persian Tests