#!/bin/sh

rm -f temp/*

name=`echo $1|tr '[A-Z]' '[a-z]'`
NAME=`echo $1|tr '[a-z]' '[A-Z]'`

cd src/${name}

for i in ${NAME}_*
do
    echo $i
    cat $i | dos2unix -ascii \
    | tr 'ĳ¿Ŵ' '-|+++++++++' \
    | tr 'ͺ˻ιʼ' '-|+++++++++' \
    | tr 'ѸصϾ' '+++++++++' \
    | tr 'ҷ׶н' '+++++++++' \
    > ../../temp/`echo $i|tr [A-Z] [a-z]`.d
done

if [ -r _notranslate ]
then

echo "notranslate list:"
cat _notranslate | (
    while read i
    do
        echo $i
        cat $i | dos2unix -ascii > ../../temp/`echo $i|tr [A-Z] [a-z]`.d
    done
)

fi

cp ${NAME} ../../temp/${name}.lnk
