Skip to content

Commit 55d95fb

Browse files
committed
fix misspelling and bump version
1 parent 8f04be2 commit 55d95fb

10 files changed

Lines changed: 40 additions & 40 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.37
1+
2.0.38

resources/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Vcs-Git: https://github.com/~#VENDOR#~/~#PROJECT#~.git
1010
Package: ~#PKGNAME#~
1111
Provides: php-~#PROJECT#~
1212
Architecture: all
13-
Depends: php (>= 8.1.0), php-mbstring, php-tecnickcom-tc-lib-unicode-data (<< 3.0.0), php-tecnickcom-tc-lib-unicode-data (>= 2.0.36), ${misc:Depends}
13+
Depends: php (>= 8.1.0), php-mbstring, php-tecnickcom-tc-lib-unicode-data (<< 3.0.0), php-tecnickcom-tc-lib-unicode-data (>= 2.0.37), ${misc:Depends}
1414
Description: PHP Unicode methods.
1515
PHP library containing Unicode methods.

resources/rpm/rpm.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ BuildArch: noarch
1818

1919
Requires: php(language) >= 8.1.0
2020
Requires: php-composer(%{c_vendor}/tc-lib-unicode-data) < 3.0.0
21-
Requires: php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.0.36
21+
Requires: php-composer(%{c_vendor}/tc-lib-unicode-data) >= 2.0.37
2222
Requires: php-pcre
2323
Requires: php-mbstring
2424

src/Bidi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected function process(): void
335335
}
336336

337337
/**
338-
* Get the paragraph embeding level
338+
* Get the paragraph embedding level
339339
*
340340
* @param array<int> $par Paragraph
341341
*/

src/Bidi/StepI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ protected function process(): void
3939
}
4040

4141
/**
42-
* I1. For all characters with an even (left-to-right) embeding level, those of type R go up one level and those
42+
* I1. For all characters with an even (left-to-right) embedding level, those of type R go up one level and those
4343
* of type AN or EN go up two levels.
44-
* I2. For all characters with an odd (right-to-left) embeding level, those of type L, EN or AN go up one level.
44+
* I2. For all characters with an odd (right-to-left) embedding level, those of type L, EN or AN go up one level.
4545
*
4646
* @param int $idx Current character position
4747
*/

