From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60022 Path: news.gmane.org!not-for-mail From: sigurd@12move.de (Karl =?iso-8859-1?Q?Pfl=E4sterer?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus-FAQ: xml to texi with Scheme prog Date: Mon, 21 Mar 2005 23:11:48 +0100 Organization: Lemis World Message-ID: References: Reply-To: khp@pflaesterer.de (Karl =?iso-8859-1?Q?Pfl=E4sterer?=) NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111443333 6507 80.91.229.2 (21 Mar 2005 22:15:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2005 22:15:33 +0000 (UTC) Original-X-From: ding-owner+M8564@lists.math.uh.edu Mon Mar 21 23:15:33 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1DDVB1-0005Ow-Nc for ding-account@gmane.org; Mon, 21 Mar 2005 23:15:13 +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 1DDVBe-0000Me-00; Mon, 21 Mar 2005 16:15:50 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DDVBX-0000MY-00 for ding@lists.math.uh.edu; Mon, 21 Mar 2005 16:15:43 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DDVBP-0008K1-Oy for ding@lists.math.uh.edu; Mon, 21 Mar 2005 16:15:36 -0600 Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1DDVBO-0008RH-00 for ; Mon, 21 Mar 2005 23:15:34 +0100 Original-To: ding@gnus.org Original-Path: wintendo.pflaesterer.de!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 34 Original-NNTP-Posting-Host: b85dc.b.pppool.de Original-X-Trace: quimby.gnus.org 1111443334 32442 213.7.133.220 (21 Mar 2005 22:15:34 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 21 Mar 2005 22:15:34 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Hamster/2.0.6.0 Cancel-Lock: sha1:jQaBxFmTCl+OZSJey2L4capCOgY= X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8564@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: news.gmane.org gmane.emacs.gnus.general:60022 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60022 On 20 Mrz 2005, snogglethorpe@gmail.com wrote: > 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?). Well it was easiest with Scheme; it could be done with any language where you have libs (or write yourself some) with which you can parse and transform the XML source. Scheme with SSAX libs works very good here (and shouldn't be sooo unusual in a community of (X)Emacs users). > >> Should we add something like... >> >> (insert "@ignore\n " >> "arch-tag: " >> "64dc5692-edb4-4848-a965-7aa0181acbb8" >> "\n@end ignore") >> >> ... 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:"). A solution for this should be trivial. KP