From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-02.scc.kit.edu (scc-mailout-kit-02.scc.kit.edu [129.13.231.82]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id db1c1849; for ; Mon, 29 Dec 2014 14:36:36 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (envelope-from ) id 1Y5g7E-0004ac-Nr; Mon, 29 Dec 2014 20:36:33 +0100 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1Y5g7E-0007To-HN; Mon, 29 Dec 2014 20:36:32 +0100 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1Y5g7E-0004JF-F1; Mon, 29 Dec 2014 20:36:32 +0100 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1Y5g7E-0000vl-54; Mon, 29 Dec 2014 20:36:32 +0100 Date: Mon, 29 Dec 2014 20:36:31 +0100 From: Ingo Schwarze To: Steffen Nurpmeso Cc: tech@mdocml.bsd.lv Subject: Re: mdocml's .Ql doesn't map to original and GNU mdoc(7) Message-ID: <20141229193631.GE17408@iris.usta.de> References: <20141229121746.vAh4wKsy%sdaoden@yandex.com> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141229121746.vAh4wKsy%sdaoden@yandex.com> User-Agent: Mutt/1.5.21 (2010-09-15) Hi Steffen, Steffen Nurpmeso wrote on Mon, Dec 29, 2014 at 01:17:46PM +0100: > mdocml's mdoc.7 says > > Ql single-quoted literal text: `text' > > but that is not what .Ql is about: > > .Ql The quoted literal macro behaves differently in troff > and nroff mode. If formatted with @L_NROFF@(1)[221], a > quoted literal is always quoted. If formatted with > troff, an item is only quoted if the width of the item > is less than three constant width characters. This is > to make short strings more visible where the font > change to literal (constant width) is less noticeable. > > The behaviour is already device-dependent in "old -mdoc", before > 1991-03-07. The .Ql macro is physical markup, so it is rarely used in modern mdoc(7) documents. Actually, i wouldn't know what purpose to recommend it for, at all. For terminal output, precise output compatibility with groff matters. For other output modes, not so much. For a rather obscure legacy macro such as .Ql, even less. So i'd rather keep output consistent across devices instead of emulating historical behaviour. Besides, PostScript and PDF output have much worse formatting issues than this. Even for HTML output, there are more interesting things to do. > (Without history i'm guessing, but maybe mdocml was > ment for TTY only at first glance, Not quite, the original motivation for mdoc*ML* was HTML output, and for the first three months of development, HTML was the only output mode. Kristaps only started coding terminal output on February 20, 2009. > in which case the above is absolutely correct, but it lost that > property once more output formats where added?) No, that's not what happened. Yours, Ingo -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv