From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10307 invoked from network); 5 Jun 2022 20:48:14 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 5 Jun 2022 20:48:14 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 7923428b for ; Sun, 5 Jun 2022 15:48:10 -0500 (EST) Received: from mx.stare.cz (uvt.stare.cz [185.63.96.79]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id a9b390c2 for ; Sun, 5 Jun 2022 15:48:08 -0500 (EST) Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id 80c43267; Sun, 5 Jun 2022 22:48:06 +0200 (CEST) Date: Sun, 5 Jun 2022 22:48:05 +0200 From: Jan Stary To: discuss@mandoc.bsd.lv Cc: Ingo Schwarze Subject: Re: .Bl -tag -width ".mdoc macro" not recognised sometimes(?) Message-ID: References: <20220605161635.chte3k2gotoceerf@tarta.nabijaczleweli.xyz> <20220605182824.xlnxr4tfb63yuddi@tarta.nabijaczleweli.xyz> <20220605201637.yaxcaveqsyf7da4d@tarta.nabijaczleweli.xyz> X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220605201637.yaxcaveqsyf7da4d@tarta.nabijaczleweli.xyz> > > In general, if a feature is used in important, widely used manual > > pages, that raises the priority of supporting it - even though in > > this case, admittedly, even a very high priority would help little > > to overcome the significant difficulty of implementing it. > > Not that it's the be-all end-all, but DCS[1] says: > 116 files grepped (95 results) > (if you filter by src:groff, that accounts for > 65 files grepped (65 results)) > this includes mandoc: > -- >8 -- > mdocml_1.14.6-1/TODO > > - When the -width string contains macros, the macros must be rendered > before measuring the width, for example > .Bl -tag -width ".Dv message" > in magic(5), located in src/usr.bin/file, is the same > as -width 7n, not -width 11n. > -- >8 -- > continuing from CVS: > -- >8 -- > The same applies to .Bl -column column widths; > reported again by Nicolas Joly Thu, 1 Mar 2012 13:41:26 +0100 via wiz@ 5 Mar > reported again by Franco Fichtner Fri, 27 Sep 2013 21:02:28 +0200 > reported again by Bruce Evans Fri, 17 Feb 2017 21:22:44 +0100 via bapt@ > loc *** exist *** algo *** size ** imp *** > -- >8 -- > > There's also one result for > -column ". > from manpages-l10n. > > Most of them are relatively simple: > .Cm restrict_loggedin_tty Ns = Ns Ar ttyglob* > .Ev DNSDB_API_KEY , APIKEY > .Fl bullet > this affects them, but, well, not much (45/30, 26/21, 10/7, respectively), > my 59/13 is, decidedly, a 3.26-fold edge-case. > > I'd say that the shorthand assessment from the TODO and yours, above, > are unfortunately accurate. > > [1]: https://codesearch.debian.net/search?q=-width+%22.&literal=1 For comparison, in OpenBSD's /usr/share/man, the only use is the self-referencing roff(7). /usr/share/man/man1/indent.1:.Bl -tag -width "./.indent.pro" -compact /usr/share/man/man1/make.1:.Bl -tag -width ".ARCHIVE" /usr/share/man/man1/make.1:.Bl -tag -width ".ARCHIVE" /usr/share/man/man1/make.1:.Bl -tag -width ".NOTPARALLEL" /usr/share/man/man1/make.1:.Bl -tag -width ".NOTPARALLEL" /usr/share/man/man1/make.1:.Bl -tag -width ".PRECIOUS" /usr/share/man/man5/elf.5:.Bl -tag -width ".shstrtab" /usr/share/man/man7/roff.7:.Bl -tag -width ".Bl -tag -width 2i" -offset indent -compact /usr/share/man/man8/restore.8:.Bl -tag -width "./restoresymtable" -compact -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv