Back to API Reference
Interface
IWordSegmenter
abstract
Script-specific word segmenter used to tailor contextual scripts.
Remarks
Implementations segment a contiguous run of codepoints belonging to a single script and write
Optional at word boundaries. Register via Register. Registering a segmenter for a script that already has one replaces it.public UnicodeScript Script{ get }The Unicode script this segmenter handles.
public abstract void Segment(ReadOnlySpan<int> codepoints, int start, int length, Span<LineBreakType> breaks)Segments a span of codepoints and injects Optional break opportunities at word boundaries.
