From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format
Date: Tue, 13 Mar 2012 10:45:23 +0000 [thread overview]
Message-ID: <robbat2-20120313T103317-863001576Z@orbis-terrarum.net> (raw)
In-Reply-To: <1331627608.29064.88.camel@big_daddy.dol-sen.ca>
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 <irc></irc> field to just valid url's
> just like the <homepage></homepage> 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.
> <irc>#gentoo-guis on the freenode IRC network, irc://irc.gentoo.org/gentoo-guis</irc>
Don't use a regex on XML. Actually connect it properly.
> Would it be better that I create 2 irc sub data types then?
>
> <irc>
> <description>#gentoo-guis on the freenode IRC network</description>
> <url>irc://irc.gentoo.org/gentoo-guis</url>
> </irc>
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)
<irc link="irc://irc.gentoo.org/#gentoo-guis" />
Option 1b)
<irc link="irc://irc.gentoo.org/#gentoo-guis">
For GUI issues in Gentoo
</irc>
HTML style:
Option 2a)
<a rel="irc" href="irc://irc.gentoo.org/#gentoo-guis" />
Option 2b)
<a rel="irc" href="irc://irc.gentoo.org/#gentoo-guis">
For GUI issues in Gentoo
</a>
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : robbat2@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
prev parent reply other threads:[~2012-03-13 10:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-11 9:09 [gentoo-dev] Proposal: New irc data field in layman's repositories.xml file format Brian Dolbec
2012-03-12 7:52 ` Kent Fredric
2012-03-12 8:49 ` Robin H. Johnson
2012-03-13 8:33 ` Brian Dolbec
2012-03-13 10:36 ` Jeroen Roovers
2012-03-13 10:45 ` Robin H. Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=robbat2-20120313T103317-863001576Z@orbis-terrarum.net \
--to=robbat2@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox