From: Bruno Haible Date: Thu, 19 Oct 2006 11:42:14 +0000 (+0000) Subject: Script for converting the ISO_639-2 text file to a .texi file. X-Git-Tag: 0.16.x-branchpoint~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67177dbc785d753822dce83c85dd6fa2ea686cea;p=thirdparty%2Fgettext.git Script for converting the ISO_639-2 text file to a .texi file. --- 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