discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* desired .Bk semantics?
@ 2010-07-02 23:43 Ingo Schwarze
  2010-07-03  6:54 ` Jason McIntyre
  0 siblings, 1 reply; 8+ messages in thread
From: Ingo Schwarze @ 2010-07-02 23:43 UTC (permalink / raw)
  To: discuss

Hi,

after much headbanging while trying to understand tmac files,
i guess i finally figured out what .Bk -words is supposed to do.
It seems it has nothing to do with macros, but simply with -
lines in the input file!  My impression is that .Bk -words
avoids line breaks inside the output generated from each input
line.  Perhaps that's why it is called -words (as opposed to -line).
Duh.

Before i start implementing that - it will be a bit tricky,
because Bk will be the first macro having explicit BLOCKs and
implicit BODYs - i should like to get feedback whether you

 1) agree with my analysis
 2) agree that is sane semantics

As far as i can see, it does seem at least semi-sane and would
probably fix the remaining .Bk issues in our tree.

But i don't want to implement it and then have everybody yell at
me what a bad idea it is.  =:c)

Yours,
  Ingo


P.S.
Running the following test file through groff 1.20.1 (NEW groff)
seems to support my analysis.  Running it through our old groff
just shows how buggy our old groff is.  Oh well...


.Dd July 2, 2010
.Dt BK-BREAK 1
.Os
.Sh NAME
.Nm Bk-break
.Nd handling of word keeps
.Sh SYNOPSIS
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo
.Oo a Oc
.Oo b Oc
.Oc
.Ek
.Pp
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo
.Oo a Oc Oo b Oc
.Oc
.Ek
.Pp
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo a b
.Oc
.Ek
.Pp
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo a
b
.Oc
.Ek
.Pp
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo a Oc b
.Ek
.Pp
.Nm
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x x x
.Ar x x x x x x
.Bk -words
.Oo a Oc
b
.Ek
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

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

end of thread, other threads:[~2010-07-03 17:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 23:43 desired .Bk semantics? Ingo Schwarze
2010-07-03  6:54 ` Jason McIntyre
2010-07-03 12:27   ` Kristaps Dzonsons
2010-07-03 14:11     ` Jason McIntyre
2010-07-03 16:24       ` Kristaps Dzonsons
2010-07-03 16:52         ` Jason McIntyre
2010-07-03 17:25           ` desired .Bk semantics? [UPDATED PATCH] Kristaps Dzonsons
2010-07-03 17:28         ` desired .Bk semantics? Ingo Schwarze

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