X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-contrib.git;a=blobdiff_plain;f=tbl2mim.awk;h=620e91e5a614998d7352d32cada06cd09cfd9063;hp=f22ac01466f08fed6deb77d757fb4c7343b345cd;hb=5b8393abdea4e745c82c0076ea12b518c536e71f;hpb=53791008b4542ea8dcd7bcc430283c29454cf8c2 diff --git a/tbl2mim.awk b/tbl2mim.awk index f22ac01..620e91e 100644 --- a/tbl2mim.awk +++ b/tbl2mim.awk @@ -1,4 +1,4 @@ -#!/usr/bin/gawk +#!/usr/bin/gawk -f # Copyright (C) 2006 # National Institute of Advanced Industrial Science and Technology (AIST) # Registration Number H15PRO112 @@ -27,7 +27,11 @@ BEGIN { /^ICON *=/ { ICON = " \""$3"\""; next; } /^NAME *=/ { NAME = tolower($3); next; } -/^LANGUAGES *=/ { LANG = $3; next; } +/^LANGUAGES *=/ { + LANG = $3; + if (LANG == "other") + LANG = "t"; + next; } /^STATUS_PROMPT *=/ { TITLE = $3; next; } /^BEGIN_TABLE/ { printf "(input-method %s %s)\n", LANG, NAME;