From 5d29b8330b7e3605f498c5e2fd56a4c2ba376f1d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 19 Oct 2006 11:41:24 +0000 Subject: [PATCH] Script for converting the ISO 639-2 web site to a text file. --- gettext-tools/doc/Admin/iso-639-2-table.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 gettext-tools/doc/Admin/iso-639-2-table.sh diff --git a/gettext-tools/doc/Admin/iso-639-2-table.sh b/gettext-tools/doc/Admin/iso-639-2-table.sh new file mode 100755 index 000000000..4a8011a7d --- /dev/null +++ b/gettext-tools/doc/Admin/iso-639-2-table.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Extracts the ISO_639-2 file from http://www.loc.gov/standards/iso639-2/code_list.html +# Usage: iso-639-2-table.sh < code_list.html +LC_ALL=C +export LC_ALL +tr '\012' ' ' | +sed -e 's,]*>[^<>]*]*>\([^<>]*\)[^<>]* [^<>]*\([^<>]*\).*$,\1 \2,p' | +iconv -f ISO-8859-1 -t UTF-8 -- 2.47.2