isBrahmicFormatControl function

bool isBrahmicFormatControl(
  1. int rune
)

Formatting characters tolerated explicitly by the Brahmic parser: ZWJ, ZWNJ (zero phonetic output, never create/delete an inherent schwa), CGJ (ordering semantics only, no readable output), and Unicode variation selectors (display variant selectors, zero phonetic output).

Implementation

bool isBrahmicFormatControl(int rune) =>
    rune == 0x200C ||
    rune == 0x200D ||
    rune == 0x034F ||
    (rune >= 0xFE00 && rune <= 0xFE0F) ||
    (rune >= 0xE0100 && rune <= 0xE01EF);