Table of contents
Com › Tecnick › Unicode › Substitution
Final: Yes
File: Devanagari.php line 48
Repositions Devanagari left-positional matras (vowel signs with Indic Positional Category “Left”, such as U+093F VOWEL SIGN I) to precede their base consonant cluster in the codepoint array.
In Unicode logical order a left matra is stored after the consonant (or conjunct cluster) it modifies. For PDF glyph streams the matra glyph must appear before the consonant, so each left matra is moved to immediately before the cluster that precedes it.
A consonant cluster is: base_consonant (VIRAMA base_consonant)* Only base consonants in the range U+0915–U+0939 and U+0958–U+095F are recognised as cluster heads. Orphaned matras (no preceding consonant) and unknown codepoints are left unchanged.
Tags
since: 2026-04-30
category: Library
author: Nicola Asuni info@tecnick.com
copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
getOrdarr() : array<int, int>: Returns the transformed codepoint array.
Methods
__construct()
File: Devanagari.php line 60
public __construct(array<int, int> $ordarr) : mixed
Parameters
- $ordarr : array<int, int>: Array of Unicode codepoints.
getOrdarr()
File: Devanagari.php line 71
public getOrdarr() : array<int, int>
Return values
array<int, int>