From 70fbe7822024d0acc68df3607ff25bf8d7a71751 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 16 Jun 2005 23:19:27 +0000 Subject: initial import (automatically generated log message) --- statgen/traslations | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 statgen/traslations (limited to 'statgen/traslations') diff --git a/statgen/traslations b/statgen/traslations new file mode 100755 index 0000000..630735a --- /dev/null +++ b/statgen/traslations @@ -0,0 +1,12 @@ +#! /bin/bash + +if [ -z "$1" ]; then + echo "Usage: doit " + exit +fi + +# In some CP866 texts used "Yo" and "N" simbols from CP1251 encoding. This fixes it. +dos2unix -U $1 +cat $1 | sed -e "s/¸/ñ/g" | sed -e "s/¹/N/g;s/°/ø/g" | iconv -f CP866 -t KOI8-R > $1.koi +cat $1 | sed -e "s/¸/ñ/g" | sed -e "s/¹/ü/g;s/°/ø/g" | iconv -f CP866 -t CP1251 > $1.win +cat $1 | sed -e "s/¸/ñ/g" | sed -e "s/¹/ü/g;s/°/ø/g" | iconv -f CP866 -t UTF-8 > $1.utf -- cgit v1.2.3