[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: *roff hyphenation trivia challenge
From: |
Tadziu Hoffmann |
Subject: |
Re: *roff hyphenation trivia challenge |
Date: |
Tue, 2 Apr 2024 22:09:55 +0200 |
User-agent: |
Mutt/1.11.4 (2019-03-13) |
> Groff already *does* ignore correct hyphenation points,
> namely before the first "\%" (but allows them afterward).
>
> My concern is that if "\%" only allows specifying
> *additional* hyphenation points, then we have no method
> of forbidding hyphenation points that the patterns
> incorrectly allow.
I'm revising my empirical description of groff's behavior.
Groff allows normal hyphenation after the *last* "\%" in
the word. Thus, if we end the word with "\&\%", it has the
effect of only allowing hyphenation at any of the "\%" given.
(If the word contains no "\%" other than the trailing "\&\%",
the effect is the same as preceding the word with "\%", i.e.,
hyphenation is suppressed in this occurrence of the word.)
The behavior feels weird, but I'm satisfied that my
requirements can be fulfilled using this trick.
Re: *roff hyphenation trivia challenge, Tadziu Hoffmann, 2024/04/02
Re: *roff hyphenation trivia challenge, Dave Kemper, 2024/04/02