From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout.scc.kit.edu (scc-mailout.scc.kit.edu [129.13.185.201]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p63GLOVG016945 for ; Sun, 3 Jul 2011 12:21:24 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-01 with esmtp (Exim 4.72 #1) id 1QdPQA-0004pn-QL; Sun, 03 Jul 2011 18:21:22 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1QdPQA-0003AJ-Qq for discuss@mdocml.bsd.lv; Sun, 03 Jul 2011 18:21:22 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.69) (envelope-from ) id 1QdPQA-0006vJ-Pb for discuss@mdocml.bsd.lv; Sun, 03 Jul 2011 18:21:22 +0200 Received: from schwarze by usta.de with local (Exim 4.72) (envelope-from ) id 1QdPQA-0001Fz-Oo for discuss@mdocml.bsd.lv; Sun, 03 Jul 2011 18:21:22 +0200 Date: Sun, 3 Jul 2011 18:21:22 +0200 From: Ingo Schwarze To: discuss@mdocml.bsd.lv Subject: Re: Inconsistent sentence spacing Message-ID: <20110703162122.GC18906@iris.usta.de> References: <20110703175740.ad50c2f6.blink@bojary.koba.pl> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110703175740.ad50c2f6.blink@bojary.koba.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Paul, Paul Onyschuk wrote on Sun, Jul 03, 2011 at 05:57:40PM +0200: > Sub-section "Sentence Spacing" in mdoc(7) is a bit enigmatic for me. Admittedly, inter-sentence spacing is complicated (and still somewhat buggy). > With following example from manual page: > >> .Xr mandoc 1 . >> .Fl T Ns Cm ascii . > > Output looks like this: > >> mandoc(1). -Tascii. > > There isn't trailing space at end of the line, Right. We hardly ever want trailing whitespace, neither in input nor in output. > so I'm not sure where double whitespace cames from. A period at the end of line is interpreted as a full stop, even on a macro line, and after a full stop, we want extra spacing. > Morover changing period to comma will give only one space: > >> .Xr mandoc 1 , >> .Fl T Ns Cm ascii . > > Output: > >> mandoc(1), -Tascii. Yes, a comma does not end a sentence. > Shouldn't first example behave same as: > >> .Xr mandoc 1 . No Fl T Ns Cm ascii . > > which gives also one whitespace? No, because that period isn't at the end of a line. Consider: I beg to differ. Fruits vary, e.g. apples and oranges. Those are two sentences, not three. > Same (double whitespace) comes with exclamation and question marks. > Is that intended behavior? Yes, ".!?" are intended to all behave in the same way, see function mandoc_eos() in mandoc.c. Yours, Ingo -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv