Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format
Date: Tue, 13 Mar 2012 10:45:59
Message-Id: robbat2-20120313T103317-863001576Z@orbis-terrarum.net
In Reply to: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format by Brian Dolbec
1 On Tue, Mar 13, 2012 at 01:33:28AM -0700, Brian Dolbec wrote:
2 > ... and just when I was beginning to think no one actually cared :) ...
3 I specifically wanted to avoid any special regex to pull data out of the
4 XML. Merging fields is acceptable, splitting them based on regex isn't.
5
6 > The proper form of an irc url is in my example
7 > "irc://irc.gentoo.org/gentoo-guis" and I took it from gentoo's irc
8 > channel page at http://www.gentoo.org/main/en/irc.xml .
9 The '#' is debated in the URL scheme specs.
10 The last RFC draft I saw for it was:
11 http://tools.ietf.org/html/draft-butcher-irc-url-04
12
13 Earlier drafts did explicitly call for dropping the '#', but that lead
14 to trouble distinguishing between a user with the same name as a
15 channel.
16
17 > That would mean limiting a single <irc></irc> field to just valid url's
18 > just like the <homepage></homepage> field.
19 We can allow 0 or more irc fields in the DTD...
20
21 > Personally I would find it quite simple to use a reg expression to
22 > extract a valid irc url from a mixture of written text and url.
23 > <irc>#gentoo-guis on the freenode IRC network, irc://irc.gentoo.org/gentoo-guis</irc>
24 Don't use a regex on XML. Actually connect it properly.
25
26
27 > Would it be better that I create 2 irc sub data types then?
28 >
29 > <irc>
30 > <description>#gentoo-guis on the freenode IRC network</description>
31 > <url>irc://irc.gentoo.org/gentoo-guis</url>
32 > </irc>
33 No, that's really bloated.
34
35 > So far it seems many/most systems do not come setup to recognize and
36 > take proper action for irc:// mime types like they do for http://
37 It's not a mime type. It's URL scheme.
38
39 Docbook/GuideXML style:
40
41 Option 1a)
42 <irc link="irc://irc.gentoo.org/#gentoo-guis" />
43 Option 1b)
44 <irc link="irc://irc.gentoo.org/#gentoo-guis">
45 For GUI issues in Gentoo
46 </irc>
47
48 HTML style:
49
50 Option 2a)
51 <a rel="irc" href="irc://irc.gentoo.org/#gentoo-guis" />
52 Option 2b)
53 <a rel="irc" href="irc://irc.gentoo.org/#gentoo-guis">
54 For GUI issues in Gentoo
55 </a>
56
57 --
58 Robin Hugh Johnson
59 Gentoo Linux: Developer, Trustee & Infrastructure Lead
60 E-Mail : robbat2@g.o
61 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85