Arabic

Joining context of the Arabic shaping: the form of a character is decided by the Joining_Type of the nearest non-transparent characters around it, as defined by ArabicShaping.txt and section 9.2 of th

Namespace: Com\Tecnick\Unicode\Bidi\Shaping

abstract class Arabic

Source: src/Bidi/Shaping/Arabic.php:61

Joining context of the Arabic shaping: the form of a character is decided by the Joining_Type of the nearest non-transparent characters around it, as defined by ArabicShaping.txt and section 9.2 of the Unicode standard.

Types

CharData

array{
    'char': int,
    'i': int,
    'level': int,
    'otype': string,
    'pdimatch': int,
    'pos': int,
    'type': string,
    'x': int,
}

SeqData

array{
    'e': int,
    'edir': string,
    'end': int,
    'eos': string,
    'length': int,
    'maxlevel': int,
    'sos': string,
    'start': int,
    'item': array<int, CharData>,
}

Methods

getJoiningTypes()

Joining_Type of every position of the given paragraph.

public static getJoiningTypes(array<int,int> $paragraph): array<int,string>

Parameters:

  • $paragraph (array<int,int>): Codepoints of the paragraph, in logical order

Returns: array<int,string>

Source: src/Bidi/Shaping/Arabic.php:137