]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Script for converting the ISO_639-2 text file to a .texi file.
authorBruno Haible <bruno@clisp.org>
Thu, 19 Oct 2006 11:42:14 +0000 (11:42 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:09 +0000 (12:14 +0200)
gettext-tools/doc/iso-639-2.sed [new file with mode: 0644]

diff --git a/gettext-tools/doc/iso-639-2.sed b/gettext-tools/doc/iso-639-2.sed
new file mode 100644 (file)
index 0000000..092da29
--- /dev/null
@@ -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