On Wednesday 17 August 2005 08:01, Christian Perrier wrote: > Now that the bug has been fixed, having a DTDcould probably help in > developing a package of utilities to actually *exploit* the iso-codes > data. > > For instance, having an utility to map codes to any other fields such > as names (short and full for countries), or even codes to names in > whichever language, would help a lot. I already have applications for > this in d-i, actually, which would help in getting rid of the *.tab > files. > > IMHO, finding someone with good XML (and possible gettext) skills to > develop this would help.
Hi,
I'm in for this. It would be great if you could elaborate a little bit on
this, as I'm not sure I understood everything right.
From what I understand, you want to have a (command line?) utility which
uses the XML files for returning the desired information, optionally in any
specified language. Some sample invocations could look like this:
$ cool_utility_for_iso_3166 --field=name DE
Germany
$ cool_utility_for_iso_3166 --field=name --locale=fr_FR DE
Allemagne
$ cool_utility_for_iso_3166 --field=official_name ES
Kingdom of Spain
$ cool_utility_for_iso_3166 --field=official_name --locale=da ES
Kongeriget Spanien
Is this (roughly) what you mean? I think that shouldn't be too hard to
realize.
It would also help a lot if you could show some examples of your
"applications for this in d-i, [...] which would help in getting rid of the
*.tab files."
Cheers,
--
Tobias
What I can't stand is the feeling that my brain is leaving me for
someone more interesting.
pgp9nC7pUZV5L.pgp
Description: PGP signature

