From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from acme.spoerlein.net (acme.spoerlein.net [188.72.220.29]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o5A6WS9o016102 for ; Thu, 10 Jun 2010 02:32:29 -0400 (EDT) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id o5A6WQos079241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 10 Jun 2010 08:32:26 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1276151546; bh=oGHs+G5FutX1q0+GDofsXjHg+ZMqs0P3M4rO0Jce8nQ=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=Gnu4QYqUizHSNgUeyoAvrE15aX7r1Bglf0LG+bZZe73CkL5h6vAzGfsfKFo12mxwK vWe0x47uHNADXkXHKX84JWOD6DXRpg1GLvF1wJ1QQMXOguzZCyKY/VUvAf/Z5JSP77 2kfaT5pHi9SE8Wp8+b+cPljBFEX/1Me9RfRZTtT4= Received: (from uqs@localhost) by acme.spoerlein.net (8.14.4/8.14.4/Submit) id o5A6WQHK079240 for tech@mdocml.bsd.lv; Thu, 10 Jun 2010 08:32:26 +0200 (CEST) (envelope-from uqs@spoerlein.net) Date: Thu, 10 Jun 2010 08:32:26 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: tech@mdocml.bsd.lv Subject: Re: Symbols and troff conditionals Message-ID: <20100610063226.GC39829@acme.spoerlein.net> References: <20100609162836.GZ39829@acme.spoerlein.net> <4C0FF588.10506@bsd.lv> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4C0FF588.10506@bsd.lv> User-Agent: Mutt/1.5.20 (2009-06-14) On Wed, 09.06.2010 at 22:11:52 +0200, Kristaps Džonsons wrote: > > Also, conditionals when used like this > > .if n \{\ > > do > > .\} > > .if t \{\ > > do not > > .\} > > complain. > > Also fixed, but please let me know if this is puking in different ways > on your manpages, as it was in kind of a tricksy place. Hey Kristaps, the other fix is fine, this fix however is a regression, though :( It now barfs on some other conditionals, here's a real life sample: .Dd June 9, 2010 .Dt TITLE 1 .Os .Sh NAME .Nm test .Nd test .Sh SYNOPSIS foo .Sh DESCRIPTION Testing symbols like \(+-\*(Pi or \(-> fails somehow. Also, conditionals when used like this .if n \{\ do .\} .if t \{\ do not .\} complain. lib/msun/atan2.3 has also these kinds of conditionals: The .Fn atan2 function is used mostly to convert from rectangular (x,y) to polar .if n\ (r,theta) .if t\ (r,\(*h) coordinates that must satisfy x = .if n\ r\(**cos theta .if t\ r\(**cos\(*h and y = .if n\ r\(**sin theta. .if t\ r\(**sin\(*h. These equations are satisfied when (x=0,y=0) is mapped to .if n \ (r=0,theta=0). .if t \ (r=0,\(*h=0). In general, conversions to polar coordinates should be computed thus: % groff -Tascii -mandoc /tmp/test.1 TITLE(1) FreeBSD General Commands Manual TITLE(1) NAME test -- test SYNOPSIS foo DESCRIPTION Testing symbols like +-pi or -> fails somehow. Also, conditionals when used like this do complain. lib/msun/atan2.3 has also these kinds of conditionals: The atan2() function is used mostly to convert from rectan- gular (x,y) to polar (r,theta) coordinates that must satisfy x = r*cos theta and y = r*sin theta. These equations are satisfied when (x=0,y=0) is mapped to (r=0,theta=0). In general, conversions to polar coordinates should be computed thus: FreeBSD 8.1 June 9, 2010 FreeBSD 8.1 % ./mandoc /tmp/test.1 TITLE(1) General Commands Manual TITLE(1) NAME test -- test SYNOPSIS foo DESCRIPTION Testing symbols like +-pi or -> fails somehow. Also, conditionals when used like this do complain. lib/msun/atan2.3 has also these kinds of conditionals: The atan2() function is used mostly to convert from rectangular (x,y) to polar coordinates that must satisfy x = theta theta. is mapped to (r=0,theta=0). In general, conversions to polar coordinates should be computed thus: FreeBSD 8.1-PRERELEASE June 9, 2010 FreeBSD 8.1-PRERELEASE % ./mandoc -Tlint /tmp/test.1 /tmp/test.1:27:2: unknown macro will be lost: unknown macro: if (1)% mandoc -Tlint /tmp/test.1 # (this is mandoc 1.10.1) /tmp/test.1:10:22: bad escape sequence /tmp/test.1:11:1: bad escape sequence /tmp/test.1:15:1: request scope close w/none open /tmp/test.1:18:1: request scope close w/none open -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv