Documentation ¶
Overview ¶
Package hyphen hyphenates text using existing Hunspell hyphenation dictionaries.
This is a port of https://github.com/Kozea/Pyphen
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LanguageFallback ¶
Get a fallback language available in our dictionaries.
http://www.unicode.org/reports/tr35/#Locale_Inheritance
We use the normal truncation inheritance. This function needs aliases including scripts for languages with multiple regions available.
Types ¶
type Data ¶
type Data struct { // a string like `'ff=f'`, that describes how hyphenation should // take place. Changes [2]string // where to substitute the change, counting from the current point Index int // how many characters to remove while substituting the nonstandard // hyphenation Cut int }
Data stores information about nonstandard hyphenation at a point.
type HyphDicReference ¶
Click to show internal directories.
Click to hide internal directories.