PdfHyphenationPatterns class
Namespace: PdfNetStack.Hyphenation
Assembly: PdfNetStack.Hyphenation.dll
Package: PdfNetStack.Hyphenation
Ready PdfHyphenators for many languages, from TeX’s hyph-utf8 patterns under permissive licenses, with the minimum letters before and after a hyphen each source gives. A language loads on first use and stays loaded; the hyphenators are shared and thread safe.
public static class PdfHyphenationPatternsInheritance
object ← PdfHyphenationPatterns
Examples
Section titled “Examples”var p = new PdfParagraph { Alignment = PdfTextAlignment.Justify, Hyphenator = PdfHyphenationPatterns.ForLanguage("de") };
var options = new HtmlConverterOptions { Hyphenators = PdfHyphenationPatterns.ForLanguage };
Properties
Section titled “Properties”Languages
Section titled “ Languages”The tags of the available pattern sets, such as de, en-gb and el-polyton, in order.
public static IReadOnlyList<string> Languages { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ForLanguage(string)
Section titled “ ForLanguage(string)”The hyphenator for a language tag, or null when there is none. Case and region do not matter
beyond spelling: de-AT and de_CH find German, en and en-CA American
English, en-GB and en-AU British. German in the 1901 spelling, such as de-1901,
finds nothing: its breaks differ and its patterns are not included.
public static PdfHyphenator? ForLanguage(string language)Parameters
Section titled “Parameters”language string
A language tag such as fr or pt-BR.