Lines Matching refs:level

1633 	function _applyGSUBsubtable($lookupID, $subtable, $ptr, $currGlyph, $currGID, $subtable_offset, $Type, $Flag, $MarkFilteringSet, $LuCoverage, $level, $currentTag, $is_old_spec, $tagInt)
1671 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
1701 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
1747 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
1809 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
1863 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
1972 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
2068 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
2238 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
2322 $this->_dumpproc('GSUB', $lookupID, $subtable, $Type, $SubstFormat, $ptr, $currGlyph, $level);
3282 private function _applyGPOSsubtable($lookupID, $subtable, $ptr, $currGlyph, $currGID, $subtable_offset, $Type, $Flag, $MarkFilteringSet, $LuCoverage, $tag, $level, $is_old_spec)
3320 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3371 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3376 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3440 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3445 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3493 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3574 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3671 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3771 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
3875 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
4060 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
4146 $this->_dumpproc('GPOS', $lookupID, $subtable, $Type, $PosFormat, $ptr, $currGlyph, $level);
4580 * B Paragraph Separator Paragraph separator, appropriate Newline Functions, higher-level protocol paragraph determination
4588 $pel = 0; // paragraph embedding level
4592 // Set the initial paragraph embedding level
4599 // X1. Begin by setting the current embedding level to the paragraph embedding level. Set the directional override status to neutral.
4610 // In the resolution of levels in rules I1 and I2, the maximum embedding level of 62 can be reached.
4613 // X2. With each RLE, compute the least greater odd embedding level.
4614 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to neutral.
4615 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
4623 // X3. With each LRE, compute the least greater even embedding level.
4624 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to neutral.
4625 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
4633 // X4. With each RLO, compute the least greater odd embedding level.
4634 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to right-to-left.
4635 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
4643 // X5. With each LRO, compute the least greater even embedding level.
4644 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to left-to-right.
4645 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
4653 // X7. With each PDF, determine the matching embedding or override code. If there was a valid matching code, restore (pop) the last remembered (pushed) embedding level and directional override.
4670 // a. Set the level of the current character to the current embedding level.
4683 $chardata[] = ['char' => $chunkOTLdata['char_data'][$i]['uni'], 'level' => $cel, 'type' => $chardir, 'group' => $chunkOTLdata['group'][$i], 'GPOSinfo' => $gpos];
4694 // For sor, compare the level of the first character in the sequence with the level of the character preceding it in the paragraph or if there is none, with the paragraph embedding level.
4695 // For eor, compare the level of the last character in the sequence with the level of the character following it in the paragraph or if there is none, with the paragraph embedding level.
4696 // If the higher level is odd, the sor or eor is R; otherwise, it is L.
4700 $cel = $prelevel; // current embedding level
4702 $level = $chardata[$i]['level'];
4706 $left = $chardata[$i - 1]['level'];
4711 $right = $chardata[$i + 1]['level'];
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;
4720 // Weak types are now resolved one level run at a time. At level run boundaries where the type of the character on the other side of the boundary is required, the type assigned to sor or eor is used.
4722 // W1. Examine each nonspacing mark (NSM) in the level run, and change the type of the NSM to the type of the previous character. If the NSM is at the start of the level run, it will get the type of sor.
4725 if ($i == 0 || $chardata[$i]['level'] != $chardata[$i - 1]['level']) {
4750 if ($chardata[$i]['level'] != $prevlevel) {
4755 $prevlevel = $chardata[$i]['level'];
4767 if (($i + 1) < $numchars && $chardata[($i)]['level'] == $chardata[($i + 1)]['level'] && $chardata[($i)]['level'] == $chardata[($i - 1)]['level']) {
4781 if ($i > 0 && $chardata[($i - 1)]['type'] == Ucdn::BIDI_CLASS_EN && $chardata[($i)]['level'] == $chardata[($i - 1)]['level']) {
4785 while ($j < $numchars && $chardata[$j]['level'] == $chardata[$i]['level']) {
4814 if ($chardata[$j]['level'] != $chardata[$i]['level']) { // Level run boundary
4830 // N1. A sequence of neutrals takes the direction of the surrounding strong text if the text on both sides has the same direction. European and Arabic numbers act as if they were R in terms of their influence on neutrals. Start-of-level-run (sor) and end-of-level-run (eor) are used at level run boundaries.
4837 } elseif ($chardata[($i - 1)]['level'] != $chardata[($i)]['level']) { // run boundary
4852 } elseif ($chardata[($j + 1)]['level'] != $chardata[($j)]['level']) { // run boundary
4874 $chardata[$i]['type'] = ($chardata[$i]['level'] % 2) ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
4879 // I1. For all characters with an even (left-to-right) embedding direction, those of type R go up one level and those of type AN or EN go up two levels.
4880 // I2. For all characters with an odd (right-to-left) embedding direction, those of type L, EN or AN go up one level.
4882 $odd = $chardata[$i]['level'] % 2;
4885 $chardata[$i]['level'] += 1;
4889 $chardata[$i]['level'] += 1;
4891 $chardata[$i]['level'] += 2;
4894 $maxlevel = max($chardata[$i]['level'], $maxlevel);
4900 // L1. On each line, reset the embedding level of the following characters to the paragraph embedding level:
4910 $chardata[$i]['level'] = $pel;
4917 // L2. From the highest level found in the text to the lowest odd level on each line, including intermediate levels not actually present in the text, reverse any contiguous sequence of characters that are at that level or higher.
4923 if ($chardata[$i]['level'] >= $j) {
4959 $GPOS[$cctr]['wDir'] = ($cd['level'] % 2) ? 'RTL' : 'LTR';
4981 * Firstly set the level in the OTLdata - called from fn printbuffer() [_bidiPrepare]
4987 // Set the initial paragraph embedding level
4988 $pel = 0; // paragraph embedding level
4993 // X1. Begin by setting the current embedding level to the paragraph embedding level. Set the directional override status to neutral.
5004 // In the resolution of levels in rules I1 and I2, the maximum embedding level of 62 can be reached.
5012 // X2. With each RLE, compute the least greater odd embedding level.
5013 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to neutral.
5014 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
5023 // X3. With each LRE, compute the least greater even embedding level.
5024 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to neutral.
5025 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
5034 // X4. With each RLO, compute the least greater odd embedding level.
5035 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to right-to-left.
5036 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
5045 // X5. With each LRO, compute the least greater even embedding level.
5046 // a. If this new level would be valid, then this embedding code is valid. Remember (push) the current embedding level and override status. Reset the current level to this new level, and reset the override status to left-to-right.
5047 // b. If the new level would not be valid, then this code is invalid. Do not change the current level or override status.
5056 // X7. With each PDF, determine the matching embedding or override code. If there was a valid matching code, restore (pop) the last remembered (pushed) embedding level and directional override.
5071 // Set the RLI/LRI/FSI embedding level to the embedding level of the last entry on the directional status stack.
5077 $chunkOTLdata['char_data'][$i]['level'] = $cel;
5111 // if fsi not found, fsi is same as paragraph embedding level
5122 // Compute the least even embedding level greater than the embedding level of the last entry on the directional status stack.
5125 // Compute the least odd embedding level greater than the embedding level of the last entry on the directional status stack.
5130 // Increment the isolate count by one, and push an entry consisting of the new embedding level,
5155 // In all cases, set the PDI’s level to the embedding level of the last entry on the directional status stack left after the steps above.
5156 // NB The level assigned to an isolate initiator is always the same as that assigned to the matching PDI.
5162 $chunkOTLdata['char_data'][$i]['level'] = $cel;
5173 // a. Set the level of the current character to the current embedding level.
5183 $chunkOTLdata['char_data'][$i]['level'] = $cel;
5215 // For sor, compare the level of the first character in the sequence with the level of the character preceding it in the paragraph or if there is none, with the paragraph embedding level.
5216 // For eor, compare the level of the last character in the sequence with the level of the character following it in the paragraph or if there is none, with the paragraph embedding level.
5217 // If the higher level is odd, the sor or eor is R; otherwise, it is L.
5241 $right = $para[$nc2][18]['char_data'][$i2]['level'];
5246 $level = $chardata[$i]['level'];
5247 if ($firstchar || $level != $prelevel) {
5248 $chardata[$i]['sor'] = max($prelevel, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5250 if (($nc == ($numchunks - 1) && $i == ($numchars - 1)) || $level != $right) {
5251 $chardata[$i]['eor'] = max($right, $level) % 2 ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5253 $prelevel = $level;
5261 // Weak types are now resolved one level run at a time. At level run boundaries where the type of the character on the other side of the boundary is required, the type assigned to sor or eor is used.
5263 // W1. Examine each nonspacing mark (NSM) in the level run, and change the type of the NSM to the type of the previous character. If the NSM is at the start of the level run, it will get the type of sor.
5446 // N1. A sequence of neutrals takes the direction of the surrounding strong text if the text on both sides has the same direction. European and Arabic numbers act as if they were R in terms of their influence on neutrals. Start-of-level-run (sor) and end-of-level-run (eor) are used at level run boundaries.
5518 $chardata[$i]['type'] = ($chardata[$i]['level'] % 2) ? Ucdn::BIDI_CLASS_R : Ucdn::BIDI_CLASS_L;
5523 // I1. For all characters with an even (left-to-right) embedding direction, those of type R go up one level and those of type AN or EN go up two levels.
5524 // I2. For all characters with an odd (right-to-left) embedding direction, those of type L, EN or AN go up one level.
5529 if (isset($chardata[$i]['level'])) {
5530 $odd = $chardata[$i]['level'] % 2;
5533 $chardata[$i]['level'] += 1;
5537 $chardata[$i]['level'] += 1;
5539 $chardata[$i]['level'] += 2;
5573 // First combine into one array (and get the highest level in use)
5587 if (isset($cOTLdata[$nc]['char_data'][$i]['level'])) {
5588 $carac['level'] = $cOTLdata[$nc]['char_data'][$i]['level'];
5596 $maxlevel = max((isset($carac['level']) ? $carac['level'] : 0), $maxlevel);
5606 // L1. On each line, reset the embedding level of the following characters to the paragraph embedding level:
5613 // Set the initial paragraph embedding level
5622 $bidiData[$i]['level'] = $pel;
5628 // L2. From the highest level found in the text to the lowest odd level on each line, including intermediate levels not actually present in the text, reverse any contiguous sequence of characters that are at that level or higher.
5634 if ($bidiData[$i]['level'] >= $j) {
5681 $cOTLdata[$nc]['GPOSinfo'][$cctr]['wDir'] = ($carac['level'] % 2) ? 'RTL' : 'LTR';
6180 private function _dumpproc($GPOSSUB, $lookupID, $subtable, $Type, $Format, $ptr, $currGlyph, $level)
6182 echo '<div style="padding-left: ' . ($level * 2) . 'em;">';