From: sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman)
Subject: adami2itrans ...
Organization: Arizona State University, Tempe AZ
Date: Sun, 16 Aug 1992 08:44:56 GMT

ravi@socrates.umd.edu (Ravi Sinnarajah) writes on soc.culture.tamil:

I am a bit confused on the use of 'n' in ADAMI. In the following
quotings, I noticed its use as 'n' in 'naadu' and 'n' in 'padiththEn'.
For itrans users it is 'naadu' and 'padiththEn^'. Except for this, I
have tried to accomodate most of the differing notation in the form of
a adami2itrans translator. I would welcome any comments. If you don't
have lex, I can mail you the translator in C. If I find time I might
able to write a translator from itrans to Palladam/Tamlasr etc which
shouldn't be tough.

From rn/trn use "e /tmp" for extracting the translator into /tmp. The
files would be extracted in a new directory "adami2itrans". A README
should guide you through the simple process of compilation.


)PS: This adheres to ADAMI's transliteration menthodology [as usual].
)-------------------------------oru kavithai----------------------------
)
)\(TAMIL)

)viRaiththa uLaththil ethuthaan theriyum?
                              ^
)oLirvathaR kathika naaLikaiyuNdu
                    ^
)sembukkuruthi nembukOludalam,
               ^
)iduppilum thalaiyilum kudamena sumaikaL.
                             ^
)melliya iduppil mEniyE kanavum,
                   ^      ^
)vanappum, aNaippum, vakaiyilaa uzhaippum,
   ^
)thinamum kaayththidum theeyidai marankaL,
    ^
)kaayppathanaalO kalleRikinReer?
           ^              ^
)kaayppathai niRuththavaa? kaNkaLaith thiruppavaa?
             ^
)mudivukkaaka onRu sErkinROm!
                        ^
Can any ADAMI user clarify on the use of 'n'? 

Here is the translator:

---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by shar 3.49)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 08/16/1992 08:31 UTC by sridhar@enuxhb.eas.asu.edu
# Source directory /tmp
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length  mode       name
# ------ ---------- ------------------------------------------
#    416 -rw-rw-r-- adami2itrans/README
#    406 -rw-r--r-- adami2itrans/adami2itrans.l
#    230 -rwxr-xr-x adami2itrans/makead2it
#
# ============= adami2itrans/README ==============
if test ! -d 'adami2itrans'; then
    echo 'x - creating directory adami2itrans'
    mkdir 'adami2itrans'
fi
if test -f 'adami2itrans/README' -a X"$1" != X"-c"; then
	echo 'x - skipping adami2itrans/README (File already exists)'
else
echo 'x - extracting adami2itrans/README (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'adami2itrans/README' &&
Adami2itrans Version 1.0
X
This program (which should work on any flavour of UNIX which has 'lex')
will turn text in adami transliteration into text in itrans
transliteration. 
X
To create it in the current directory, type 
X
makead2it
X
Use
cat [file_of_text] | adami2itrans | more
X or
adami2itrans < [file_of_text]
X
Written by Sridhar Venkataraman (sridhar@enuxhb.eas.asu.edu)
If you haveany comments please mail me.
X
SHAR_EOF
chmod 0664 adami2itrans/README ||
echo 'restore of adami2itrans/README failed'
Wc_c="`wc -c < 'adami2itrans/README'`"
test 416 -eq "$Wc_c" ||
	echo 'adami2itrans/README: original size 416, current size' "$Wc_c"
fi
# ============= adami2itrans/adami2itrans.l ==============
if test -f 'adami2itrans/adami2itrans.l' -a X"$1" != X"-c"; then
	echo 'x - skipping adami2itrans/adami2itrans.l (File already exists)'
else
echo 'x - extracting adami2itrans/adami2itrans.l (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'adami2itrans/adami2itrans.l' &&
%e 2000
%p 5000
%n 1000
%k 500
%a 4000
%o 2000
BW [ 	]
EW [ 	.,;!?]
X
%{
X	char buf[128];
X
%}
%%
"ee"			printf("I");
"oo"			printf("U");
"ow"                    printf("au");
"NG"			printf("ng");
n[gk]			printf("ngg");
"NY"			printf("ny");
"nN"			printf("n");
"Nn"			printf("N");
"[ 	\"]n"		printf("n");
"Y"			printf("y");
t[rR]			printf("RR");
.			printf(yytext);
\n			printf("\n");
%%
main()
{
X	yylex();
}
SHAR_EOF
chmod 0644 adami2itrans/adami2itrans.l ||
echo 'restore of adami2itrans/adami2itrans.l failed'
Wc_c="`wc -c < 'adami2itrans/adami2itrans.l'`"
test 406 -eq "$Wc_c" ||
	echo 'adami2itrans/adami2itrans.l: original size 406, current size' "$Wc_c"
fi
# ============= adami2itrans/makead2it ==============
if test -f 'adami2itrans/makead2it' -a X"$1" != X"-c"; then
	echo 'x - skipping adami2itrans/makead2it (File already exists)'
else
echo 'x - extracting adami2itrans/makead2it (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'adami2itrans/makead2it' &&
#!/bin/sh
X
echo "Compiling adami -> itrans translator..."
lex adami2itrans.l
mv lex.yy.c adami2itrans.c
cc -o adami2itrans adami2itrans.c  -ll
strip adami2itrans
echo "adami -> itrans Done."
echo "Use adami2itrans < <adami-file>"
SHAR_EOF
chmod 0755 adami2itrans/makead2it ||
echo 'restore of adami2itrans/makead2it failed'
Wc_c="`wc -c < 'adami2itrans/makead2it'`"
test 230 -eq "$Wc_c" ||
	echo 'adami2itrans/makead2it: original size 230, current size' "$Wc_c"
fi
exit 0
Newsgroups: soc.culture.tamil,soc.culture.indian