From 67177dbc785d753822dce83c85dd6fa2ea686cea Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 19 Oct 2006 11:42:14 +0000 Subject: [PATCH] Script for converting the ISO_639-2 text file to a .texi file. --- gettext-tools/doc/iso-639-2.sed | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gettext-tools/doc/iso-639-2.sed diff --git a/gettext-tools/doc/iso-639-2.sed b/gettext-tools/doc/iso-639-2.sed new file mode 100644 index 000000000..092da290d --- /dev/null +++ b/gettext-tools/doc/iso-639-2.sed @@ -0,0 +1,21 @@ +#! /usr/bin/sed -f +# +# Each line of the form ^... .* contains the code for a language. +# The categorization in column 60 should be a space, denoting a living language, +# or an U. +# The speakers number in columns 62..69 should be at least a million. +# +/^... ......................................................[ U]..[^ ]/ { + h + s/^... \(.*[^ ]\) .*$/\1./ + s/ç/@,{c}/g + s/´/'/g + x + s/^\(...\).*/@item \1/ + G + p +} +# +# delete the rest +# +d -- 2.47.2