Script for converting the ISO_639-2 text file to a .texi file.

This commit is contained in:
Bruno Haible
2006-10-19 11:42:14 +00:00
parent 80658394c6
commit 67177dbc78
+21
View File
@@ -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