diff options
Diffstat (limited to 'doc/context')
-rw-r--r-- | doc/context/third/enigma/examples/enigma-example-context.tex | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/context/third/enigma/examples/enigma-example-context.tex b/doc/context/third/enigma/examples/enigma-example-context.tex new file mode 100644 index 0000000..21baf4c --- /dev/null +++ b/doc/context/third/enigma/examples/enigma-example-context.tex @@ -0,0 +1,31 @@ +\usemodule [enigma] +\usetypescript [iwona] +\setupbodyfont [iwona,20pt] + +\defineenigma [secretmessage] +\setupenigma [secretmessage] [ + other_chars = yes, + day_key = B V III II 12 03 01 GI JV KZ WM PU QY AD CN ET FL, + rotor_setting = ben, +] + +\defineenigma [othersecretmessage] [secretmessage] + +\defineenigma [othermessage] [secretmessage] +\setupenigma [othermessage] [other_chars=wrong] + +\starttext + +\startsecretmessage + føo bąr baž +\stopsecretmessage + +\startothersecretmessage + iøtyąwqiž +\stopothersecretmessage + +\startothermessage + føo bąr baž +\stopothermessage + +\stoptext |