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/hyphenate
Matthew Butterick d74075b724 improve handling of intercapped words
Intercapped (aka camelCase) words are treated like a list of subwords joined by hyphens, but only if the pieces meet the usual min-length threshold. But don’t use this splitting technique when unhyphenating.
2 years ago
..
hyphenate improve handling of intercapped words 2 years ago
.gitignore add typed/hyphenate 10 years ago
LICENSE.md update hyphenate with official MIT-licensed patterns 3 years ago
README.md Update README.md 4 years ago
info.rkt adjust info.rkt 9 years ago

README.md

hyphenate Build Status

Racket implementation of the KnuthLiang hyphenation algorithm.

Install from the command line like so:

raco pkg install hyphenate

Later, you an update like so:

raco pkg update hyphenate

Import in standard mode:

(require hyphenate)

Or in safe mode (adds 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.

Project status

Complete. Maintained but no further updates planned. Once upon a time, I had an ambition to support more languages. But I dont personally need that, and no one is clamoring for it.