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 18196 invoked from network); 5 Jun 2022 17:55:52 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 5 Jun 2022 17:55:52 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id dbda2f86 for ; Sun, 5 Jun 2022 12:55:49 -0500 (EST) Received: from mx.stare.cz (uvt.stare.cz [185.63.96.79]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id c4ee4196 for ; Sun, 5 Jun 2022 12:55:42 -0500 (EST) Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id 060b4f1b for ; Sun, 5 Jun 2022 19:55:40 +0200 (CEST) Date: Sun, 5 Jun 2022 19:55:39 +0200 From: Jan Stary To: discuss@mandoc.bsd.lv Subject: Re: .Bl -tag -width ".mdoc macro" not recognised sometimes(?) Message-ID: References: <20220605161635.chte3k2gotoceerf@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: <20220605161635.chte3k2gotoceerf@tarta.nabijaczleweli.xyz> On Jun 05 18:16:35, nabijaczleweli@nabijaczleweli.xyz wrote: > Hi! > > I'm attaching a manual that reproduces this; in short: > .Bl -tag -compact -offset 4n -width ".Sy \e\e , \ea , \eb , \et" > works, but > .Bl -tag -offset 4n -width ".Sy [\& Ns Ar c Ns Sy *] , [\& Ns Ar c Ns Sy * Ns Ar len Ns Sy \&]" > doesn't. > > Wherein "doesn't" is defined as "I think it's just taking the literal > width of the string", which means mandoc really struggles to set this: Quoting mdoc(7): The -width and -offset arguments accept macro names as described for Bd -offset, scaling widths as described in roff(7), or use the length of the given string. Is your -width a macro name (such as Ds) as descibed for -offset? No. Is it a scalinbg width as described in roff(7)? No. Apparently, mandoc uses the length of the given string then. AFAICT, that's what you told it to do. Jan -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv