Zorg.Pdf.Hyphenation 0.5.0

dotnet add package Zorg.Pdf.Hyphenation --version 0.5.0
                    
NuGet\Install-Package Zorg.Pdf.Hyphenation -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Zorg.Pdf.Hyphenation" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zorg.Pdf.Hyphenation" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Zorg.Pdf.Hyphenation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zorg.Pdf.Hyphenation --version 0.5.0
                    
#r "nuget: Zorg.Pdf.Hyphenation, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Zorg.Pdf.Hyphenation@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zorg.Pdf.Hyphenation&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Zorg.Pdf.Hyphenation&version=0.5.0
                    
Install as a Cake Tool

Zorg.Pdf.Hyphenation

Hyphenation for Zorg.Pdf: Liang's patterns, as TeX uses them, for English (US and UK), German (1996 spelling), French, Norwegian (bokmål and nynorsk) and Danish. Justified and narrow text breaks long words where the language allows instead of leaving gaps or breaking them between letters.

Pre-release: the API will change before 1.0.

using Zorg.Pdf;
using Zorg.Pdf.Hyphenation;

var options = new RenderOptions { Fonts = fonts, Hyphenator = PatternHyphenator.Default };
// In the document: a style with Hyphens = Hyphens.Auto (JSON "hyphens": "auto"), and the document's or the text's language.
  • Only a word that doesn't fit at the end of a line is hyphenated; headings aren't, unless their style says so.
  • A hyphen added at a line end copies out of the PDF as a soft hyphen, so copied text keeps whole words.
  • Each language's patterns are read on first use (German, the largest, in about 45 ms) and kept for the process.

Patterns and their licences

The pattern files come from the hyph-utf8 project and ship unchanged, with their notices, in the package's patterns folder:

Language File Licence
English (US) hyph-en-us.tex Copying and distribution permitted, with or without modification, provided the notice is kept (Gerard D.C. Kuiken)
English (UK) hyph-en-gb.tex MIT (Dominik Wujastyk, Graham Toal)
German (1996) hyph-de-1996.tex MIT
French hyph-fr.tex MIT (Daniel Flipo, Bernard Gaulle, Arthur Reutenauer)
Norwegian hyph-no.tex, hyph-nb.tex, hyph-nn.tex Copying and distribution permitted, with or without modification, provided the notice is kept (Rune Kleveland, Ole Michael Selberg, Karl Ove Hufthammer)
Danish hyph-da.tex MIT, or LPPL 1.3 or later (Frank Jensen)

Documentation

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 49 11/15/2026
0.1.0-preview.1 51 11/15/2026