src/Bidi/StepL.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ class StepL
5050
* L steps
5151
*
5252
* @param array<int, CharData> $chardata Array of characters data
53-
* @param int $pel Paragraph embeding level
53+
* @param int $pel Paragraph embedding level
5454
* @param int $maxlevel Maximum level
5555
*/
5656
public function __construct(
5757
array $chardata,
5858
/**
59-
* Paragraph embeding level
59+
* Paragraph embedding level
6060
*/
6161
protected int $pel,
6262
/**
@@ -86,7 +86,7 @@ public function getChrData(): array
8686
}
8787

8888
/**
89-
* L1. On each line, reset the embeding level of the following characters to the paragraph embeding level:
89+
* L1. On each line, reset the embedding level of the following characters to the paragraph embedding level:
9090
* 1. Segment separators,
9191
* 2. Paragraph separators,
9292
* 3. Any sequence of whitespace characters and/or isolate formatting characters (FSI, LRI, RLI, and PDI)

src/Bidi/StepN.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class StepN extends \Com\Tecnick\Unicode\Bidi\StepBase
5151
*
5252
* Neutral and isolate formatting (i.e. NI) characters are resolved one isolating run sequence at a time.
5353
* Its results are that all NIs become either R or L. Generally, NIs take on the direction of the surrounding text.
54-
* In case of a conflict, they take on the embeding direction.
54+
* In case of a conflict, they take on the embedding direction.
5555
* At isolating run sequence boundaries where the type of the character on the other side of the boundary
5656
* is required, the type assigned to sos or eos is used.
5757
*
@@ -128,12 +128,12 @@ protected function processN0(): void
128128
for ($jdx = ($open - 1); $jdx >= 0; --$jdx) {
129129
$btype = $this->getN0Type($this->seq['item'][$jdx]['type']);
130130
if ($btype == $odir) {
131-
// 1. If the preceding strong type is also opposite the embeding direction,
131+
// 1. If the preceding strong type is also opposite the embedding direction,
132132
// context is established, so set the type for both brackets in the pair to that direction.
133133
$this->setBracketsType($open, $close, $odir);
134134
break;
135135
} elseif ($btype == $this->seq['edir']) {
136-
// 2. Otherwise set the type for both brackets in the pair to the embeding direction.
136+
// 2. Otherwise set the type for both brackets in the pair to the embedding direction.
137137
$this->setBracketsType($open, $close, $this->seq['edir']);
138138
break;
139139
}
@@ -165,13 +165,13 @@ protected function processInsideBrackets(int $open, int $close, string $odir): b
165165
// a. Inspect the bidirectional types of the characters enclosed within the bracket pair.
166166
for ($jdx = ($open + 1); $jdx < $close; ++$jdx) {
167167
$btype = $this->getN0Type($this->seq['item'][$jdx]['type']);
168-
// b. If any strong type (either L or R) matching the embeding direction is found,
169-
// set the type for both brackets in the pair to match the embeding direction.
168+
// b. If any strong type (either L or R) matching the embedding direction is found,
169+
// set the type for both brackets in the pair to match the embedding direction.
170170
if ($btype == $this->seq['edir']) {
171171
$this->setBracketsType($open, $close, $this->seq['edir']);
172172
break;
173173
} elseif ($btype === $odir) {
174-
// c. Otherwise, if there is a strong type it must be opposite the embeding direction.
174+
// c. Otherwise, if there is a strong type it must be opposite the embedding direction.
175175
$opposite = true;
176176
}
177177
}
@@ -302,7 +302,7 @@ protected function getNextN1Char(int $idx): int
302302
}
303303

304304
/**
305-
* N2. Any remaining NIs take the embeding direction.
305+
* N2. Any remaining NIs take the embedding direction.
306306
*
307307
* @param int $idx Current character position
308308
*/

src/Bidi/StepP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getPel(): int
5454
// while skipping over any characters between an isolate initiator and its matching PDI or,
5555
// if it has no matching PDI, the end of the paragraph.
5656
// P3. If a character is found in P2 and it is of type AL or R,
57-
// then set the paragraph embeding level to one; otherwise, set it to zero.
57+
// then set the paragraph embedding level to one; otherwise, set it to zero.
5858
$isolate = 0;
5959
foreach ($this->ordarr as $ord) {
6060
$isolate = $this->getIsolateLevel($ord, $isolate);

src/Bidi/StepX.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
class StepX
4444
{
4545
/**
46-
* Maximum embeding level
46+
* Maximum embedding level
4747
*/
4848
public const MAX_DEPTH = 125;
4949

@@ -81,7 +81,7 @@ class StepX
8181
* Explicit Levels and Directions
8282
*
8383
* @param array<int> $ordarr Array of UTF-8 codepoints
84-
* @param int $pel Paragraph embeding level
84+
* @param int $pel Paragraph embedding level
8585
*/
8686
public function __construct(
8787
/**
@@ -90,7 +90,7 @@ public function __construct(
9090
protected array $ordarr,
9191
int $pel
9292
) {
93-
// - Push onto the stack an entry consisting of the paragraph embeding level,
93+
// - Push onto the stack an entry consisting of the paragraph embedding level,
9494
// a neutral directional override status, and a false directional isolate status.
9595
$this->dss[] = [
9696
'ord' => -1, // dummy value, not used
@@ -99,9 +99,9 @@ public function __construct(
9999
'dis' => false,
100100
];
101101
// - Process each character iteratively, applying rules X2 through X8.
102-
// Only embeding levels from 0 through max_depth are valid in this phase.
102+
// Only embedding levels from 0 through max_depth are valid in this phase.
103103
// (Note that in the resolution of levels in rules I1 and I2,
104-
// the maximum embeding level of max_depth+1 can be reached.)
104+
// the maximum embedding level of max_depth+1 can be reached.)
105105
$this->processX();
106106
}
107107

@@ -226,14 +226,14 @@ protected function setDss(
226226
int $ivic = 0
227227
): void {
228228
// X2 to X5
229-
// - Compute the least odd|even embeding level greater than the embeding level of the last entry
229+
// - Compute the least odd|even embedding level greater than the embedding level of the last entry
230230
// on the directional status stack.
231-
// - If this new level would be valid, and the overflow isolate count and overflow embeding
232-
// count are both zero, then this RLE is valid. Push an entry consisting of the new embeding
231+
// - If this new level would be valid, and the overflow isolate count and overflow embedding
232+
// count are both zero, then this RLE is valid. Push an entry consisting of the new embedding
233233
// level, neutral|left|right directional override status, and false directional isolate status onto the
234234
// directional status stack.
235235
// - Otherwise, this is an overflow RLE. If the overflow isolate count is zero, increment the
236-
// overflow embeding|isolate count by one. Leave all other variables unchanged.
236+
// overflow embedding|isolate count by one. Leave all other variables unchanged.
237237
if (($cel >= self::MAX_DEPTH) || ($this->oic != 0) || ($this->oec != 0)) {
238238
if ($isolate) {
239239
++$this->oic;
@@ -285,7 +285,7 @@ protected function pushChar(int $pos, int $ord, array $edss): void
285285
protected function processChar(int $pos, int $ord, array $edss): void
286286
{
287287
// X6. For all types besides B, BN, RLE, LRE, RLO, LRO, PDF, RLI, LRI, FSI, and PDI:
288-
// - Set the current character’s embeding level to the embeding level
288+
// - Set the current character’s embedding level to the embedding level
289289
// of the last entry on the directional status stack.
290290
// - Whenever the directional override status of the last entry on the directional status stack
291291
// is not neutral, reset the current character type according to the directional override
@@ -307,14 +307,14 @@ protected function processPdfCase(array $edss): void
307307
// X7. With each PDF, perform the following steps:
308308
// - If the overflow isolate count is greater than zero, do nothing. (This PDF is within the
309309
// scope of an overflow isolate initiator. It either matches and terminates the scope of an
310-
// overflow embeding initiator within that overflow isolate, or does not match any
311-
// embeding initiator.)
310+
// overflow embedding initiator within that overflow isolate, or does not match any
311+
// embedding initiator.)
312312
if ($this->oic > 0) {
313313
return;
314314
}
315315

316-
// - Otherwise, if the overflow embeding count is greater than zero, decrement it by one.
317-
// (This PDF matches and terminates the scope of an overflow embeding initiator that is not
316+
// - Otherwise, if the overflow embedding count is greater than zero, decrement it by one.
317+
// (This PDF matches and terminates the scope of an overflow embedding initiator that is not
318318
// within the scope of an overflow isolate initiator.)
319319
if ($this->oec > 0) {
320320
--$this->oec;
@@ -324,13 +324,13 @@ protected function processPdfCase(array $edss): void
324324
// - Otherwise, if the directional isolate status of the last entry on the directional status
325325
// stack is false, and the directional status stack contains at least two entries, pop the
326326
// last entry from the directional status stack. (This PDF matches and terminates the scope
327-
// of a valid embeding initiator. Since the stack has at least two entries, this pop does
327+
// of a valid embedding initiator. Since the stack has at least two entries, this pop does
328328
// not leave the stack empty.)
329329
if (($edss['dis'] === false) && (\count($this->dss) > 1)) {
330330
\array_pop($this->dss);
331331
}
332332

333-
// - Otherwise, do nothing. (This PDF does not match any embeding initiator.)
333+
// - Otherwise, do nothing. (This PDF does not match any embedding initiator.)
334334
}
335335

336336
/**
@@ -357,13 +357,13 @@ protected function processPdiCase(int $pos, int $ord, array $edss): void
357357
}
358358

359359
// - Otherwise, this PDI matches a valid isolate initiator. Perform the following steps:
360-
// - Reset the overflow embeding count to zero. (This terminates the scope of those overflow
361-
// embeding initiators within the scope of the matched isolate initiator whose scopes have
360+
// - Reset the overflow embedding count to zero. (This terminates the scope of those overflow
361+
// embedding initiators within the scope of the matched isolate initiator whose scopes have
362362
// not been terminated by a matching PDF, and which thus lack a matching PDF.)
363363
$this->oec = 0;
364364
// - While the directional isolate status of the last entry on the stack is false, pop the
365365
// last entry from the directional status stack. (This terminates the scope of those valid
366-
// embeding initiators within the scope of the matched isolate initiator whose scopes have
366+
// embedding initiators within the scope of the matched isolate initiator whose scopes have
367367
// not been terminated by a matching PDF, and which thus lack a matching PDF. Given that the
368368
// valid isolate count is non-zero, the directional status stack before this step is
369369
// executed must contain an entry with directional isolate status true, and thus after this
@@ -395,7 +395,7 @@ protected function processPdiCase(int $pos, int $ord, array $edss): void
395395

396396
// - In all cases, look up the last entry on the directional status stack left after the
397397
// steps above and:
398-
// - Set the PDI’s level to the entry's embeding level.
398+
// - Set the PDI’s level to the entry's embedding level.
399399
// - If the entry's directional override status is not neutral, reset the current character type
400400
// from PDI to L if the override status is left-to-right, and to R if the override status is
401401
// right-to-left.
@@ -412,7 +412,7 @@ protected function processFsiCase(int $pos, array $edss): void
412412
{
413413
// X5c. With each FSI, apply rules P2 and P3 to the sequence of characters between the FSI and its
414414
// matching PDI, or if there is no matching PDI, the end of the paragraph, as if this sequence
415-
// of characters were a paragraph. If these rules decide on paragraph embeding level 1, treat
415+
// of characters were a paragraph. If these rules decide on paragraph embedding level 1, treat
416416
// the FSI as an RLI in rule X5a. Otherwise, treat it as an LRI in rule X5b.
417417
$stepp = new StepP(\array_slice($this->ordarr, $pos));
418418
if ($stepp->getPel() == 0) {

src/Bidi/StepXten.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ protected function setStartEndOfSequence(): void
205205
foreach ($this->ilrs as $key => $seq) {
206206
// For sos, compare the level of the first character in the sequence with the level of the character
207207
// preceding it in the paragraph (not counting characters removed by X9), and if there is none,
208-
// with the paragraph embeding level.
208+
// with the paragraph embedding level.
209209
$lev = $seq['item'][0]['level'];
210210
if ($seq['start'] == 0) {
211211
$prev = $this->pel;
@@ -219,7 +219,7 @@ protected function setStartEndOfSequence(): void
219219
// For eos, compare the level of the last character in the sequence with the level of the character
220220
// following it in the paragraph (not counting characters removed by X9), and if there is none or the
221221
// last character of the sequence is an isolate initiator (lacking a matching PDI), with the paragraph
222-
// embeding level.
222+
// embedding level.
223223
$lastchr = \end($seq['item']);
224224
if ($lastchr === false) {
225225
return;

0 commit comments

Comments
 (0)