Hyphenator
Defined in: src/core/hyphenation/liang.ts:60
A configured hyphenator for one language.
Properties
Section titled “Properties”hyphenate
Section titled “hyphenate”hyphenate: (
word) =>number[]
Defined in: src/core/hyphenation/liang.ts:66
Return the 0-indexed break positions inside word. A position p means the
word can be split between word[p-1] and word[p]; e.g. “computer” with
breaks [3,5] → “com·pu·ter”.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number[]