(Jan, dunno if you want to stay CC'ed to this discussion. In doubt I
leave you in case you would be interested)
(Benjamin, you'll soon understand what we're talking about....and if
needed, you can have a look at http://bugs.debian.org/272064)


> 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.

Yes, this is exactly this. 

More than 1 year ago, I did setup a project on Alioth for a future
package named iso-codes-utils which would serve that purpose.

I think it would be better to either keep this separated from
iso-codes...or at the minimum as a binary package provided by the
iso-codes source package (the original iso-codes package being then
renamed "iso-codes-data" or something similar).

The iso-codes-utils project is nearly dead, mostly because I hadn't
time up to now to revive it...and also because I knew these *.tab
files would go away at some moment and we first needed the XML DTD's
probably.

Benjamin Dauvergne was interested in this project and began
contributing some code (which I'm ashamed I didn't even add to the
project CVS...but which I still have).

> 
> 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."

Typically the localechooser package build scripts use such data from
iso-codes to build lists of countries AND their translations.

So, the best example is for instance to grab the localechooser source
package and look there for the "mktemplates.country" and
"mk_shortlist_templates" scripts.

I also have such use, for language codes and names, in my geneweb
package, with a very similar mechanism (understand "as whacky").




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to