From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o5QFMtGn032737 for ; Sat, 26 Jun 2010 11:22:56 -0400 (EDT) Received: from smtp-2.sys.kth.se (localhost [127.0.0.1]) by smtp-2.sys.kth.se (Postfix) with ESMTP id E5E1814DC41; Sat, 26 Jun 2010 17:22:49 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([127.0.0.1]) by smtp-2.sys.kth.se (smtp-2.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6PsnfhTieum4; Sat, 26 Jun 2010 17:22:38 +0200 (CEST) X-KTH-Auth: kristaps [130.237.221.96] X-KTH-mail-from: kristaps@bsd.lv Received: from [130.237.221.96] (ctime.pdc.kth.se [130.237.221.96]) by smtp-2.sys.kth.se (Postfix) with ESMTP id E760814C022; Sat, 26 Jun 2010 17:22:37 +0200 (CEST) Message-ID: <4C261D8F.30102@bsd.lv> Date: Sat, 26 Jun 2010 17:32:31 +0200 From: Kristaps Dzonsons User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090707) X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: Ingo Schwarze , "tech@mdocml.bsd.lv" Subject: Re: [PATCH] .nr for mdoc(7)] References: <20100626122711.GA15113@iris.usta.de> In-Reply-To: <20100626122711.GA15113@iris.usta.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Ingo et al., I've begun implementing a bit of a re-write of this patch. You can see it in the commit I just checked in. Here's how I'm laying it out. Basically, I'm adding generic support for registers. They're set in libroff and propogate into libmdoc and libman, which will do whatever (e.g., cue front-ends). Steps: (1) Add regs.h, which defines possible registers and their values. This is done. (2) roff_parseln() gets a non-const struct regset and can modify the values. See roff.c for this parsing. This is done. (3) libmdoc and libman receive a const regset. They operate on these values in their own ways to cue the front-end or change their parse behaviour. This is not yet done. (4) The front-ends response to cues. Not yet done. Thoughts? Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv