From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S7PEt-0000Ot-Fx for garchives@archives.gentoo.org; Tue, 13 Mar 2012 10:45:59 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3D03E0A4A; Tue, 13 Mar 2012 10:45:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6E179E0A02 for ; Tue, 13 Mar 2012 10:45:24 +0000 (UTC) Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D95FA1B402A for ; Tue, 13 Mar 2012 10:45:23 +0000 (UTC) Received: (qmail 21161 invoked by uid 10000); 13 Mar 2012 10:45:23 -0000 Date: Tue, 13 Mar 2012 10:45:23 +0000 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format Message-ID: References: <1331456941.29064.34.camel@big_daddy.dol-sen.ca> <1331627608.29064.88.camel@big_daddy.dol-sen.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1331627608.29064.88.camel@big_daddy.dol-sen.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 5ebff306-feba-4252-b0a9-b9435bfea508 X-Archives-Hash: 3855f693b1675ef8962877442bff5ec7 On Tue, Mar 13, 2012 at 01:33:28AM -0700, Brian Dolbec wrote: > ... and just when I was beginning to think no one actually cared :) ... I specifically wanted to avoid any special regex to pull data out of the XML. Merging fields is acceptable, splitting them based on regex isn't. > The proper form of an irc url is in my example > "irc://irc.gentoo.org/gentoo-guis" and I took it from gentoo's irc > channel page at http://www.gentoo.org/main/en/irc.xml . The '#' is debated in the URL scheme specs. The last RFC draft I saw for it was: http://tools.ietf.org/html/draft-butcher-irc-url-04 Earlier drafts did explicitly call for dropping the '#', but that lead to trouble distinguishing between a user with the same name as a channel. > That would mean limiting a single field to just valid url's > just like the field. We can allow 0 or more irc fields in the DTD... > Personally I would find it quite simple to use a reg expression to > extract a valid irc url from a mixture of written text and url. > #gentoo-guis on the freenode IRC network, irc://irc.gentoo.org/gentoo-guis Don't use a regex on XML. Actually connect it properly. > Would it be better that I create 2 irc sub data types then? > > > #gentoo-guis on the freenode IRC network > irc://irc.gentoo.org/gentoo-guis > No, that's really bloated. > So far it seems many/most systems do not come setup to recognize and > take proper action for irc:// mime types like they do for http:// It's not a mime type. It's URL scheme. Docbook/GuideXML style: Option 1a) Option 1b) For GUI issues in Gentoo HTML style: Option 2a) Option 2b) For GUI issues in Gentoo -- Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : robbat2@gentoo.org GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85