On Tue, Jan 28, 2025 at 6:40 PM G. Branden Robinson
<g.branden.robin...@gmail.com> wrote:
> > On Tue, Jan 21, 2025 at 8:11 AM onf <o...@disroot.org> wrote:
> > > I think groff would benefit from neatroff's hydash request:
> > >   hydash CHARS
> > >     Specify the list of characters after which words may be broken
> > >     (even when hyphenation is disabled) without inserting hyphens.
>
> The feature may already exist.
>
> Hyphenation doesn't apply to East Asian scripts, but breaking does.

Oh, you're right--and in fact this works even without the "East Asian"
cflags values.  A cflags of 4 is probably closer to what onf was
describing with neatroff's hydash request:, because then the following
character needn't have a special cflags property.

$ cat slashbreak.roff
.ll 1n
Quick, find the on/off switch!
$ nroff -Ww slashbreak.roff | cat -s
Quick,
find
the
on/off
switch!

$ sed '2i.cflags 4 /' slashbreak.roff | nroff -Ww | cat -s
Quick,
find
the
on/
off
switch!

Reply via email to