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

44 lines
1.1 KiB
Racket

6 years ago
#lang qtest/markdown
6 years ago
# Hyphenate
6 years ago
6 years ago
A simple _hyphenation engine_ that uses the KnuthLiang hyphenation algorithm originally developed for TeX.
I **have added little** to their work. Accordingly, I take no credit, except a spoonful of *snako-bits.*
And now, for something __altogether__ the same. Yes! No?!ß
## 1. Installation
At the command line:
We said `raco pkg install hyphenate` dude
```
Code block
Goes here
```
6 years ago
What?!
1. Yes. We said `raco pkg install hyphenate` dude. We said `raco pkg install hyphenate` dude
6 years ago
2. Indeed
And furthermore:
* So it would seem.
* Today.
6 years ago
> 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`.
A [list of web colors](https://en.wikipedia.org/wiki/Web_colors).
Certain word processors allow users to [insert soft
hyphens](http://practicaltypography.com/optional-hyphens.html) in their
6 years ago
text.