The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* Re: [TUHS] [groff] How to show all hyphenation points?
@ 2018-11-08 16:30 Doug McIlroy
  2018-11-08 16:49 ` G. Branden Robinson
  0 siblings, 1 reply; 2+ messages in thread
From: Doug McIlroy @ 2018-11-08 16:30 UTC (permalink / raw)
  To: g.branden.robinson, tuhs

> I have a vague intuition right now that the hyphenation decisions
> ...
> should be accessible without having to invoke the output driver.

Would't that require some way to detect a hyphenation event?
Offhand, I can't think of a way to do that.

But if you know in advance what word's hyphenation is in
question, you could switch environments, use the .ll 1u 
trick in a diversion, and base your decision on the result.

Doug

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [TUHS] [groff] How to show all hyphenation points?
  2018-11-08 16:30 [TUHS] [groff] How to show all hyphenation points? Doug McIlroy
@ 2018-11-08 16:49 ` G. Branden Robinson
  0 siblings, 0 replies; 2+ messages in thread
From: G. Branden Robinson @ 2018-11-08 16:49 UTC (permalink / raw)
  To: Doug McIlroy; +Cc: tuhs, groff

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

[adding groff@gnu back into CC]

I think the TUHS guys might be wondering where this topic came from. :)

At 2018-11-08T11:30:46-0500, Doug McIlroy wrote:
> > I have a vague intuition right now that the hyphenation decisions
> > ...
> > should be accessible without having to invoke the output driver.
> 
> Would't that require some way to detect a hyphenation event?
> Offhand, I can't think of a way to do that.

That's a harder problem than I was trying to crack; I just wanted to be
able to ask the underlying *roff where it _might_ hyphenate a word, not
where it actually ended up hyphenating one on the output.

> But if you know in advance what word's hyphenation is in
> question, you could switch environments, use the .ll 1u 
> trick in a diversion, and base your decision on the result.

That had not occurred to me; I am not au fait with diversions.  Thanks!

-- 
Regards,
Branden

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-08 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 16:30 [TUHS] [groff] How to show all hyphenation points? Doug McIlroy
2018-11-08 16:49 ` G. Branden Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).