From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60016 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus-FAQ: xml to texi with Scheme prog Date: Mon, 21 Mar 2005 06:55:28 +0900 Message-ID: References: Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1111356023 17383 80.91.229.2 (20 Mar 2005 22:00:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2005 22:00:23 +0000 (UTC) Cc: Miles Bader Original-X-From: ding-owner+M8557@lists.math.uh.edu Sun Mar 20 23:00:23 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1DD8T5-0002ZZ-5i for ding-account@gmane.org; Sun, 20 Mar 2005 23:00:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DD8Oa-0007Sn-00; Sun, 20 Mar 2005 15:55:40 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DD8OV-0007Si-00 for ding@lists.math.uh.edu; Sun, 20 Mar 2005 15:55:35 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DD8OU-0000WM-E8 for ding@lists.math.uh.edu; Sun, 20 Mar 2005 15:55:34 -0600 Original-Received: from wproxy.gmail.com ([64.233.184.206]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DD8OT-0007eA-00 for ; Sun, 20 Mar 2005 22:55:33 +0100 Original-Received: by wproxy.gmail.com with SMTP id 49so198844wri for ; Sun, 20 Mar 2005 13:55:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=P9+xP5/nKPBRgELETLHI4Iu2m1u3Zn99OlZLvC1jVFMkraEMEQLB4RVGsYRGjuneyL8hMBn3QRBX33W2InpoY/283HX4ZWbZn+lDPXgQT9+v4DeKYYX4BLU8EZKVji1rC7SiLoRRq2lOkDjjPEApfS1DJ4gaRXEhPmXS1cD0Dcw= Original-Received: by 10.54.59.19 with SMTP id h19mr408510wra; Sun, 20 Mar 2005 13:55:30 -0800 (PST) Original-Received: by 10.54.19.70 with HTTP; Sun, 20 Mar 2005 13:55:28 -0800 (PST) Original-To: Reiner Steib , Ding List In-Reply-To: X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8557@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: news.gmane.org gmane.emacs.gnus.general:60016 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60016 On Sun, 20 Mar 2005 20:55:25 +0100, Reiner Steib wrote: > On Tue, Mar 15 2005, Karl Pfl=E4sterer wrote: > [ Scheme program to transform `gnus-faq.xml' to `gnus-faq.texi' ] >=20 > I have installed the files `xml2texi.scm' and `xml2texi.sh' in texi/ > in the v5-10 branch. I did some modifications on `xml2texi.scm' and > `gnus-faq.xml' to improve the printed output. ... > - Currently texi/gnus-faq.texi has the following arch tag: >=20 > ,---- > | @ignore > | arch-tag: 64dc5692-edb4-4848-a965-7aa0181acbb8 > | @end ignore > `---- >=20 > How to deal with this? Should the generated file be in the archive at all? Hmmm, I guess scheme is an unusual enough language that you can't rely on developers having it installed (is the implementation hairy enough that it can't be done in elisp or awk or something?). > Should we add something like... >=20 > (insert "@ignore\n " > "arch-tag: " > "64dc5692-edb4-4848-a965-7aa0181acbb8" > "\n@end ignore") >=20 > ... in `main' in `xml2texi.scm'? I guess this would make sure that it > is not confused with the arch tag of the file `xml2texi.scm'. Miles? Yes that would probably work. The rules for finding arch-tag: in a file are roughly: (1) somewhere in the first or last 1K (2K?) of the file, and (2) string "arch-tag:" on a line preceded by nothing but puncuation or whitespace. So splitting the "arch-tag:" in the insert would be a good idea (e.g., use "arch-" "tag:" instead of "arch-tag:"). Another method is to use an arch `explicit' tag for the generated file (gnus-faq.texi), instead of an embedded arch-tag: line; then the scheme source wouldn't have to insert anything special. The only downsides to this are that (1) explicit tags are slightly more clumsy than tag lines (file moves &c need explicit detection), and (2) _changing_ the tag basically means it's a new file (so the entire contents of the file will present in the changeset describing the changeover, not a diff); of course this last point is only a one-time cost. > (I will not install the re-created `gnus-faq.texi' before this is > clarified.) Thanks for caring... :-/ -Miles --=20 Do not taunt Happy Fun Ball.