char *vers = "\0$VER: iso2html 1.0 (08.08.95)";
/*
   convert ISO Latin 1 alphabet to html entities.
   given to the PD by Ch. Ruetgers 1995.

   chr@quack.westfalen.de

*/

#include <stdio.h>
#include <string.h>

#define BUFSIZE 60000

char *entiti[] = {
"&Agrave;",
"&AAcute;",
"&Acirc;",
"&Atilde;",
"&Auml;",
"&Aring;",
"&AElig;",
"&Ccedil;",
"&Egrave;",
"&Eacute;",
"&Ecirc;",
"&Euml;",
"&Igrave;",
"&Iacute;",
"&Icirc;",
"&Iuml;",
"&ETH;",
"&Ntilde;",
"&Ograve;",
"&Oacute;",
"&Ocirc;",
"&Otilde;",
"&Ouml;",
" ;",
"&Oslash;",
"&Ugrave;",
"&Uacute;",
"&Ucirc;",
"&Uuml;",
"&Yacute;",
"&THORN;",
"&szlig;",
"&agrave;",
"&aacute;",
"&acirc;",
"&atilde;",
"&auml;",
"&aring;",
"&aelig;",
"&ccedil;",
"&egrave;",
"&eacute;",
"&ecirc;",
"&euml;",
"&igrave;",
"&iacute;",
"&icirc;",
"&iuml;",
"&eth;",
"&ntilde;",
"&ograve;",
"&oacute;",
"&ocirc;",
"&otilde;",
"&ouml;",
" ;",
"&oslash;",
"&ugrave;",
"&uacute;",
"&ucirc;",
"&uuml;",
"&yacute;",
"&thorn;",
"&yuml;"
};


int i,n,p;
unsigned char buffer[BUFSIZE];

main()
{
	while(!feof(stdin))
	{
		if(fgets(buffer,BUFSIZE, stdin))
		{
			for(i=0;i<strlen(buffer);i++)
			{
			n=buffer[i];
			if(n >= 192)
			   {
            p=n-192;
			   printf("%s",entiti[p]);
			   }
			else
            {
			   printf("%c",n);
			   }
			}

		}
	}
}

