MAS 962: Digital Typography

Problem Set One, Problem 3.

Like the Parser applet, the ParserTwo applet employs a cypher to translate from one text string to another. However, the ParserTwo applet uses special mode-shifting characters to alter the translation, essentially adding another layer to the cypher. The cypher is specified by the input URL http://acg.media.mit.edu/mas962/ps1/code.txt, which is displayed in the TextArea widget of the applet at start up.

The special characters and their effects are as follows:

Strings typed into the applet's TextField widget will be translated according to the cypher and mode into output strings in the TextField widget. Characters in the input string which are not recognised as part of the cypher are copied verbatam into the output string.

The ParserTwo Java source code is a derived class of the Parser applet.