1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/textproc/m17n-contrib/files/patch-tbl2mim.awk
Martin Wilke 6f312588cf This port installs the user-contributed input methods for the m17n library
(the official ones are installed through devel/m17n-lib). It currently
supports Punjabi, Sinhala, Telugu, Nepali, Russian, Assamese, Bengali,
Gujarati, Hindi, Kannada, Malayalam, Marathi, Oriya and Vietnamese layouts
with various sub-variants.

The port also provides the tbl2mim.awk script for conversion of keyboard
files used by textproc/scim-table-imengine into SCIM-independent .mim format
(usable by m17n library).

WWW: http://www.m17n.org/

PR:		ports/127894
Submitted by:	Nikola Lecic <nikola.lecic at anthesphoria.net>
2009-01-11 11:13:34 +00:00

17 lines
479 B
Awk

--- tbl2mim.awk.orig 2006-12-08 03:01:57.000000000 +0100
+++ tbl2mim.awk 2008-03-30 19:20:34.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/gawk
+#!/usr/bin/awk
# Copyright (C) 2006
# National Institute of Advanced Industrial Science and Technology (AIST)
# Registration Number H15PRO112
@@ -25,6 +25,7 @@
begin_table = 0;
}
+/^ *###/ { next; }
/^ICON *=/ { ICON = " \""$3"\""; next; }
/^NAME *=/ { NAME = tolower($3); next; }
/^LANGUAGES *=/ { LANG = $3; next; }