Class
OfficeTextHyphenationPatterns
OfficeIMO.Drawing
Resolves UTF-16 break positions using versioned US English and reformed German patterns.
Inheritance
- object
- OfficeTextHyphenationPatterns
Remarks
Resources are embedded and loaded once per language. Unknown languages, non-word tokens and tokens longer than 512 UTF-16 code units return no automatic breaks. Leading/trailing punctuation is retained; normalization never changes the caller's text or splits a grapheme.
Methods
public static IReadOnlyList<int> GetBreakpoints(string token, string? language) #Returns optional breaks in the original token, preserving case, punctuation and Unicode normalization.
Parameters
- token string
- One token; embedded whitespace, digits and internal punctuation suppress automatic breaks.
- language string?
- A supported language tag. An empty or unsupported tag produces no breaks.
Returns
IReadOnlyList<int>public static bool SupportsLanguage(string? language) #Tests whether the tag selects an embedded pattern resource.
Parameters
- language string?
Returns
boolInherited Methods
Properties
public static IReadOnlyList<string> SupportedLanguages { get; } #Canonical language tags for the embedded resources.