mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Script for parsing the official ISO639-2 text into code for iso639.cpp
Script by Kazuo Teramoto
This commit is contained in:
parent
26e409c3d3
commit
37620fb0e5
13
contrib/parse_iso.awk
Executable file
13
contrib/parse_iso.awk
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/awk -f
|
||||
|
||||
BEGIN {
|
||||
FS = "|";
|
||||
}
|
||||
|
||||
!/qaa-qtz/ {
|
||||
printf(" { %-83s \"%s\", %s, %s },\n", "\""$4"\",", $1, $3 ? "\""$3"\"" : "NULL", $2 ? "\""$2"\"" : "NULL ");
|
||||
}
|
||||
|
||||
END {
|
||||
printf(" { %-83s %s, %s, %s },\n", "NULL,", "NULL", "NULL", "NULL");
|
||||
}
|
Loading…
Reference in New Issue
Block a user