Skip to content

2.2.0: hyphenation and ligatures

Latest

Choose a tag to compare

@ottosmops ottosmops released this 22 Nov 13:16
· 1 commit to master since this release

Adds optional text clean-ups; the output of text() does not change unless they are switched on. Includes the security fix of 2.1.0.

Added

  • TextCleaner::joinHyphenation() and Extract::joinHyphenation(): join words hyphenated at the end of a line («Familien-↵anlass» → «Familienanlass»; before an upper-case letter the hyphen stays, digits, blank lines and page breaks are left alone) and remove soft hyphens. Knows the plain and the Unicode hyphen, the Fraktur double hyphen «⸗» and «¬».
  • TextCleaner::expandLigatures() and Extract::expandLigatures(): replace the ligatures U+FB00–U+FB06 (ff fi fl ffi ffl ſt st) with their letters.
  • Both are off by default; the output of text() does not change unless they are switched on.