[GreenKeys] RTTY Art JAVA Viewer Facelift

William Bytheway bythewayb at readysetsurf.com
Mon Jan 17 10:18:10 EST 2005


Bob,

I think I've addresses most of the issues, RTTYArt and my JAVA
display applet remap characters and perform some basic tests. Following
is a snippit of some of the code used in the JAVA Applet, it's 
similar for RTTYArt. It records "exactly" what it sees.  The algorithm
in RTTYArt will attempt to map ASCII characters into the closest Baudot
equivalent.  It also incorporates the Tom Jennings translation programs.

while ((mychar = data.read()) > 0)
{
	switch ((char)mychar) 
	{
	case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G':
	case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N':
	case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U':
	case 'V': case 'W': case 'X': case 'Y': case 'Z': case '1': case '2':
	case '3': case '4': case '5': case '6': case '7': case '8': case '9':
	case '0': case '-': case '$': case '!': case '&': case '#': case 39 :
	case '(': case ')': case 34 : case '/': case ':': case ';': case '?':
	case ',': case '.': case ' ':case '\n': case'\r':
		buf.append("" + (char)mychar);
		if ((char)mychar == '\n') 
			numberoflines++;
		stringcount++;
		break;
	default:
		buf.append("" + " ");
		stringcount++;
		break; // noaction
	}
} 

The JAVA Applet on the web site provides the display in raw graphics, 
a stand-alone version could be created, since 90% of the work has been 
done in JAVA.  RTTYArt does pretty much the same thing.

So I think that your items 1, 2 and 3 have already been done.  See it at

    http://www.rtty.com/gallery/

73,
K7TTY




More information about the GreenKeys mailing list