Lines Matching refs:Ucdn

177 			$ucd_record = Ucdn::get_ucd_record($char);
182 $sbl = Ucdn::SCRIPT_ARABIC;
233 if (Ucdn::SCRIPT_DEVANAGARI <= $scriptblock && $scriptblock <= Ucdn::SCRIPT_MALAYALAM) {
236 elseif ($scriptblock == Ucdn::SCRIPT_ARABIC || $scriptblock == Ucdn::SCRIPT_SYRIAC) {
239 elseif ($scriptblock == Ucdn::SCRIPT_NKO || $scriptblock == Ucdn::SCRIPT_MANDAIC) {
242 elseif ($scriptblock == Ucdn::SCRIPT_KHMER) {
245 elseif ($scriptblock == Ucdn::SCRIPT_THAI) {
248 elseif ($scriptblock == Ucdn::SCRIPT_LAO) {
251 elseif ($scriptblock == Ucdn::SCRIPT_SINHALA) {
254 elseif ($scriptblock == Ucdn::SCRIPT_MYANMAR) {
257 elseif ($scriptblock == Ucdn::SCRIPT_NEW_TAI_LUE) {
260 elseif ($scriptblock == Ucdn::SCRIPT_CHAM) {
263 elseif ($scriptblock == Ucdn::SCRIPT_TAI_THAM) {
270 $scripttag = Ucdn::$uni_scriptblock[$scriptblock];
355 elseif ($this->mpdf->useTibetanLBR && $scriptblock == Ucdn::SCRIPT_TIBETAN) {
440 //if ($scriptblock == Ucdn::SCRIPT_ARABIC ) {
534 if ($this->OTLdata[$ptr]['general_category'] == Ucdn::UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK && $this->OTLdata[$ptr - 1]['uni'] == 32) {
554 $ucd_record = Ucdn::get_ucd_record($sub[$i]);
575 $ucd_record = Ucdn::get_ucd_record($sub);
620 $ucd_record = Ucdn::get_ucd_record(0x25CC);
700 $ucd_record = Ucdn::get_ucd_record(0x25CC);
773 $ucd_record = Ucdn::get_ucd_record(0x25CC);
860 $ucd_record = Ucdn::get_ucd_record($sub[0]);
887 $ucd_record = Ucdn::get_ucd_record($sub[1]);
906 if ($scriptblock == Ucdn::SCRIPT_TIBETAN) {
937 $ucd_record = Ucdn::get_ucd_record($sub[$i]);
973 if (!(($this->mpdf->textvar & TextVars::FC_SMALLCAPS) && $scriptblock == Ucdn::SCRIPT_LATIN && strpos($useGSUBtags, 'smcp') === false)) {
982 if (($this->shaper == "K" || $this->shaper == "T" || $this->shaper == "L") || $scriptblock == Ucdn::SCRIPT_TIBETAN) {
987 'general_category' => Ucdn::UNICODE_GENERAL_CATEGORY_FORMAT,
988 'bidi_type' => Ucdn::BIDI_CLASS_BN,
1049 if ($scriptblock != Ucdn::SCRIPT_LATIN) {
1077 if (!(($this->mpdf->textvar & TextVars::FC_SMALLCAPS) && $scriptblock == Ucdn::SCRIPT_LATIN && strpos($useGSUBtags, 'smcp') === false)) {
2438 // $bt = Ucdn::get_bidi_class($uni);
2618 // $bt = Ucdn::get_bidi_class($substitute);
4640 $dos = Ucdn::BIDI_CLASS_R;
4650 $dos = Ucdn::BIDI_CLASS_L;
4713 $chardata[$i]['sor'] = max($left, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
4714 $chardata[$i]['eor'] = max($right, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
4724 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_NSM) {
4737 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN) {
4740 if ($chardata[$j]['type'] == Ucdn::BIDI_CLASS_AL) {
4741 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_AN;
4744 } elseif (($chardata[$j]['type'] == Ucdn::BIDI_CLASS_L) || ($chardata[$j]['type'] == Ucdn::BIDI_CLASS_R)) {
4760 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_AL) {
4761 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_R;
4768 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ES && $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_EN && $chardata[($i + 1)]['type'] == Ucdn::BIDI_CLASS_EN) {
4769 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
4770 } elseif ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS && $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_EN && $chardata[($i + 1)]['type'] == Ucdn::BIDI_CLASS_EN) {
4771 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
4772 } elseif ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS && $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_AN && $chardata[($i + 1)]['type'] == Ucdn::BIDI_CLASS_AN) {
4773 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_AN;
4780 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ET) {
4781 if ($i > 0 && $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_EN && $chardata[($i)]['level'] == $chardata[($i - 1)]['level']) {
4782 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
4786 if ($chardata[$j]['type'] == Ucdn::BIDI_CLASS_EN) {
4787 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
4789 } elseif ($chardata[$j]['type'] != Ucdn::BIDI_CLASS_ET) {
4800 if (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ET) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ES) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS)) {
4801 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_ON;
4807 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN) {
4809 if ($chardata[$i]['sor'] == Ucdn::BIDI_CLASS_L) {
4815 if ($chardata[$j + 1]['sor'] == Ucdn::BIDI_CLASS_L) {
4819 } elseif ($chardata[$j]['type'] == Ucdn::BIDI_CLASS_L) {
4820 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_L;
4822 } elseif ($chardata[$j]['type'] == Ucdn::BIDI_CLASS_R) {
4832 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ON || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_WS) {
4839 } elseif ($chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_L) {
4840 $left = Ucdn::BIDI_CLASS_L;
4841 } elseif ($chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_R || $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_EN || $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_AN) {
4842 $left = Ucdn::BIDI_CLASS_R;
4848 while (($chardata[$j]['type'] == Ucdn::BIDI_CLASS_ON || $chardata[$j]['type'] == Ucdn::BIDI_CLASS_WS) && $j <= ($numchars - 1)) {
4855 } elseif ($chardata[($j + 1)]['type'] == Ucdn::BIDI_CLASS_L) {
4856 $right = Ucdn::BIDI_CLASS_L;
4858 } elseif ($chardata[($j + 1)]['type'] == Ucdn::BIDI_CLASS_R || $chardata[($j + 1)]['type'] == Ucdn::BIDI_CLASS_EN || $chardata[($j + 1)]['type'] == Ucdn::BIDI_CLASS_AN) {
4859 $right = Ucdn::BIDI_CLASS_R;
4873 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ON || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_WS) {
4874 $chardata[$i]['type'] = ($chardata[$i]['level'] % 2) ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
4884 if (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_L) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_AN) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN)) {
4888 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_R) {
4890 } elseif (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_AN) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN)) {
4909 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_WS || (isset($chardata[$i]['orig_type']) && $chardata[$i]['orig_type'] == Ucdn::BIDI_CLASS_WS)) {
4927 if (isset(Ucdn::$mirror_pairs[$chardata[$i]['char']]) && $chardata[$i]['type'] == Ucdn::BIDI_CLASS_R) {
4928 $chardata[$i]['char'] = Ucdn::$mirror_pairs[$chardata[$i]['char']];
4961 if ($cd['type'] == Ucdn::BIDI_CLASS_L) {
4963 } elseif ($cd['type'] == Ucdn::BIDI_CLASS_R) {
5041 $dos = Ucdn::BIDI_CLASS_R;
5052 $dos = Ucdn::BIDI_CLASS_L;
5106 if ($para[$nc2][18]['char_data'][$i2]['bidi_class'] === Ucdn::BIDI_CLASS_L || $para[$nc2][18]['char_data'][$i2]['bidi_class'] == Ucdn::BIDI_CLASS_AL || $para[$nc2][18]['char_data'][$i2]['bidi_class'] === Ucdn::BIDI_CLASS_R) {
5114 $fsi = Ucdn::BIDI_CLASS_R;
5116 $fsi = Ucdn::BIDI_CLASS_L;
5121 if ($chunkOTLdata['char_data'][$i]['uni'] == 8294 || $fsi === Ucdn::BIDI_CLASS_L) { // LRI or FSI-L
5124 } elseif ($chunkOTLdata['char_data'][$i]['uni'] == 8295 || $fsi == Ucdn::BIDI_CLASS_R || $fsi == Ucdn::BIDI_CLASS_AL) { // RLI or FSI-R
5179 if ($chardir == Ucdn::BIDI_CLASS_R || $chardir == Ucdn::BIDI_CLASS_AL) {
5248 $chardata[$i]['sor'] = max($prelevel, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5251 $chardata[$i]['eor'] = max($right, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5273 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_NSM) {
5298 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN && $laststrongtype == Ucdn::BIDI_CLASS_AL) {
5299 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_AN;
5301 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_L || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_R || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_AL) {
5314 if (isset($chardata[$i]['type']) && $chardata[$i]['type'] == Ucdn::BIDI_CLASS_AL) {
5315 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_R;
5350 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ES && $prevtype == Ucdn::BIDI_CLASS_EN && $nexttype == Ucdn::BIDI_CLASS_EN) {
5351 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
5352 } elseif ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS && $prevtype == Ucdn::BIDI_CLASS_EN && $nexttype == Ucdn::BIDI_CLASS_EN) {
5353 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
5354 } elseif ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS && $prevtype == Ucdn::BIDI_CLASS_AN && $nexttype == Ucdn::BIDI_CLASS_AN) {
5355 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_AN;
5378 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ET) {
5379 if ($prevtype == Ucdn::BIDI_CLASS_EN) {
5380 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
5398 if ($nexttype == Ucdn::BIDI_CLASS_EN) {
5399 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_EN;
5401 } elseif ($nexttype != Ucdn::BIDI_CLASS_ET) {
5417 if (isset($chardata[$i]['type']) && (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ET) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ES) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_CS))) {
5418 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_ON;
5436 if (isset($chardata[$i]['type']) && $chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN && $laststrongtype == Ucdn::BIDI_CLASS_L) {
5437 $chardata[$i]['type'] = Ucdn::BIDI_CLASS_L;
5439 if (isset($chardata[$i]['type']) && ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_L || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_R || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_AL)) {
5459 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ON || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_WS) {
5462 if ($laststrongtype == Ucdn::BIDI_CLASS_R || $laststrongtype == Ucdn::BIDI_CLASS_EN || $laststrongtype == Ucdn::BIDI_CLASS_AN) {
5463 $left = Ucdn::BIDI_CLASS_R;
5464 } elseif ($laststrongtype == Ucdn::BIDI_CLASS_L) {
5465 $left = Ucdn::BIDI_CLASS_L;
5487 if ($nexttype == Ucdn::BIDI_CLASS_R || $nexttype == Ucdn::BIDI_CLASS_EN || $nexttype == Ucdn::BIDI_CLASS_AN) {
5488 $right = Ucdn::BIDI_CLASS_R;
5490 } elseif ($nexttype == Ucdn::BIDI_CLASS_L) {
5491 $right = Ucdn::BIDI_CLASS_L;
5504 } elseif ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_L || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_R || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_AN) {
5516 if (isset($chardata[$i]['type']) && ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_ON || $chardata[$i]['type'] == Ucdn::BIDI_CLASS_WS)) {
5518 $chardata[$i]['type'] = ($chardata[$i]['level'] % 2) ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5532 if (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_L) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_AN) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN)) {
5536 if ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_R) {
5538 } elseif (($chardata[$i]['type'] == Ucdn::BIDI_CLASS_AN) || ($chardata[$i]['type'] == Ucdn::BIDI_CLASS_EN)) {
5621 if ($bidiData[$i]['type'] == Ucdn::BIDI_CLASS_WS || (isset($bidiData[$i]['orig_type']) && $bidiData[$i]['orig_type'] == Ucdn::BIDI_CLASS_WS)) {
5637 if (isset(Ucdn::$mirror_pairs[$bidiData[$i]['uni']]) && $bidiData[$i]['type'] == Ucdn::BIDI_CLASS_R) {
5638 $bidiData[$i]['uni'] = Ucdn::$mirror_pairs[$bidiData[$i]['uni']];
6008 // $scriptblock is the (number/code) for the script of the actual text string based on Unicode properties (Ucdn::$uni_scriptblock)
6031 if ($scriptblock == Ucdn::SCRIPT_LATIN) {
6035 } elseif ($scriptblock == Ucdn::SCRIPT_CYRILLIC) {
6039 } elseif ($scriptblock == Ucdn::SCRIPT_GREEK) {
6043 } elseif ($scriptblock >= Ucdn::SCRIPT_HIRAGANA && $scriptblock <= Ucdn::SCRIPT_YI) {
6161 if ($lang != '' && isset(Ucdn::$ot_languages[$lang])) {
6162 $langsys = Ucdn::$ot_languages[$lang];
6163 } elseif ($lang != '' && $country != '' && isset(Ucdn::$ot_languages[$lang . '' . $country])) {
6164 $langsys = Ucdn::$ot_languages[$lang . '' . $country];