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