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.
Matthew Butterick ee8e45d2d9 | 9 years ago | |
---|---|---|
.. | ||
fr | 9 years ago | |
scribblings | 9 years ago | |
us | 9 years ago | |
.gitignore | 10 years ago | |
.travis.yml | 9 years ago | |
LICENSE | 11 years ago | |
README.md | 9 years ago | |
bootstrap.rkt | 9 years ago | |
core.rkt | 9 years ago | |
exception-prep.rkt | 9 years ago | |
fr.rkt | 9 years ago | |
info.rkt | 9 years ago | |
main.rkt | 9 years ago | |
params.rkt | 9 years ago | |
pattern-prep.rkt | 9 years ago | |
tests.rkt | 9 years ago | |
us.rkt | 9 years ago |
README.md
hyphenate
Racket implementation of the Knuth–Liang hyphenation algorithm.
Install from the command line like so:
raco pkg install hyphenate
Then require it in your Racket file, in standard mode:
(require hyphenate)
In safe mode (with contracts):
(require (submod hyphenate safe))
And enjoy:
(hyphenate "Hyphenation algorithm" #\-)
> "Hy-phen-ation al-go-rithm"
Full docs are installed with the package. You can also read the docs here.