[Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. iso-codes/3.8-18-g6666a46
Tobias Quathamer
toddy at debian.org
Mon Apr 6 15:57:24 UTC 2009
- Previous message: [Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. iso-codes/3.8-17-g6ee39ef
- Next message: [Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. iso-codes/3.8-18-g6666a46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
The following commit has been merged in the master branch:
commit 6666a4686ed41eca2236189a870a0e7e2cf78cac
Author: Tobias Quathamer <toddy at debian.org>
Date: Mon Apr 6 17:56:32 2009 +0200
Do not provide the deprecated iso_639.tab file any longer
diff --git a/ChangeLog b/ChangeLog
index 29746e8..fcd3272 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@ XXXX-XX-XX
[ General ]
* Use the GNU Lesser General Public License for all files included
in this package.
+ * Do no longer provide the file /usr/share/iso-codes/iso_639.tab
+ which has been deprecated for a long time now
[ ISO 15924 ]
* Changes made by the Maintenance Agency on 2009-02-23
diff --git a/iso_639/Makefile.am b/iso_639/Makefile.am
index de58976..d317bd4 100644
--- a/iso_639/Makefile.am
+++ b/iso_639/Makefile.am
@@ -5,12 +5,6 @@ SUBDIRS = iso_639_3
xmldir = $(datadir)/xml/iso-codes
xml_DATA = $(DOMAIN).xml
-tabdir = $(datadir)/iso-codes
-tab_DATA = $(DOMAIN).tab
-
-iso_639.tab: iso_639.xml
- LC_ALL=C $(srcdir)/iso639tab.py $< > iso_639.tab
-
pofiles = $(wildcard $(srcdir)/*.po)
mofiles = $(patsubst $(srcdir)/%.po,%.mo, $(pofiles))
noinst_DATA = $(mofiles) iso_639.pot
@@ -24,12 +18,10 @@ iso_639.pot: iso_639.xml
EXTRA_DIST = \
$(pofiles) \
$(xml_DATA) \
- iso_639.pot \
- iso639tab.py
+ iso_639.pot
MOSTLYCLEANFILES = \
- $(mofiles) \
- $(tab_DATA)
+ $(mofiles)
check-local: check-content
diff --git a/iso_639/iso639tab.py b/iso_639/iso639tab.py
deleted file mode 100755
index c6c8bd8..0000000
--- a/iso_639/iso639tab.py
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/usr/bin/env python
-#
-# Read iso-codes iso_639.xml data file and output a .tab file
-#
-# Copyright (C) 2005 Alastair McKinstry <mckinstry at debian.org>
-# Released under the GPL.
-# $Id$
-
-from xml.sax import make_parser, SAXException, SAXParseException
-from xml.sax.handler import feature_namespaces, ContentHandler
-import sys, os, getopt, urllib2
-
-lines = []
-class printLines(ContentHandler):
- def __init__(self):
- pass
-
- def startElement(self, name, attrs):
- if name != 'iso_639_entry':
- return
- t_code = attrs.get('iso_639_2T_code', None)
- if t_code == None:
- raise RunTimeError, "Bad file"
- if type(t_code) == unicode:
- t_code = t_code.encode('UTF-8')
- b_code = attrs.get('iso_639_2B_code', None)
- if b_code == None:
- raise RunTimeError, "Bad file"
- if type(b_code) == unicode:
- b_code = b_code.encode('UTF-8')
- name = attrs.get('name', None)
- if name == None:
- raise RunTimeError, " BadFile"
- short_code=attrs.get('iso_639_1_code','XX')
- short_code=short_code.encode('UTF-8')
- if type(name) == unicode:
- name = name.encode('UTF-8')
- lines.append(t_code + '\t' + b_code + '\t' + short_code + '\t' + name + '\n')
-
-##
-## MAIN
-##
-
-
-ofile = sys.stdout
-ofile.write("""
-## iso-639.tab
-##
-## Copyright (C) 2005 Alastair McKinstry <mckinstry at computer.org>
-## Released under the GNU License; see file COPYING for details
-##
-## PLEASE NOTE: THIS FILE IS DEPRECATED AND SCHEDULED TO BE REMOVED.
-## IT IS FOR BACKWARD-COMPATIBILITY ONLY: PLEASE USE THE ISO-639.XML
-## FILE INSTEAD.
-##
-## This file gives a list of all languages in the ISO-639
-## standard, and is used to provide translations (via gettext)
-##
-## Status: ISO 639-2:1998 + additions and changes until 2003-03-05
-## Source: http://lcweb.loc.gov/standards/iso639-2/englangn.html
-##
-## Columns:
-## iso-639-2 terminology code
-## iso-639-2 bibliography code
-## iso-639-1 code (XX if none exists)
-## Name (English)
-##
-##
-""")
-p = make_parser()
-try:
- dh = printLines()
- p.setContentHandler(dh)
- p.parse(sys.argv[1])
-except SAXParseException, e:
- sys.stderr.write('%s:%s:%s: %s\n' % (e.getSystemId(),
- e.getLineNumber(),
- e.getColumnNumber(),
- e.getMessage()))
- sys.exit(1)
-except Exception, e:
- sys.stderr.write('<unknown>: %s\n' % str(e))
- sys.exit(1)
-lines.sort()
-for l in lines:
- ofile.write(l)
-ofile.close()
--
ISO language, territory, currency, script codes and their translations
- Previous message: [Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. iso-codes/3.8-17-g6ee39ef
- Next message: [Pkg-isocodes-devel] [SCM] ISO language, territory, currency, script codes and their translations branch, master, updated. iso-codes/3.8-18-g6666a46
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pkg-isocodes-devel
mailing list