Cryptogram documentation

The following HTML code will put a cryptogram on your page.

<applet codebase="http://www.cs.cmu.edu/~cburch/crypt" code="Cryptogram.class" width=300 height=200>
<param name="cryptogram" value="RCCAPLUBLMR!LB">
<param name="cryptchars" value=" ">
<param name="decryptchars" value=" ">
<param name="unknownchar" value="?">
<param name="setbuttons" value="off">
<param name="foreground" value="000000">
<param name="background" value="FFFFFF">
</applet>
This creates the following applet.

Several of these parameters you can change to your own fancy.

width=300
This sets the width of the applet (in pixels). In this case the applet is 300 pixels wide.
height=200
This sets the width of the applet (in pixels). In this case the applet is 200 pixels high.
cryptogram
What comes in quotes after ``value'' is the cryptogram that should originally appear. You can indicate line breaks within the string with the characters ``\n''. (To indicate a backslash, use ``\\''.)
cryptchars, decryptchars
Initially all characters - even spaces - are treated as unknown. To make a character appear already-translated, you can use the cryptchars and decryptchars parameters. Say the value of cryptchars is ``BA'' and the value of decryptchars is ``XY''. Then every B in the cryptogram will initially appear as an X in the translation, and every A will appear as a Y. (You probably want to make spaces appear as spaces. This is what the above HTML example does.)
unknownchar
This indicates how to print unknown characters. By default unknown characters appear as spaces, but you can indicate a different character (like a question mark in the example).
setbuttons
If the value of this is ``off'', then the Set and Solve buttons will not appear.
foreground, background
Set the colors used in printing and the color used for the background. Both are indicated using hexademical values (RRGGBB) of the sort used for the BGCOLOR, LINK, and ALINK attributes of the HTML BODY tag. The above HTML example sets the foreground to black and the background to white.