Hangul

Algorithmic constants for the composition of Hangul Jamo into precomposed Hangul syllables, as defined in section 3.12 of the Unicode standard.

Namespace: Com\Tecnick\Unicode\Data

Final: Yes

File: Hangul.php line 44

Algorithmic constants for the composition of Hangul Jamo into precomposed Hangul syllables, as defined in section 3.12 of the Unicode standard.

Precomposed syllables occupy the range U+AC00-U+D7A3 and are derived by:

S = SBase + (L - LBase) * NCount + (V - VBase) * TCount + (T - TBase)

where T = TBase means “no trailing consonant” (TBase itself is not a trailing consonant; the effective trailing index is 0 in that case).

Tags

Constants

LBASE

File: Hangul.php line 54

public mixed LBASE = 0x1100

LCOUNT

File: Hangul.php line 75

public mixed LCOUNT = 19

Covers U+1100-U+1112.

NCOUNT

File: Hangul.php line 97

public mixed NCOUNT = self::VCOUNT * self::TCOUNT

NCount = VCount * TCount = 21 * 28 = 588.

SBASE

File: Hangul.php line 49

public mixed SBASE = 0xac00

SCOUNT

File: Hangul.php line 104

public mixed SCOUNT = self::LCOUNT * self::NCOUNT

SCount = LCount * NCount = 19 * 588 = 11172.

TBASE

File: Hangul.php line 68

public mixed TBASE = 0x11a7

The first actual trailing consonant (jongseong) is U+11A8; TBase is one below that, so that (T - TBase) gives a 1-based index and a T of TBase itself encodes “no trailing consonant” (index 0).

TCOUNT

File: Hangul.php line 90

public mixed TCOUNT = 28

Effective trailing consonants: U+11A8-U+11C2 (27 codepoints). The 28th slot represents absence of a trailing consonant.

VBASE

File: Hangul.php line 59

public mixed VBASE = 0x1161

VCOUNT

File: Hangul.php line 82

public mixed VCOUNT = 21

Covers U+1161-U+1175.