blob: cf334bd2d36d097d87f68d5e3eefb5d7b01b7897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
\documentclass[a4paper]{article}
\usepackage{pigpen}
\newcommand\exa{\nopagebreak \begin{flushleft}\smallskip \nopagebreak
\begin{minipage}[t]{6cm}\sloppy}
\newcommand\exb{\end{minipage}\kern 1cm\begin{minipage}[t]{8cm}\sloppy }
\newcommand\exc{\end{minipage}\kern -3cm \smallskip\end{flushleft}}
\title{{\pigpenfont PIG PEN FOR TEX}\\[0.5cm]
The Pigpen Cipher for \TeX\ 0.3}
\author{Oliver Corff}
\date{February, 2024}
\begin{document}
\maketitle
\section{The Pigpen cipher}
The \TeX\ Pigpen cipher font is a small hack\footnote{%
The \TeX\ Pigpen cipher was inspired by a discussion on
\texttt{comp.text.tex} in December 2008.}
to type the so-called masonic cipher, or Freemason's cipher,
which is a simple substitution cipher based on a grid.
A 3x3 grid is filled with the letters A to I and J to R.
\begin{center}
\begin{minipage}[t]{3cm}%
\begin{tabular}{c|c|c}
A&B&C\\
\hline
D&E&F\\
\hline
G&H&I\\
\end{tabular}\end{minipage}%
\begin{minipage}[t]{3cm}%
\begin{tabular}{c|c|c}
J.&K.&L.\\
\hline
M.&N.&O.\\
\hline
P.&Q.&R.\\
\end{tabular}\end{minipage}
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
&S& \\
T&$\times$&U\\
&V& \\
\end{tabular}\end{minipage}%
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
&W.& \\
X.&$\times$&Y.\\
&Z.&\\
\end{tabular}\end{minipage}
\end{center}
\begin{center}
{\pigpenfont
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
A&B&C\\
D&E&F\\
G&H&I\\
\end{tabular}\end{minipage}%
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
J&K&L\\
M&N&O\\
P&Q&R\\
\end{tabular}\end{minipage}
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
&S& \\
T&$\times$&U\\
&V& \\
\end{tabular}\end{minipage}%
\begin{minipage}[t]{3cm}%
\begin{tabular}{ccc}
&W&\\
X&$\times$&Y\\
&Z&\\
\end{tabular}\end{minipage}}
\end{center}
The letters in this grid are simply replaced by the inner edges
of their box within the grid. The subset of letters J to R is marked
by a dot.
The letters S, T, U and V are arranged in the four quadrants of an X,
the letters W, X, Y and Z follow this arragement but are marked with
a dot. Again, the letters are substituted by the inner edges of their
respective corner.
\section{Usage}
In the preamble of a \LaTeXe\ document, the package is declared by
saying \verb|\usepackage{pigpen}|. Options are not available.
There is only one user command, \verb|\pigpenfont|:
\exa
{\pigpenfont LUCAS}
\exb
\begin{verbatim}
{\pigpenfont LUCAS}
\end{verbatim}
\exc
\end{document}
|