Skip to content

Hyphenator

Defined in: src/core/hyphenation/liang.ts:60

A configured hyphenator for one language.

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”.

string

number[]