You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/quad/qtest/hyphenate.rkt

19 lines
650 B
Racket

6 years ago
#lang qtest/markdown
6 years ago
A simple _hyphenation engine_ that uses the KnuthLiang hyphenation algorithm originally developed for TeX.
6 years ago
I **have added little** to their work. Accordingly, I take no credit, except a spoonful of *snako-bits.*
6 years ago
And now, for something __altogether__ the same.
At the command line:
We said `raco pkg install hyphenate` dude
6 years ago
What?!
Hyphenate `xexpr` by calculating hyphenation points and inserting
`joiner` at those points. By default, `joiner` is the soft hyphen
\(Unicode 00AD = decimal 173\). Words shorter than
`#:min-length` `length` will not be hyphenated. To hyphenate words of
any length, use `#:min-length` `#f`.