classes-Com-Tecnick-Unicode-Bidi-Shaping

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Com\Tecnick\Unicode\Bidi\Shaping

Tags
since
2015-07-13
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-unicode

Table of Contents

$alchars  : array<string|int, mixed>
Array of AL characters
$newchardata  : array<string|int, mixed>
Array of processed chars
$numalchars  : int
Number of AL characters
$seq  : array<string|int, mixed>
Sequence to process and return
__construct()  : mixed
Shaping Cursively connected scripts, such as Arabic or Syriac, require the selection of positional character shapes that depend on adjacent characters.
getSequence()  : array<string|int, mixed>
Returns the processed sequence
combineShadda()  : mixed
Combine characters that can occur with Arabic Shadda (0651 HEX, 1617 DEC).
hasNextChar()  : bool
Check next char
hasPrevChar()  : bool
Check previous char
isFinalChar()  : bool
Check if it is a final character
isLaaLetter()  : bool
Check if it is a LAA LETTER
isMiddleChar()  : bool
Check if it is a middle character
process()  : mixed
Process
processAlChar()  : mixed
Process AL character
removeDeletedChars()  : mixed
Remove marked characters
setAlChars()  : mixed
Set AL chars array
setFinalChar()  : mixed
Set final char
setInitialChar()  : mixed
Set initial char
setMiddleChar()  : mixed
Set initial or middle char

Properties

$alchars

Array of AL characters

protected array<string|int, mixed> $alchars = array()

$newchardata

Array of processed chars

protected array<string|int, mixed> $newchardata = array()

$numalchars

Number of AL characters

protected int $numalchars = 0

$seq

Sequence to process and return

protected array<string|int, mixed> $seq = array()

Methods

__construct()

Shaping Cursively connected scripts, such as Arabic or Syriac, require the selection of positional character shapes that depend on adjacent characters.

public __construct(array<string|int, mixed> $seq) : mixed

Shaping is logically applied after the Bidirectional Algorithm is used and is limited to characters within the same directional run.

Parameters
$seq : array<string|int, mixed>

isolated Sequence array

Return values
mixed

getSequence()

Returns the processed sequence

public getSequence() : array<string|int, mixed>
Return values
array<string|int, mixed>

combineShadda()

Combine characters that can occur with Arabic Shadda (0651 HEX, 1617 DEC).

protected combineShadda() : mixed

Putting the combining mark and shadda in the same glyph allows to avoid the two marks overlapping each other in an illegible manner.

Return values
mixed

hasNextChar()

Check next char

protected hasNextChar(int $thischar, int|false $nextchar) : bool
Parameters
$thischar : int

Current char

$nextchar : int|false

Next char

Return values
bool

hasPrevChar()

Check previous char

protected hasPrevChar(int|false $prevchar, int $thischar) : bool
Parameters
$prevchar : int|false

Previous char

$thischar : int

Current char

Return values
bool

isFinalChar()

Check if it is a final character

protected isFinalChar(int|false $prevchar, int $thischar, int|false $nextchar) : bool
Parameters
$prevchar : int|false

Previous char

$thischar : int

Current char

$nextchar : int|false

Next char

Return values
bool

isLaaLetter()

Check if it is a LAA LETTER

protected isLaaLetter(mixed $prevchar, mixed $thischar) : bool
Parameters
$prevchar : mixed
$thischar : mixed
Return values
bool

isMiddleChar()

Check if it is a middle character

protected isMiddleChar(int|false $prevchar, int $thischar, int|false $nextchar) : bool
Parameters
$prevchar : int|false

Previous char

$thischar : int

Current char

$nextchar : int|false

Next char

Return values
bool

process()

Process

protected process() : mixed
Return values
mixed

processAlChar()

Process AL character

protected processAlChar(int $idx, int $pos, int|false $prevchar, int $thischar, int|false $nextchar) : mixed
Parameters
$idx : int

Current index

$pos : int

Current char position

$prevchar : int|false

Previous char

$thischar : int

Current char

$nextchar : int|false

Next char

Return values
mixed

removeDeletedChars()

Remove marked characters

protected removeDeletedChars() : mixed
Return values
mixed

setAlChars()

Set AL chars array

protected setAlChars() : mixed
Return values
mixed

setFinalChar()

Set final char

protected setFinalChar(int $idx, int|false $prevchar, int $thischar, array<string|int, mixed> $arabicarr) : mixed
Parameters
$idx : int

Current index

$prevchar : int|false

Previous char

$thischar : int

Current char

$arabicarr : array<string|int, mixed>

Substitution array

Return values
mixed

setInitialChar()

Set initial char

protected setInitialChar(int $idx, int $thischar, array<string|int, mixed> $arabicarr) : mixed
Parameters
$idx : int

Current index

$thischar : int

Current char

$arabicarr : array<string|int, mixed>

Substitution array

Return values
mixed

setMiddleChar()

Set initial or middle char

protected setMiddleChar(int $idx, int|false $prevchar, int $thischar, array<string|int, mixed> $arabicarr) : mixed
Parameters
$idx : int

Current index

$prevchar : int|false

Previous char

$thischar : int

Current char

$arabicarr : array<string|int, mixed>

Substitution array

Return values
mixed
 

© 2004-2023 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy