makeKanji

Returns a segment representing the specified text string encoded in kanji mode. Broadly speaking, the set of encodable characters are {kanji used in Japan, hiragana, katakana, East Asian punctuation, full-width ASCII, Greek, Cyrillic}. Examples of non-encodable characters include {ordinary ASCII, half-width katakana, more extensive Chinese hanzi}.

Return

a segment (not null) containing the text

Parameters

text

the text (not null), with only certain characters allowed

See also

.isEncodableAsKanji

Throws

if the string is null

if the string contains non-encodable characters