Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextHyphenationPatterns

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
013c05ace7bb with working tree changes
Modifiers
static

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 required
One token; embedded whitespace, digits and internal punctuation suppress automatic breaks.
language string? required
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? required

Returns

bool

Properties

public static IReadOnlyList<string> SupportedLanguages { get; } #

Canonical language tags for the embedded resources.