9front - general discussion about 9front
 help / color / mirror / Atom feed
[parent not found: <3638FBEF9AC44BA220720D0E4D3CDE45@ewsd.inri.net>]
* Re: [9front] werc/apps/wman botches some man page links
@ 2018-08-13  8:26 Travis Moore
  2018-08-13 14:23 ` Stanley Lieber
  0 siblings, 1 reply; 11+ messages in thread
From: Travis Moore @ 2018-08-13  8:26 UTC (permalink / raw)
  To: 9front

if you insert a backslash before the offending
hyphen in the source it prevents the split.

not sure if this is helpful, but perhaps it
shouldn't be splitting in the regular text
output either...

from /sys/doc/troff.ps!25 :

	Words that contain hyphens ... are
	always subject to splitting after
	those characters, whether automatic
	hyphenation is on or off.

so you can't just turn off hyphenation...

umbraticus


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9front] werc/apps/wman botches some man page links
@ 2018-08-14  4:49 Travis Moore
  0 siblings, 0 replies; 11+ messages in thread
From: Travis Moore @ 2018-08-14  4:49 UTC (permalink / raw)
  To: 9front

> I think the best solution is to insert a newline
> immediately after the man page link, wherever
> it may fall. This isn’t perfect but it’s better than
> having one infinitely long line sticking out of
> an otherwise consistently formatted section.

Sorry, I think I was unclear.  What I mean is
if, eg, you change /sys/man/8/venti:319 to read:

.IR venti\-fmt (8)).

then it won't break on the hyphen and the string
will be moved to the next line, like this:


	were formatted with fmtarenas or fmtisect (see
	venti-fmt(8)). In particular, only the configuration needs

which will look better than breaking after the
string, and then markdown filter can be applied
as usual...

My other point was that perhaps these strings
shouldn't be broken in normal nroff output
anyway. I mean, it breaks plumbing the string,
which is kind of the whole point of the cmd(#)
format..., so fixing it in the source is
perhaps justified?

if you grep -c '^\.IR.*-.*\(' /sys/man/*/*
you can see that there aren't that many, and
they're all of the pesky venti-x variety..

umbraticus


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9front] werc/apps/wman botches some man page links
@ 2018-08-14 16:38 sl
  0 siblings, 0 replies; 11+ messages in thread
From: sl @ 2018-08-14 16:38 UTC (permalink / raw)
  To: 9front

>> I think the best solution is to insert a newline
>> immediately after the man page link, wherever
>> it may fall. This isn’t perfect but it’s better than
>> having one infinitely long line sticking out of
>> an otherwise consistently formatted section.
> 
> Sorry, I think I was unclear.  What I mean is
> if, eg, you change /sys/man/8/venti:319 to read:
> 
> .IR venti\-fmt (8)).

[...]

> My other point was that perhaps these strings
> shouldn't be broken in normal nroff output
> anyway. I mean, it breaks plumbing the string,
> which is kind of the whole point of the cmd(#)
> format..., so fixing it in the source is
> perhaps justified?

This sounds reasonable to me.

Anyone else have an opinion?

sl


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9front] werc/apps/wman botches some man page links
@ 2018-08-14 16:40 sl
  0 siblings, 0 replies; 11+ messages in thread
From: sl @ 2018-08-14 16:40 UTC (permalink / raw)
  To: 9front

Counterpoint:

If we hack nroff to solve a wman problem, now wman needs 9front.

sl


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <FA9BA3B9FCBF4FA28D3066A7570CD898@ewsd.inri.net>]

end of thread, other threads:[~2018-08-16 15:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <6660A841262D98FFBB4792A0F0CB0E5D@ewsd.inri.net>
2018-08-10  8:47 ` [9front] werc/apps/wman botches some man page links Ethan A. Gardener
     [not found] <3638FBEF9AC44BA220720D0E4D3CDE45@ewsd.inri.net>
2018-08-12 16:50 ` Eckard Brauer
2018-08-13  8:26 Travis Moore
2018-08-13 14:23 ` Stanley Lieber
2018-08-14  4:49 Travis Moore
2018-08-14 16:38 sl
2018-08-14 16:40 sl
     [not found] <FA9BA3B9FCBF4FA28D3066A7570CD898@ewsd.inri.net>
2018-08-15 13:08 ` Ethan A. Gardener
2018-08-15 13:41   ` Stanley Lieber
2018-08-15 13:44     ` Stanley Lieber
2018-08-16 15:51       ` Ethan A. Gardener

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).