X-Git-Url: http://git.chise.org/gitweb/?p=m17n%2Fm17n-contrib.git;a=blobdiff_plain;f=tbl2mim.awk;h=620e91e5a614998d7352d32cada06cd09cfd9063;hp=b02b9d0fcae30a28357ad5c7fd0e7cc94c983476;hb=31562dc4a90911575c1c3ed3c931a9197d3d80f3;hpb=5b1add8426ab2371b7d9015aa7059e32bd8504c8 diff --git a/tbl2mim.awk b/tbl2mim.awk index b02b9d0..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 @@ -18,8 +18,8 @@ # You should have received a copy of the GNU Lesser General Public # License along with the m17n library; if not, write to the Free -# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA -# 02111-1307, USA. +# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. BEGIN { begin_table = 0; @@ -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;