Table of Contents

Class EuropeanHyphenation

Namespace
NetPdf.Languages.European
Assembly
NetPdf.Languages.European.dll

Registers the European-language hyphenators with NetPdf's HyphenationRegistry. Call Register() once at startup (a [ModuleInitializer] also drives it when this assembly is loaded); afterwards the registered languages hyphenate through the registry's public API (TryHyphenate(string, ReadOnlySpan<char>, out int[], int, int)). This build registers a German + French starter set.

public static class EuropeanHyphenation
Inheritance
EuropeanHyphenation
Inherited Members

Remarks

Layout routing. Once registered, these hyphenators are used automatically during rendering: NetPdf's block layout resolves the hyphens: auto hyphenator from a block's effective HTML lang (the nearest lang up the ancestor chain, e.g. <html lang="de">) through HyphenationRegistry. So a German document hyphenates with these patterns when the pack is loaded. Per-run/mixed-language lang within a single block is a follow-up.

Data status. Hyphenation patterns come from the CTAN tex-hyphen project (LPPL) — attribution per language is preserved in NOTICE. This build ships a correct starter set for German and French (a real pattern subset + an explicit-hyphenation exception list) so the pack and the registry are functional and tested end to end. The remaining listed European languages and the full CTAN pattern sets are vendored incrementally behind this same Register() seam with no API change (see the pack README).

Methods

Register()

Idempotent — registers each bundled European language with HyphenationRegistry. Runs automatically on load; exposed for explicit / testable use.

public static void Register()