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 mandoc.bsd.lv (OpenSMTPD) with ESMTP id ad01fd29 for ; Sat, 15 Feb 2020 10:17:14 -0500 (EST) Received: from hekate.asta.kit.edu ([141.3.145.153] helo=hekate.usta.de) by scc-mailout-kit-02.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1j2zBw-0007DK-2W; Sat, 15 Feb 2020 16:17:13 +0100 Received: from donnerwolke.asta.kit.edu ([141.3.145.61] helo=donnerwolke.usta.de) by hekate.usta.de with esmtp (Exim 4.92.2) (envelope-from ) id 1j2zBv-0007Yt-7M; Sat, 15 Feb 2020 16:17:11 +0100 Received: from athene.asta.kit.edu ([141.3.145.60] helo=athene.usta.de) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1j2zBv-0003aH-2Z; Sat, 15 Feb 2020 16:17:11 +0100 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id fb6149db; Sat, 15 Feb 2020 16:17:11 +0100 (CET) Date: Sat, 15 Feb 2020 16:17:11 +0100 From: Ingo Schwarze To: Stephen Gregoratto Cc: discuss@mandoc.bsd.lv Subject: Re: Assert fails when outputting mdoc -> man with EQN Message-ID: <20200215151711.GB85600@athene.usta.de> References: <20200215142807.xsiwplllqpp735yg@dextop.sgregoratto.me> 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: <20200215142807.xsiwplllqpp735yg@dextop.sgregoratto.me> User-Agent: Mutt/1.12.2 (2019-09-21) Hi Stephen, Stephen Gregoratto wrote on Sun, Feb 16, 2020 at 01:28:07AM +1100: > I recently forked a simple password generator[1] and converted some > equations in the manpage[2] to eqn. That's not a particularly good idea for such simple formulas. It harms portability for little benefit. > For some reason, converting from mdoc to man triggers an assertion The reason is that eqn(7) and tbl(7) output modules simply do not exist. Your eqn(7) code is parsed into an abstract syntax tree as usual, and then that syntax tree would have to be converted back into eqn(7) code embedded in the man(7) output, or - even more difficult - into man(7) code proper. Writing such eqn(7) and tbl(7) code generators would require a non-trivial amount of work. I added an entry to the TODO file, see below. But given that -T man is mostly needed for software that wants to be unusually portable and given that using eqn(7) or tbl(7) significantly restricts portability in the first place, this doesn't feel like a particularly high-priority task. Yours, Ingo - -T man does not handle eqn(7) and tbl(7) Stephen Gregoratto 16 Feb 2020 01:28:07 +1100 loc ** exist ** algo ** size *** imp ** -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv