From b3ff7203f183dfe4d680152888ffb1dc1811f487 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <gesang@stud.uni-heidelberg.de>
Date: Wed, 6 Jun 2012 18:27:04 +0200
Subject: context example

---
 .../enigma/examples/enigma-example-context.tex     | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 doc/context/third/enigma/examples/enigma-example-context.tex

(limited to 'doc/context/third/enigma/examples/enigma-example-context.tex')

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
-- 
cgit v1.2.3

