/*
	Eng2Alt.h	Recodes Russian
			(Congress Library English transliterated)
			to Russian (in "Alternativnaja kodirovka")
			with additional GOST 16876-71.

			Header file.
*/


#include <stdio.h>
#include <ctype.h>
#include <string.h>	/* memmove() */

/* Case of english letters.	*/
#define NEUTRAL		0
#define	UPPERCASE	1
#define LOWERCASE	2


#ifndef	BYTE_DEF
typedef unsigned char	BYTE;
#define BYTE_DEF
#endif


#if defined (_MSDOS_) || defined (_MS_DOS_) || defined (__MSDOS__)
  #ifndef __MSDOS__
    #define __MSDOS__
  #endif
#else
  #ifndef __UNIX__
    #define __UNIX__
  #endif
#endif


#ifdef __UNIX__
        #define STRCMP		strcmp
        #define STRCMPI		strcasecmp
        #define STRNCMPI	strncasecmp
#else
        #define STRCMP		stricmp
        #define STRCMPI		strcmpi
        #define STRNCMPI	strncmpi
#endif



struct {
	char * English;
	char * Russian;
} TranslateTable [] = {

	{	"\\e",	"í"	},
	{	"\\",	"\\"	},
	{	"''",	"œ"	},
	{	"'",	"ì"	},
	{	"``",	"š"	},
	{	"`",	"ê"	},

	{	"a",	" "	},
	{	"b",	"¡"	},
	{	"ch",	"ç"	},
	{	"c",	"æ"	},
	{	"d",	"¤"	},
	{	"eh",	"í"	},
	{	"e",	"¥"	},
	{	"f",	"ä"	},
	{	"g",	"£"	},
	{	"h",	"å"	},
	{	"i",	"¨"	},
	{	"ja",	"ï"	},
	{	"je",	"¥"	},
	{	"jo",	"ñ"	},
	{	"ju",	"î"	},
	{	"jj",	"©"	},		/* GOST 16876-71 */
	{	"j",	"©"	},
	{	"kh",	"å"	},
	{	"k",	"ª"	},
	{	"l",	"«"	},
	{	"m",	"¬"	},
	{	"n",	"­"	},
/*	{	"oo",	"ã"	},*/
	{	"o",	"®"	},
	{	"ph",	"ä"	},
	{	"p",	"¯"	},
	{	"q",	"ï"	},
	{	"r",	"à"	},
	{	"shch",	"é"	},		/* "tshchatel'no" ? */
	{	"shh",	"é"	},		/* GOST 16876-71 */
/*	{	"sch",	"é"	},*/		/* "rascheska", "schast'e" ? */
	{	"sh",	"è"	},
	{	"s",	"á"	},
/*	{	"tch",	"ç"	},*/		/* "vetchina" ? */
/*	{	"tz",	"æ"	},*/		/* "otzyv" ? */
	{	"t",	"â"	},
	{	"u",	"ã"	},
	{	"v",	"¢"	},
	{	"w",	"ã"	},
	{	"x",	"å"	},
	{	"ya",	"ï"	},
/*	{	"ye",	"¥"	},*/		/* "chastye" ? */
	{	"yo",	"ñ"	},
	{	"yu",	"î"	},
	{	"y",	"ë"	},
	{	"zh",	"¦"	},
	{	"z",	"§"	},

	{	NULL,	NULL	}
};


/*<EOF>*/

