Shaping

Arabic shaping: replaces the characters of an isolating run sequence with their positional presentation forms and ligatures.

Namespace: Com\Tecnick\Unicode\Bidi

class Shaping extends Arabic

Extends: Arabic

Source: src/Bidi/Shaping.php:40

Arabic shaping: replaces the characters of an isolating run sequence with their positional presentation forms and ligatures.

Methods

__construct()

Shape an isolating run sequence, after the Bidirectional Algorithm.

The joining context is read from the paragraph, so two letters separated only by characters of Joining_Type Transparent join even when those characters put them in different isolating run sequences: the explicit embedding codes (LRE, RLE, LRO, RLO and PDF) are Transparent.

public __construct(
    SeqData $seq,
    array<int,int> $paragraph,
    array<int,string> $joining = []
)

Parameters:

  • $seq (SeqData): Isolated run sequence array
  • $paragraph (array<int,int>): Codepoints of the paragraph, in logical order. Required: it is the only source of the joining context, and an empty one shapes every character as isolated.
  • $joining (array<int,string>): Joining_Type of each paragraph position (computed from $paragraph when empty)

Source: src/Bidi/Shaping.php:63

getSequence()

Returns the processed sequence

public getSequence(): SeqData

Returns: SeqData

Source: src/Bidi/Shaping.php:77

Inherited members

From Arabic