# OfficeTextHyphenationPatterns

Resolves UTF-16 break positions using versioned US English and reformed German patterns.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`013c05ace7bb` with working tree changes

**Source**

[OfficeTextHyphenationPatterns.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/OfficeTextHyphenationPatterns.cs#L23)

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

Filter members 

Show inherited

## Methods

`public static IReadOnlyList<int> GetBreakpoints(string token, string? language)` [#](#method-getbreakpoints-string-string)

[OfficeTextHyphenationPatterns.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/OfficeTextHyphenationPatterns.cs#L29)

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)` [#](#method-supportslanguage-string)

[OfficeTextHyphenationPatterns.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/OfficeTextHyphenationPatterns.cs#L23)

Tests whether the tag selects an embedded pattern resource.

Parameters

**language string? required**

Returns

`bool`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public static IReadOnlyList<string> SupportedLanguages { get; }` [#](#property-supportedlanguages)

[OfficeTextHyphenationPatterns.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/013c05ace7bb14e293639941ec9cf54eb5177a90/OfficeIMO.Core/OfficeTextHyphenationPatterns.cs#L19)

Canonical language tags for the embedded resources.

<!-- PowerForge markdown artifact sha256:F05AB78EB375C1566B3D2479B6BD6A52F931177A06F33E1A44A9C2CE671EABD6 -->
