\magnification=1200
\input gooemacs
\font\titlefont=cmr8 at 16pt
\font\titlett=cmtt10 at 16pt
\font\seventtt=cmtt8 at 7pt
\font\metafnt=manfnt at 10pt
\font\gofont=cmss10
\def\metafont{{\metafnt/0123451}}

\vfil
\centerline{\titlefont Go typesetting using \TeX}

\bigbreak
Here is a system for typesetting Go games and diagrams using \TeX.
This system may be used with either plain \TeX\ or La\TeX. It includes 
the \metafont\ sources for a new set of fonts, called GOOE, and a {\tt perl}
script called {\tt sgf2tex} which translates files in the common ``Smart Go
Format'' (SGF) files into (plain) \TeX.

The numerals on the Go stones in these fonts are instances of the Computer
Modern Fonts designed by Donald Knuth and his co-workers as part of the
\TeX\ system. The file {\tt romandg.mf} is the same as the file 
{\tt romand.mf} distributed with \TeX, with only trivial modifications 
to allow the fonts generated from it to be pasted onto Go stones. This file is
of course copyrighted by Donald Knuth. The remaining portions of the GOOE/{\tt
sgf2tex} system are published under the Gnu Public License, a copy of which is
distributed with this system in the file {\tt COPYING}. Although this system
is thus free software, we would appreciate acknowledgement if it is used to
publish a book.

In this manual, you will find instructions for installing and using
{\tt sgf2tex} and its fonts under UNIX (including Linux) and Windows~95.

Another set of Go fonts was created by Hanna Kolodziejska around 1990, and
revised by Jan van der Steen. Those fonts, together with the latex document
style file {\tt go.sty} can be found at CTAN in the directory {\tt fonts/go},
or at the Go ftp sites (such as {\tt ftp://igs.nuri.net} in the {\tt
Go/printing} directory) under the name {\tt golatex}. Jan van der Steen's
utility {\tt sgf2misc} has the capability of generating La\TeX\ or postscript
files from SGF. It may be obtained from {\tt ftp://igs.nuri.net} in the {\tt
Go/prog} directory. Our work is independent of and different from
Kolodziejska's and van der Steen's.

{\tt sgf2tex} may be obtained from 
{\tt http://match.stanford.edu/bump/go.html}\hfil\break 
or {\tt ftp://match.stanford.edu/pub/sgf2tex-3.3.tar.gz}.

\TeX\ is a trademark of the American Mathematical Society. \metafont\ is
a trademark of Addison Wesley Publishing Company.

\bigbreak
\line{\hglue2.5in Daniel Bump ({\tt bump@math.stanford.edu})\hfil}
\line{\hglue2.5in  Reid Augustin ({\tt reid@netcom.com}), 1997, 1998\hfil}

\vfil
\hbox to\hsize{
\vbox to 120 pt{\hsize= 84.0 pt\goo
\0??(\0??(\0??(\005+\006+\007+\0??>
\0??+\0??+\- !+\- @+\004+\- !+\001+
\0??+\0??+\- !+\- @+\0??+\003+\0??]
\0??+\0??+\- !+\- @+\- @+\- @+\002+
\0??+\0??+\- !+\- !+\- !+\- !+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\vfil}\hfil
\vbox to 120 pt{\hsize= 84.0 pt\goe
\0??(\0??(\0??(\005+\007+\008+\0??>
\0??+\0??+\- !+\- @+\006+\001+\002+
\0??+\0??+\- !+\- @+\0??+\003+\004+
\0??+\0??+\- !+\- @+\- @+\- @+\0??]
\0??+\0??+\- !+\- !+\- !+\- !+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\vfil}\hfil
\vbox to 120 pt{\hsize= 84.0 pt\goe
\0??(\0??(\0??(\0??(\008+\0??(\005+
\0??+\0??+\- !+\- @+\007+\001+\002+
\0??+\0??+\- !+\- @+\0??+\004+\003+
\0??+\0??+\- !+\- @+\- @+\- @+\006+
\0??+\0??+\- !+\- !+\- !+\- !+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\vfil}\hfil
\vbox to 120.0 pt{\hsize= 84.0 pt
{\goe
\0??(\0??(\0??(\004+\006+\007+\0??>
\0??+\0??+\- !+\- @+\003+\001+\005+
\0??+\0??+\- !+\- @+\0??+\002+\0??]
\0??+\0??+\- !+\- @+\- @+\- @+\0??]
\0??+\0??+\- !+\- !+\- !+\- !+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??+\0??+\0??+\0??+\0??+\0??+\0??]}
\vfil
\break\noindent
Black \textstone{\goe\002=} is bad.\hfil\break
Black dies.\hfil\break
}}

\vfil\eject
\centerline{\titlefont Quick Install}
\medbreak

Edit the configuration area at the beginning of the {\tt Makefile}, then
(running as root) `{\tt make install}' will install everything. You may want
to do this if your are experimenting with modifying the fonts.

The first time you install, do not define the parameter {\tt PKFONTS}. The
other parameters which must be specified when you edit the {\tt Makefile}:

{\tt MFDIR} is the path to the Metafont sources, and {\tt TFMDIR} is the path
to the {\tt .tfm} files. See below under {\bf Search Paths} for tips on how to
determine these directories.

On most machines, {\tt MANDIR} is {\tt /usr/man/man1} and {\tt BINDIR} is
{\tt /usr/local/bin}. The parameter {\tt TEXHASH} is {\tt MakeTeXls-R} for the
Web2C Unix distribution, {\tt texhash} for TeTeX and can be left blank for
NTEX.

For a reinstall, find out where {\tt MakeTeXPK} has cached the files
{\tt go*.*pk}. They may be in several different directories. Define {\tt
PKFONTS} as a list of paths to these fonts.

\bigbreak
\centerline{\titlefont Installation by Hand (UNIX)}
\medbreak

Here are alternative instructions for UNIX systems in case the method
described above using the {\tt Makefile} fails. See {\bf Installation Details
(UNIX)} for further information. Windows~95 installation will be discussed
later. Assuming you already have \TeX\ and {\tt perl} (version 5.001 or
later):

\smallbreak\noindent
1. Download {\tt sgf2tex-3.3.tar.gz}
from {\tt ftp://match.stanford.edu/pub/}. Ungzip and
untar this file to extract the source. This will create a directory called 
{\tt sgf2tex-3.3}. Change to that directory.

\smallbreak\noindent
2. Running as root, copy the {\tt *.mf} files into your metafont search
path. (See {\bf Search Paths}, below.) Make sure they are publicly readable.

\smallbreak\noindent
3. Copy the {\tt *.tfm} files into your \TeX\ metric file (tfm) search path.
Make sure they are publically readable. Consult {\bf Search Paths} for more
details.

\smallbreak\noindent
4. (Optional) Copy {\tt gooemacs.tex} and {\tt gotcmacs.tex} into your \TeX\
input search path. If you omit this step, you may alternatively keep a copy of
this short file in your working directory whenever you are using {\tt
sgf2tex}.

\smallbreak\noindent
5. If your TeX distribution is TeTeX, run {\tt texhash}. If you have the
web2c distribution, run {\tt MakeTeXls-R}. Other distributions such as NTEX do
not require this step.

\smallbreak\noindent
6. Type {\tt make} at the command line to build the utility {\tt sgfsplit}.

\smallbreak\noindent
7. Copy {\tt sgf2tex} and {\tt sgfsplit} into {\tt /usr/local/bin} with public
read and execute permissions. If {\tt /usr/bin/perl} is not the path to {\tt
perl}, edit line~1 of {\tt /usr/local/bin/sgf2tex}.

\smallbreak\noindent
8. Copy the man pages, {\tt sgf2tex.1} and {\tt sgfsplit.1} into the
appropriate directory, with public read permissions. On many systems, this is
{\tt /usr/man/man1}.

\smallbreak\noindent
9. Type {\tt tex manual} at the command line to build {\tt manual.dvi}.

\smallbreak\noindent
10. The first time you print or preview the manual, {\tt MakeTeXPK}
should generate and cache the various fonts in {\tt .gf} and {\tt .pk}
formats. This may take a while. The second time you print or preview, these
fonts will be already built, and this time consuming process will not repeat.

\bigbreak
\centerline{\titlefont Installation Details (UNIX)}
\medbreak
On a UNIX \TeX\ distribution, which will typically use Karl Berry's 
{\tt kpathsea} library, the following instructions should work. Download
the file {\tt sgf2tex-3.3.tar.gz} and extract the sources with

\medbreak\noindent
{\tt \$ tar xzvf sgf2tex-3.3.tar.gz}

\medbreak\noindent
if you have gnu tar, or

\medbreak\noindent
{\tt \$ gunzip sgf2tex-3.3.tar.gz ; tar xvf sgf2tex-3.3.tar}

\medbreak\noindent
otherwise. Here {\tt \$} represents the UNIX command prompt. It may
be different on your system.

This will build a subdirectory of your current directory 
called {\tt sgf2tex-3.3}. Change to that directory. 

You need to install the \metafont\ source ({\tt .mf}) and metric ({\tt .tfm})
files into your \TeX\ source tree, as we will explain. You must have superuser
privileges to do this installation, so log on as root.

You need to find where, on your system, \metafont\ source files (with the 
{\tt .mf} suffix) are kept. This is the default path for the {\tt MFINPUTS}
environment variable, and should be listed on the {\tt mf(1)} man page. On the
other hand we've seen wrong directories listed on man pages, so in the next
section, we will give some pointers for finding the \metafont\ search path.
Copy all the {\tt .mf} files into any suitable directory in this search path.
Make sure they have public read permissions.

Next, you will need to know the \TeX\ search path for {\tt .tfm} files.
(Again, consult the following section if you have trouble obtaining this
information.) Copy the {\tt .tfm} files to a directory in the search path for
{\tt .tfm} files. Make sure the read permissions are public.

You want \TeX\ to be able to find the files {\tt gooemacs.tex} and
{\tt gotcmacs.tex}. So you need a copy of these files in a directory in the
tex search path. You may copy this file into the default \TeX\ search
path. Alternatively, you may specify a search path using the {\tt TEXINPUTS}
environment variable, or you may simply keep a copy of this file in whatever
directory you choose to work.

\medbreak
{\bf Important:} Some \TeX\ distributions have a utility for updating
a search path data\-base. This utility may be called {\tt texhash} (in the
{\tt teTeX} distribution) or {\tt MakeTeXls-R} (in the Web2c
distribution). If you have this utility, you must run it. The NTEX
distribution has no such utility, so if you are using NTEX this step may be
omitted.
\medbreak

The next step in installation is to copy {\tt sgf2tex} into 
{\tt /usr/local/bin} with public read and execute permissions. You
may also build the utility {\tt sgfsplit}, by typing {\tt make} at the command
line. This utility may also be copied into {\tt /usr/local/bin}. Finally, copy
the man pages {\tt sgf2tex.1} and {\tt sgfsplit.1} into the appropriate
directory, which is {\tt /usr/man/man1/} on many systems.

You may now test your installation by running \TeX\ on manual.tex, then
printing or previewing the resulting {\tt .dvi} file. The first time you do
this, {\tt MakeTeXPK} should invoke \metafont\ to build {\tt .pk} files. The
second time you print or preview the document, these files will already exist,
so \metafont\ will not be invoked the second time. Thus the first previewing
may take a long time, but subsequent ones will go quickly.

\bigbreak
\centerline{\titlefont Search Paths (UNIX)}
\medbreak
Installing the fonts as described above, you need to know where
\metafont\ source files and \TeX\ {\tt .tfm} files are kept on your system.
In case you have trouble obtaining this information, here are some
pointers. We begin with the search path for \metafont\ source files,
which have the suffix {\tt .mf}.

\medbreak
{\bf First method}. Read the man page for {\tt mf(1)}. The default value of
{\tt MFINPUTS} is the search path for these fonts. This information should be
on the man page. On the other hand, it is possible that the information on the
man page may be missing or wrong. So we give two other methods of finding the
\metafont\ search path.

\medbreak
{\bf Second method}. Apply {\tt strings} to the \metafont\ binary:

\medbreak
\hbox to\hsize{\tt \$ which mf\hfil\break}
\hbox to\hsize{\tt/usr/local/bin/mf\qquad ({\it Tells us where to look for metafont\/})\hfil}
\hbox to\hsize{\tt \$ strings /usr/local/bin/mf}

\medbreak\noindent
Scan this output for {\tt MFINPUTS}. The line following this keyword will be
the default search path for \metafont. According to the {\tt kpathsea}
conventions, {\tt //} stands for ``all subdirectories.'' Thus the search path
\medbreak
\hbox to\hsize{\tt\qquad .:/usr/local/share/texmf/metafont//:\hfil}
\hbox to\hsize{\tt\qquad\qquad\char'173/usr/local/share/texmf/fonts,/var/tex/fonts\char'175//source//\hfil}
\medbreak\noindent
consists of the current directory, all subdirectories of {\tt
/usr/local/share/texmf/metafont}, and all subdirectories of {\tt
/usr/local/share/texmf/fonts} or {\tt /var/tex/fonts} whose path contains
a directory called {\tt source}.

\medbreak
{\bf Third method.} The command:

\medbreak
{\qquad\tt find / -print 2>/dev/null|grep "\\.mf\\\$"}
\medbreak

\noindent
will return a list of files with the suffix {\tt .mf} on your system. 
Most of these will be subdirectories of some top directory. Typically
\metafont, or more precisely the program {\tt MakeTeXPK} which invokes
\metafont, will be able to find {\tt .mf} files which are contained in any
subdirectory of this, or (as we saw above---see ``{\bf Second method}'')
depending on the {\tt kpathsea} search path, the search may be restricted
to subdirectories of some fixed top directory whose path names contain
an intermediate directory with a name such as {\tt source} or {\tt src}. 

Next repeat this process with the {\tt .tfm} files. Just as with the \metafont\
sources, you can learn the search path for these by reading the man page
for {\tt xdvi(1)}, or by scanning the output of 
{\tt strings /usr/local/bin/xdvi} or {\tt /usr/local/bin/dvips} for 
{\tt TFMFONTS}, or by studying the output of:

\medbreak
{\qquad\tt find / -print 2>/dev/null|grep "\\.tfm\\\$"}
\medbreak

\bigbreak
{\bf Example}: On a system running the web2c distribution, we find
that {\tt .mf} files are kept in subdirectories of
{\tt /usr/local/share/texmf/fonts/source/}. The actual default value of
{\tt MFINPUTS}, found by scanning the output of 
{\tt strings /usr/local/bin/mf} is
\medbreak
\hbox to\hsize{\tt\qquad .:/usr/local/share/texmf/metafont//:\hfil}
\hbox to\hsize{\tt\qquad\qquad\char'173/usr/local/share/texmf/fonts,/var/tex/fonts\char'175//source//\hfil}
\medbreak\noindent
(This could be in different on another machine.) We copy the {\tt .mf} files
to 
\medbreak
\centerline{\tt /usr/local/share/texmf/fonts/source/public/misc/} 
\medbreak\noindent
which seems a good
directory in this search path. Then we copy the {\tt .tfm} files to:
\medbreak
\centerline{\tt /usr/local/share/texmf/fonts/tfm/public/misc/}
\medbreak\noindent
After this, we run {\tt MakeTeXls-R}.

\bigbreak
\hbox to\hsize{\hfil\vbox to 273.6 pt{\hsize=273.6 pt\bgoo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\094+\0??+\096+\0??+\0??+\0??+\0??+\0??+\145+\144+\148+
\0??[\0??+\049+\002+\0??+\0??+\016+\0??+\015+\062+\026+\090+\093+\0??+\004+\146+\142+\143+\0??]
\0??[\0??+\0??+\050+\0??+\0??+\0??+\0??+\095+\0??*\059+\060+\089+\010+\124+\0??*\001+\147+\0??]
\0??[\054+\0??+\150+\0??+\0??+\042+\0??+\041+\0??+\061+\063+\099+\091+\092+\009+\0??+\0??+\0??]
\056+\053+\008+\149+\0??+\0??+\0??+\0??+\0??+\058+\111+\110+\108+\098+\012+\123+\0??+\0??+\0??]
\0??[\052+\051+\0??+\136+\0??+\044+\0??+\043+\121+\112+\109+\097+\102+\101+\013+\0??+\0??+\0??]
\138+\055+\133+\137+\135+\0??+\0??+\127+\0??+\0??+\115+\113+\104+\103+\100+\140+\141+\0??+\0??]
\0??[\134+\084+\0??+\0??+\0??+\0??+\0??+\086+\088+\119+\114+\106+\105+\116+\029+\0??+\0??+\0??]
\0??[\0??+\0??+\045+\057+\047+\0??+\087+\085+\125+\120+\118+\107+\117+\122+\0??*\0??+\0??+\0??]
\0??[\0??+\014+\046+\048+\065+\0??+\0??+\0??+\0??+\0??+\0??+\126+\0??+\028+\0??+\011+\0??+\0??]
\0??[\082+\078+\0??+\0??+\080+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\032+\033+\0??+\0??]
\0??[\077+\068+\067+\073+\066+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\031+\0??+\0??]
\0??[\075+\069+\070+\071+\0??+\0??+\0??+\0??+\0??+\0??+\040+\0??+\0??+\0??+\018+\0??+\0??+\0??]
\0??[\076+\074+\072+\081+\0??+\0??+\064+\0??+\0??+\0??+\0??+\0??+\022+\0??+\0??+\006+\0??+\0??]
\0??[\079+\005+\083+\007+\129+\0??+\027+\038+\0??*\0??+\0??+\023+\019+\0??+\024+\017+\020+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\035+\039+\128+\030+\0??+\0??+\132+\139+\0??+\003+\025+\021+\0??]
\0??[\0??+\0??+\0??+\0??+\037+\036+\034+\0??+\0??+\0??+\0??+\130+\131+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}\hfil}
\bigbreak
\medbreak 
{\bf Above:} a classic game using fonts in a size larger than default. Ito
Showa, 6-Dan (W) played Shusaku, 4-Dan (B) on October 15, 1844.

\vfil\eject 

\centerline{\titlefont Installation for Windows 95}

\bigbreak
We have tested sgf2tex under Windows 95 using Perl for Win32
and MikTeX. Perl for Win32 may be downladed from
{\tt http://www.activestate.com/software/default.htm}. There are alternatives
for Perl but be aware that you probably need Perl 5.001 or later.

{\tt MikTeX} is a free TeX distribution for Windows95 and Windows
NT. {\tt MikTeX} is available in the CTAN archive
({\tt http://tug2.cs.umb.edu/ctan/}). The MikTeX homepage is at
{\tt http://www.snafu.de/\char'176cschenk/miktex/}.

We have not tested this system with other TeX distributions
for Windows or DOS, but we suspect that it will work just as
well with the Web2c distribution. (It works fine with the
Web2c distribution under Linux.) The following notes assume
that you are using MikTeX. We would appreciate hearing from
you if you successfully use these fonts with other \TeX\ 
distributions.

Unzip the file {\tt sgf2tex.zip} using pkunzip or other unzipping
software. This will create a directory called {\tt SGF2TEX}.
Copy the .mf file into {\tt\\texmf\\metafont\\misc}. It does not
seem to be necessary to install the .tfm files, since MikTeX
will generate them the first time they are needed. Change
to the directory {\tt SGF2TEX} and run

\bigbreak
{\tt C> tex manual.}
\bigbreak\noindent
This should create a file called manual.tex. You can preview
this using the YAP previewer. Unfortunately we found the
quality of the preview much worse than that of {\tt xdvi}
under Linux using the same hardware. You can print the file
from YAP and this comes out fine on our HP IIIP. For some
reason, some pages in the manual came out incorrectly the
first time we printed them.  Apparently metafont failed to
generate the {\tt .pk} files the first time and font
substitutions were performed.  However the second time these
pages were printed them, they came out right.

As an alternative method of printing, you can use dvips
(which comes with MikTeX) to generate a postscript file. You
can send this directly to a postscript printer, or you can
use ghostscript to print it from a variety of non-postscript
printers such as HP Laserjets.  You can also preview the
postscript file using ghostview.

sgf2tex is invoked from the DOS prompt with the command:

\bigbreak
{\tt C> perl sgf2tex [options] [filename]}
\bigbreak

Remember that to run TeX on a file generated by sgf2tex, TeX
must be able to find the files {\tt gooemacs.tex} and 
{\tt gotcmacs.tex}.  One method is to keep copies of these
files in your working directory.

We have not tried to compile sgfsplit under DOS. The C source
to sgfsplit is included with the distribution and there is
no reason to believe that it will not work.

\vfil\eject
\centerline{\titlett sgf2tex}
\bigbreak

Go games are commonly stored in the ``Smart Go Format.'' For example,
games played on the internet on IGS or NNGS are stored in this format.
Tools such as {\tt xmgt}, {\tt cgoban} or {\tt xgoban} can be used to generate
SGF files using a mouse.

The program {\tt sgf2tex} takes a game in Smart Go Format and translates it
into a \TeX\ file. As long as you have the GOOE fonts and the macros in {\tt
gooemacs.tex} you can tex the resulting file, or edit it and incorporate it
into a longer document. {\tt sgf2tex} is a {\tt perl} script, and you must
have {\tt perl} (version 5.001 or later) installed to run it. 
If you do not have an up-to-date perl, you can obtain it from {\tt
http://language.perl.com/info/software.html}.

Included with GOOE/{\tt sgf2tex} is an SGF file titled
{\tt genan-shuwa.sgf}. It is the record of a famous game. The commentary
is not intended to be profound but is included to show how {\tt sgf2tex}
treats comments. After running 

\medbreak
\line{\qquad \tt \$ sgf2tex genan-shuwa\hfil}
\medbreak\noindent
(or {\tt C> perl sgf2tex genan-shuwa} from the DOS prompt under Windows~95)
and

\medbreak
\line{\qquad \tt \$ tex genan-shuwa\hfil}

\medbreak\noindent
we obtain files called {\tt genan-shuwa.tex} and {\tt genan-shuwa.dvi}. Here
is the {\it unedited} result of this experiment:

\vfil
%
% Begin material pasted in from genan-shuwa.tex
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                     
% This file was created by sgf2tex                                    
%                                                                     
% sgf2tex is a perl script created by Reid Augustin.  The go fonts    
% and TeX macros were designed by Daniel Bump.                        
%                                                                     
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \magnification=1200   % Commented out for inclusion in 
% \input gooemacs       % manual.tex
\newdimen\diagdim
\newdimen\fulldim
\newbox\diagbox
\newbox\captionbox
{\noindent
{\bf White:} Genan\hfil\break
{\bf Black:} Shuwa\hfil\break
May 16-18, 1842\hfil\break
{\bf Komi}: 0\hfil\break
\vfil}
\nobreak
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 1: 1-50
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\045+\003+\019+\018+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\002+\008+\010+\0??+\0??]
\0??[\015+\013+\044+\0??+\0??+\020+\0??+\0??+\0??*\0??+\0??+\0??+\006+\005+\0??*\001+\0??+\0??]
\0??[\0??+\014+\012+\021+\028+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\007+\0??+\009+\0??+\0??]
\0??[\0??+\0??+\0??+\029+\030+\0??+\0??+\0??+\0??+\0??+\0??+\016+\0??+\017+\004+\0??+\0??+\0??]
\0??[\0??+\050+\0??+\031+\032+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\049+\026+\033+\034+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\025+\024+\035+\039+\043+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\011+\0??+\0??]
\0??[\0??+\023+\036+\038+\042+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\048+\046+\037+\041+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\040+\047+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\027+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\022+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 1}: 1-50\hfil\break\hfil\break
\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 2: 51-100
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\098+\0??]
\0??[\0??+\0??+\- @+\- @+\- @+\- !+\084+\0??+\0??+\0??+\0??+\0??+\0??+\- !+\- !+\- !+\097+\0??]
\0??[\- @+\- @+\- !+\057+\0??+\- !+\083+\0??+\082+\090+\0??+\088+\- !+\- @+\0??*\- @+\0??+\0??]
\0??[\0??+\- !+\- !+\- @+\- !+\0??+\0??+\079+\094+\093+\089+\085+\087+\- @+\0??+\- @+\0??+\0??]
\0??[\0??+\056+\0??+\- @+\- !+\0??+\081+\080+\066+\091+\086+\- !+\0??+\- @+\- !+\0??+\0??+\0??]
\0??[\055+\- !+\051+\- @+\- !+\0??+\071+\0??+\095+\092+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\- @+\- !+\- @+\- !+\0??+\0??+\0??+\067+\096+\0??+\0??+\0??+\0??+\0??+\074+\099+\0??]
\0??[\0??+\- @+\- !+\- @+\- @+\- @+\063+\0??+\0??+\0??+\0??+\0??+\0??+\070+\076+\- @+\078+\0??]
\0??[\0??+\- @+\- !+\- !+\- !+\054+\062+\064+\0??*\068+\0??+\0??+\0??+\0??+\075+\072+\073+\0??]
\0??[\- !+\- !+\- @+\- @+\053+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\077+\0??+\0??]
\0??[\0??+\0??+\- !+\- @+\052+\061+\0??+\065+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\- @+\058+\059+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\060+\0??+\0??+\069+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 2}: 51-100\hfil\break\hfil\break
 \textstone{\goo\100=} at  \textstone{\goo\072=}\hfil\break\break
\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 3: 101-150
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\133+\140+\0??+\121+\114+\0??+\0??+\0??+\0??+\- !+\0??]
\0??[\0??+\0??+\- @+\- @+\- @+\- !+\- !+\127+\128+\113+\102+\107+\108+\- !+\- !+\- !+\- @+\0??]
\0??[\- @+\- @+\- !+\- @+\0??+\- !+\- @+\134+\- !+\- !+\101+\- !+\- !+\- @+\0??*\- @+\0??+\0??]
\0??[\0??+\- !+\- !+\- @+\- !+\0??+\139+\- @+\- !+\- @+\- @+\- @+\- @+\- @+\0??+\- @+\0??+\0??]
\116[\110+\- !+\0??+\- @+\- !+\0??+\- @+\- !+\- !+\- @+\- !+\- !+\0??+\- @+\- !+\0??+\0??+\0??]
\124[\- @+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\- @+\- !+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\111[\104+\- @+\- !+\- @+\- !+\0??+\0??+\0??+\- @+\- !+\0??+\142+\0??+\0??+\0??+\- !+\- @+\0??]
\0??[\105+\- @+\- !+\- @+\- @+\- @+\- @+\0??+\131+\119+\130+\0??+\0??+\- !+\- !+\103+\- !+\143]
\0??[\0??+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\148+\- !+\125+\136+\0??+\144+\- @+\- ;+\- @+\0??]
\0??[\- !+\- !+\- @+\- @+\- @+\0??+\0??+\0??+\0??+\0??+\137+\146+\0??+\145+\0??+\- @+\0??+\0??]
\0??[\0??+\117+\- !+\- @+\- !+\- @+\0??+\- @+\0??+\0??+\149+\0??+\0??+\150+\0??+\0??+\0??+\0??]
\0??[\118+\- @+\- !+\- @+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\- @+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\147+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 3}: 101-150\hfil\break\hfil\break
 \textstone{\goo\106=},  \textstone{\goo\112=},  \textstone{\goo\120=},  \textstone{\goo\126=},  \textstone{\goo\132=},  \textstone{\goo\138=} at  \textstone{\goo\- ;;},\hfil\break\break
 \textstone{\goo\109=},  \textstone{\goo\115=},  \textstone{\goo\123=},  \textstone{\goo\129=},  \textstone{\goo\135=},  \textstone{\goo\141=} at  \textstone{\goo\103=},\hfil\break\break
 \textstone{\goo\122=} at  \textstone{\goo\107=}\hfil\break\break
\hfil\break
124: Now the situation becomes complicated beyond the
point of mortal understanding, since in addition to the ko
on the right, White is trying to revive his dead stones on
the left. If they live, White does not need to worry about
eyes in the center.\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 4: 151-200
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\196[\193+\0??+\0??+\0??+\0??+\0??+\0??+\- @+\- !+\0??+\- @+\- !+\0??+\0??+\0??+\0??+\- !+\0??]
\197[\186+\187+\- @+\- @+\- @+\- !+\- !+\- @+\- !+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\- @+\0??]
\192[\- @+\- @+\- !+\- @+\0??+\- !+\- @+\- !+\- !+\- !+\- @+\- !+\- !+\- @+\0??*\- @+\0??+\0??]
\0??[\0??+\- !+\- !+\- @+\- !+\0??+\- @+\- @+\- !+\- @+\- @+\- @+\- @+\- @+\0??+\- @+\0??+\0??]
\- ![\- !+\- !+\0??+\- @+\- !+\0??+\- @+\- !+\- !+\- @+\- !+\- !+\0??+\- @+\- !+\0??+\0??+\0??]
\- ![\- @+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\- @+\- !+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\- @[\154+\- @+\- !+\- @+\- !+\0??+\0??+\0??+\- @+\- !+\0??+\- !+\0??+\0??+\0??+\- !+\- @+\0??]
\188[\- @+\- @+\- !+\- @+\- @+\- @+\- @+\0??+\- @+\- @+\- !+\0??+\0??+\- !+\- !+\- @+\0??+\- @]
\0??[\0??+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- @+\- !+\0??+\- !+\- @+\0??+\- @+\0??]
\0??[\- !+\- !+\- @+\- @+\- @+\0??+\0??+\0??+\0??+\0??+\- @+\- !+\156+\- @+\175+\- @+\0??+\0??]
\0??[\0??+\- @+\- !+\- @+\- !+\- @+\0??+\- @+\0??+\0??+\- @+\0??+\0??+\- !+\199+\0??+\0??+\0??]
\0??[\- !+\- @+\- !+\- @+\0??+\0??+\0??+\0??+\0??+\0??+\173+\0??+\176+\0??+\183+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\- @+\0??+\0??+\0??+\179+\172+\157+\0??+\184+\185+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\180+\178+\177+\0??+\0??+\198+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\155+\160+\0??+\0??*\0??+\164+\153+\167+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\152+\0??+\151+\159+\158+\161+\0??+\174+\168+\0??+\162+\163+\0??+\- @+\0??+\0??+\0??]
\0??[\194+\191+\195+\0??+\0??+\165+\0??+\189+\171+\190+\170+\182+\166+\169+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\181)\0??)\0??)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 4}: 151-200\hfil\break\hfil\break
 \textstone{\goo\200=} at  \textstone{\goo\186=}\hfil\break\break
\hfil\break
165: As is traditional, the captured stone is removed from the board.\hfil\break
188: At long last, White takes the chance to eliminate the ko
aji.\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 5: 201-250
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\0??<\0??(\201(\0??(\0??(\215(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\- ![\- @+\0??+\0??+\211+\206+\213+\214+\- @+\- !+\0??+\- @+\- !+\0??+\0??+\0??+\0??+\- !+\0??]
\207[\- ;+\- @+\- @+\- @+\- @+\- !+\- !+\- @+\- !+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\- @+\218]
\- ![\- @+\- @+\- !+\- @+\0??+\- !+\- @+\- !+\- !+\- !+\- @+\- !+\- !+\- @+\0??*\- @+\216+\0??]
\0??[\0??+\- !+\- !+\- @+\- !+\0??+\- @+\- @+\- !+\- @+\- @+\- @+\- @+\- @+\0??+\- @+\217+\249]
\- ![\- !+\- !+\0??+\- @+\- !+\0??+\- @+\- !+\- !+\- @+\- !+\- !+\0??+\- @+\- !+\232+\233+\0??]
\- ![\0??+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\- @+\- !+\0??+\0??+\0??+\203+\0??+\202+\205+\0??]
\0??[\- !+\- @+\- !+\- @+\- !+\0??+\0??+\0??+\- @+\- !+\0??+\- !+\0??+\0??+\204+\- !+\- @+\0??]
\- ![\- @+\- @+\- !+\- @+\- @+\- @+\- @+\0??+\- @+\- @+\- !+\0??+\0??+\- !+\- !+\- @+\0??+\- @]
\0??[\0??+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- @+\- !+\0??+\- !+\- @+\0??+\- @+\0??]
\0??[\- !+\- !+\- @+\- @+\- @+\0??+\0??+\0??+\250+\231+\- @+\- !+\- !+\- @+\- @+\- @+\0??+\0??]
\0??[\0??+\- @+\- !+\- @+\- !+\- @+\0??+\- @+\0??+\0??+\- @+\0??+\0??+\- !+\- @+\0??+\0??+\0??]
\0??[\- !+\- @+\- !+\- @+\0??+\0??+\0??+\0??+\235+\0??+\- @+\0??+\- !+\0??+\- @+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\227+\- @+\0??+\225+\234+\- @+\0??+\- @+\212+\- !+\- @+\0??+\243+\0??]
\0??[\0??+\222+\- !+\228+\226+\0??+\229+\0??+\- !+\- !+\- @+\0??+\0??+\- !+\239+\238+\244+\245]
\0??[\220+\219+\221+\0??+\0??+\- @+\- !+\223+\224+\0??+\- !+\- @+\- @+\208+\241+\0??+\0??+\0??]
\0??[\0??+\- !+\0??+\- @+\- @+\0??+\- @+\0??+\- !+\- !+\0??+\- !+\- @+\209+\- @+\240+\0??+\0??]
\0??[\- !+\- @+\- @+\0??+\0??+\- @+\0??+\- @+\- @+\- !+\- !+\- !+\- !+\- @+\0??+\242+\0??+\0??]
\0??,\248)\246)\247)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\- @)\237)\236)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 5}: 201-250\hfil\break\hfil\break
 \textstone{\goo\210=} at  \textstone{\goo\- ;;},\hfil\break\break
 \textstone{\goo\230=} at  \textstone{\goo\207=}\hfil\break\break
\hfil\break
245: White is dead in the corner. It is unknown whether
Genan knew the invasion was doomed, or whether he
made a misreading. According to one theory, Genan
knew that he was slightly behind and invaded hoping
for a Black mistake. Of course, the failed invasion
made Black's lead larger, and after a few more moves,
Black won by 6 points.
\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

%
% Variation omitted for inclusion in manual.tex. Or, use the -iv option.
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Start of Diagram 6: 251-270
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbox\diagbox=\vbox to 228.0 pt{\hsize= 228.0 pt\goo
\265<\264(\- @(\0??(\0??(\- @(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\- ![\- @+\269+\0??+\- @+\0??+\- @+\- !+\- @+\- !+\0??+\- @+\- !+\0??+\0??+\0??+\0??+\- !+\0??]
\- ![\- !+\- @+\- @+\- @+\- @+\- !+\- !+\- @+\- !+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\262+\- !]
\- ![\- @+\- @+\- !+\- @+\0??+\- !+\- @+\- !+\- !+\- !+\- @+\- !+\- !+\- @+\0??*\- @+\- !+\261]
\270[\0??+\- !+\- !+\- @+\- !+\0??+\- @+\- @+\- !+\- @+\- @+\- @+\- @+\- @+\0??+\- @+\- @+\- @]
\- ![\- !+\- !+\0??+\- @+\- !+\0??+\- @+\- !+\- !+\- @+\- !+\- !+\0??+\- @+\- !+\- !+\- @+\0??]
\- ![\0??+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\- @+\- !+\0??+\0??+\0??+\- @+\0??+\- !+\- @+\0??]
\0??[\- !+\- @+\- !+\- @+\- !+\0??+\0??+\0??+\- @+\- !+\0??+\- !+\0??+\0??+\- !+\- !+\- @+\0??]
\- ![\- @+\- @+\- !+\- @+\- @+\- @+\- @+\0??+\- @+\- @+\- !+\0??+\0??+\- !+\- !+\- @+\0??+\- @]
\0??[\0??+\- @+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\- @+\- !+\0??+\- !+\- @+\0??+\- @+\0??]
\0??[\- !+\- !+\- @+\- @+\- @+\252+\253+\0??+\- !+\- @+\- @+\- !+\- !+\- @+\- @+\- @+\0??+\0??]
\0??[\0??+\- @+\- !+\- @+\- !+\- @+\0??+\- @+\251+\0??+\- @+\0??+\0??+\- !+\- @+\0??+\0??+\0??]
\0??[\- !+\- @+\- !+\- @+\255+\0??+\0??+\0??+\- @+\0??+\- @+\0??+\- !+\0??+\- @+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\254+\- @+\- @+\0??+\- @+\- !+\- @+\0??+\- @+\- !+\- !+\- @+\0??+\- @+\0??]
\0??[\0??+\- !+\- !+\- !+\- !+\0??+\- @+\0??+\- !+\- !+\- @+\257+\256+\- !+\- @+\- !+\- !+\- @]
\0??[\- !+\- @+\- @+\0??+\0??+\- @+\0??+\- @+\- !+\0??+\- !+\- @+\- @+\- !+\- @+\267+\0??+\266]
\0??[\0??+\- !+\0??+\- @+\- @+\0??+\- @+\0??+\- !+\- !+\0??+\- !+\- @+\- @+\- @+\- !+\0??+\0??]
\0??[\- !+\- @+\- @+\0??+\0??+\- @+\0??+\- @+\- @+\- !+\- !+\- !+\- !+\- @+\0??+\- !+\0??+\0??]
\0??,\- !)\- !)\- @)\0??)\0??)\0??)\0??)\259)\258)\260)\0??)\263)\- @)\- @)\- !)\0??)\0??)\0??.
}
\setbox\captionbox=\vbox{\tolerance=10000\vglue-8pt
\parindent=0pt\parskip=8pt\vglue6pt\lineskip=0pt\baselineskip=12pt
\hangindent 248 pt\hangafter-20
\noindent{\bf Diagram 6}: 251-270\hfil\break\hfil\break
 \textstone{\goo\268=} at  \textstone{\goo\264=}\hfil\break\break
\hfil\break
\par\vfil}
\diagdim=\ht\diagbox
\ifdim\ht\captionbox>\diagdim\fulldim=\ht\captionbox
  \else\fulldim=\diagdim\fi
\vbox to\fulldim{\box\diagbox\vglue-\diagdim\box\captionbox}

% \bye % Final \bye commented out for inclusion in manual.tex

%
% End material pasted in from genan-shuwa.tex
%

\vfil

\hbox to\hsize{\vbox to 144pt{\hsize=86.4pt{\bgoe
\0??+\- !+\- @+\0??+\- @+\0??]
\- !+\- @+\- @+\- @+\0??+\0??]
\0??+\- !+\- @+\0??+\0??+\0??]
\- !+\0??+\- @+\0??+\0??+\0??]
\- !+\- !+\- @+\0??+\- @+\0??]
\0??+\- !+\- @+\- !+\- !+\- @]
\- @+\- !+\- @+\002+\003+\001]
\- @+\- @+\- @+\- !+\0??+\006]
\- !+\- @+\0??+\- !+\005+\004]
\- @)\- @)\- !)\008)\0??)\007.
}\vglue6pt 
\centerline{\bf Diagram 7}
}\hfil
\vbox to 144pt{\hsize=3.75in
For completeness, let us explain why White is dead in the corner. The
following sequence was not played, and is beyond the reading of most
players. It is certain that both players read this out and saw the tesuji of
\textstone{\goe\008=}. What is unknown is whether Genan perhaps saw this
tesuji {\it before} he played at 236, and hoped that Shuwa would miss it. If
\textstone{\goe\008=} is used to capture \textstone{\goe\007=}, then White 
obtains a ko. Perhaps Genan was aware of this, but felt that he was behind,
and hoping for a swindle invaded anyway, then gave up the plan?
\vfil}}
\vglue-.4in
\hangindent=1.666666667in\hangafter-6 {\bf Diagram 7} was not generated 
directly from the game file {\tt genan-shuwa.sgf} since it shows moves not
played in the game. These moves are included in {\tt genan-shuwa.sgf} as
a {\it variation}. Most Smart Go Format editors support variations, which
are discussed below in a separate section. The variation diagram as 
produced by {\tt sgf2tex} is labelled ``{\bf Variation 1} on Move 245.''
We did not wish to use it unedited. Rather, we reran {\tt sgf2tex}
with the options {\tt -n -break 246,254 \hbox{-l 14} \hbox{-t 10} -bigFonts
-simple}, producing output which we edited into the current document to
make {\bf Diagram~7}.

\vfil\eject
\centerline{\titlefont Command Line Options}
\bigbreak

We now describe the options which come with {\tt sgf2tex}. First, 
{\tt sgf2tex -h} (or {\tt sgf2tex -h|more}) prints a help message,
then exits. (Under Windows 95, use the command {\tt perl sgf2tex -h}
instead, or more generally 
{\tt perl sgf2tex} [{\it options}] [{\it filename}].)

\bigbreak
{\tt\parskip=0pt\parindent=5pt\obeylines\obeyspaces\hsize=400pt
\def\[{{\char'173}}
\def\]{{\char'175}}
sgf2tex [options] [file.sgf]
\medskip
\ -h | -help                print this message and exit
\ -v | -version             print version number and exit
\ -i | -in                  input file name (STDIN for standard input)
\ -o | -out                 output file name (STDOUT for standard output)
\ -t | -top                 top line in diagram
\ -b | -bottom              bottom line in diagram
\ -l | -left                leftmost line in diagram
\ -r | -right               rightmost line in diagram
\ -break | -breakList       a list of first move in each diagram
\ -m | -movesPerDiagram     number of moves per diagram
\ -d | -doubleDigits        label stones modulo 100
\ -n | -newNumbers          begin each diagram with number 1
\ -rv | -relativeVarNums    start each variation from 1
\ -av | -absoluteVarNums    move numbers in variation == main line numbers
\ -cv | -correlativeVarNums start main variations from 1 
\ -rl | -repeatLast         repeat last move as first in next diagram
\ -il | -ignoreLetters      ignore SGF letters
\ -im | -ignoreMarks        ignore SGF marks
\ -iv | -ignoreVariations   ignore SGF variations
\ -ip | -ignorePass         ignore SGF pass moves
\ -ia | -ignoreAll          ignore SGF letters, marks, variations and passes
\ -firstDiagram             first diagram to print
\ -lastDiagram              last diagram to print
\ -longComments             allow page breaks in comments
\ -simple                   use a very simple TeX format for output
\ -coords                   print coordinates
\ -twoColumn                use two-column format
\ -bigFonts                 use fonts magnified 1.2 times
\ -texComments              \\, \[ and \] in comments not modified
\ -gap                      gap in points between diagrams (default: 12)
\medskip}
% \     The -i and -o options are not needed with normal usage:
% \                sgf2tex [options] name
%  is equivalent to:
% \                sgf2tex [options] -i name -o name.tex 
%  or              sgf2tex [options] -i name.sgf -o name.tex
\medskip  
% \qquad The breakList consists of a comma-separated list of numbers 
%  (NO spaces). Each number will be the last move in one diagram. 
%  movesPerDiagram sets an upper limit on the number of moves per
%  diagram.\ The default movesPerDiagram is 50 unless a  breakList 
%  (without movesPerDiagram) is set, in which case movesPerDiagram 
%  is set to a very large number. -break and -m may be combined
%  (-break must come first).
% \medskip  
% \qquad -doubleDigits and -newNumbers are alternative schemes for avoiding
%  large numerals. They should not be used together.\ -doubleDigits
%  subtracts 100 from the first number of each diagram until it is between
%  1 and 100.\ -newNumbers causes each diagram to start with number 1.
% \medskip
% \qquad -longComments implements more elaborate TeX to allow page breaks
%  in the comments. Use this if comments are very extensive. It cannot
%  be used with -simple or -twoColumn.
% \medskip
% \qquad  -simple uses a very simple TeX format.\ This option may be useful
%  if you intend to edit the resulting TeX file by hand.\ -longComments
%  and -simple should not be used together.
% \medskip
% \qquad -twoColumn uses a two-column format with small fonts. This cannot
%  be used with -coords or -longComments.
% \medskip
% \qquad -coords prints a coordinate grid. It cannot be used with
%  -twoColumn.
% \medskip
% \qquad  -texComments is appropriate if your sgf comments contain TeX.
%  If this option is NOT used, \\, \[ and \] are replaced by /, [ and ]
%  since these characters are not available in TeX roman fonts. If
%  this -texComments is used, this change is not made so you can
%  put code to \[\\bf change fonts\] in your comments.
% }
% 
\bigbreak
The help message continues with some more explanation of each option.
We will discuss the options in more detail now.

The {\tt -i} and {\tt -o} options are not needed with normal usage.
The usual usage is {\tt sgf2tex {\rm [{\it options}]} filename} instead of
{\tt sgf2tex {\rm [{\it options}]} -i filename}. If
a file named {\tt filename.sgf} or just {\tt filename} exists, it
will create a \TeX file called {\tt filename.tex}. 

In its default usage {\tt sgf2tex} produces full-board diagrams.
You may specify the top, bottom, left and right edges with the
{\tt -t}, {\tt -b}, {\tt -l} and {\tt -r} tags. For example,
{\tt \hbox{-l 14} \hbox{-t 10}} produces a diagram in which
has its left edge at 14, its right edge at 19 (the default),
the top edge at 10, and the bottom edge at 19 (the default).
These settings were used in {\bf Diagram~7}.

Generally one does not want an entire game in a single diagram.  If {\tt -m}
{\tt<{\it movesPerDiagram\/}>} is used, where 
{\tt<{\it movesPerDiagram\/}>} is an integer, then
{\tt sgf2tex} will break the diagram after each {\tt<}{\it
movesPerDiagram\/}{\tt>} moves. If neither {\tt -break} nor {\tt -m} is
specified, the {\tt -m} option is understood, with {\tt<{\it
movesPerDiagram\/}>} set by default to 50. (It can be disabled by setting
{\tt -m 10000}.) On the other hand if {\tt -break} is used, then 
{\tt<{\it movesPerDiagram\/}>} defaults to infinity. The options 
{\tt -break} and {\tt -m} can be used together.

The {\tt -break <{\it list\/}>} option, where {\tt<{\it list\/}>} is a list of
moves separated by commas, will produce a sequence of diagrams broken at the
given moves.

{\tt -doubleDigits} and {\tt -newNumbers} are alternative schemes for
keeping the numbers on the stones small. If {\tt -doubleDigits} is set,
then the stones are numbered modulo $100$, or more precisely, the first
move in the diagram is reduced modulo $100$ to a number between 1-100.

If {\tt -newNumbers} is set, each diagram begins numbering afresh with the
numeral $1$. Both schemes emulate strategies commonly used in commenting
games.

There are circumstances where {\tt sgf2tex} will automatically break
a diagram at a point not specified by the user. When a stone is placed
on a spot where there was previously a stone (as, for example, in a
ko fight), {\tt sgf2tex} marks the first stone if it is unnumbered
(i.e.\ was played on a pervious diagram). Then it adds a comment
of the form ``\textstone{\goo\067=} at \textstone{\goo\055=}'' or
``\textstone{\goo\067=} at \textstone{\goo\- ;;}.'' 
In order to prevent ambiguities, there should not be more than one marked
stone of the same color referenced in this way on a single diagram. To prevent
this, {\tt sgf2tex} may break a diagram at a point not specified by the user.

There are three alternative schemes for numbering in variation diagrams.
In the default numbering scheme, each variation is numbered starting
with a stone numbered ``1.'' We call this scheme {\it relative} variation
numbering. You can specify it using {\tt -rv} or {\tt -relativeVarNums}, but
you don't have to, since it is the default.

In the second scheme, called {\it absolute} variation numbering, each
variation is numbered relative to the beginning of the game. Thus
if the variation occurs at move 120, the first stone in the variation
diagram is given the number 120. This option is invoked with {\tt -av} or 
{\tt -absoluteVarNums}.

In the third scheme, called {\it correlative} variation numbering, each
variation is numbered from the first move to deviate from the main line.
Thus all variations beginning with the same move (branching from the
main line) are numbered consistently. This option is invoked with
the {\tt -cv} or {\tt -correlativeVarNums} option.

Problems may arise if the comments are very extensive. In its default
useage, {\tt sgf2tex} produces a single \TeX\ box containing the
game diagram and the comments. The comments begin along the right
side of the box and continue below it, as in {\bf Diagram~3} above. 
In this default usage, \TeX\ cannot break the box between pages. If the
comments are long, the {\tt -longComments} option produces more
complex \TeX\ code which allows page breaks in the comments beyond a
certain point.

{\tt -simple} avoids \TeX\ complexity, producing the diagram with
the comments below it. This option is useful if you intend to edit
the \TeX\ and don't want a fancy format forced on you. The {\tt simple}
and {\tt -longComments} options should not be used together. There is
no problem breaking the page in comments with the {\tt -simple} format.

{\tt -twoColumn} implements a two-column format, making use of the alternative
macros in {\tt gotcmacs.tex}. Two-column formats are used in some Go books and
magazines, for example John Power's beautiful {\it Invincible: The Games of
Shusaku}. The Go font is reduced by 1.2 in size so that two $19\times 19$
boards may fit side-by-side on the page. The text font is not reduced. This
option may not be used with -longComments or -coords.

{\tt -bigFonts} uses {\tt \\bgoo} and {\tt \\bgoe}, using fonts which
are 1.2 times larger.

{\tt -rl} or {\tt -repeatlast} causes the last move in each diagram
to duplicate the first move in the next. This emulates a common style
of Go writing.

{\tt -il} or {\tt ignoreLetters} causes SGF labels to be ignored.

{\tt -im} or {\tt ignoreMarks} causes SGF marks to be ignored.

{\tt -im} or {\tt -ignoreVariations} causes variations to be ignore.
(Variations are discussed below in a later section.)

{\tt -ip} or {\tt ignorePass} causes SGF passes to be ignored.
If this option is not used, a pass causes a remark in the comments.

{\tt -ia} or {\tt ignoreAll} causes all SGF letters, marks, variations
and passes to be ignored.

{\tt -firstDiagram <{\it Diagram Number}>} allows you to specify
the first diagram to print;

{\tt -lastDiagram <{\it Diagram Number}>} allows you to specify
the last diagram to print.

In order to explain {\tt -texComments}, we need to explain how
{\tt sgf2tex} treats comments. The characters {\tt \\},
{\tt [} and {\tt ]} are represented in a valid SGF file by their
``escaped'' versions {\tt \\\\}, {\tt \\[} and {\tt \\]}. First,
these escapes (i.e.\ the {\tt \\}'s preceding the characters) are discarded.

Now, there are two different modes of processing the comment string.
In the first mode, the characters {\tt \\, \char'173, \char'175, \char'074, 
\char'076} and {\tt \char'137} are replaced by {\tt /, [, ], [, ]} and {\tt -}, 
respectively. This is done because {\it these characters do not exits in \TeX\ 
roman}, so it is impossible to print them without changing fonts. Our solution
is to make plausible substitutions. 

If the {\tt -texComments} option is used, then processing is done identically
except that {\tt \\, \char'173} and {\tt \char'175} are not modified. This
way, the user can {\tt \char'173\\bf switch fonts in the comments\char'175} if
he or she wants {\bf boldface}, etc.

The {\it gap} is a small amount of space following the diagram, so that the
diagrams do not run together. The default is 12 points, or zero in two
column mode. The gap may be changed using the {\tt -gap} option.
\vfil\eject

\centerline{\titlefont Variations}
\vglue.18in
If your SGF file contains variations, {\tt sgf2tex} will print them
and generate labels for them according to a logical scheme.

We offer also an alternative. The {\tt C} program {\tt sgfsplit} will 
create from the file a sequence of other SGF files each containing
one variation. The normal usage is {\tt sgfsplit} [{\it filename}]. This will
create from the file [{\it filename}] or [{\it filename}]{\tt .sgf} a sequence of
files called [{\it filename}]{\tt .0.sgf}, [{\it filename}]{\tt .0.sgf}, etc. The first
file contains the main line, the remaining files, variations. Also
created is an executable shell script called [{\it filename}]{\tt .sgf2tex}
which contains suggested commands for invoking {\tt sgf2tex}. In particular,
breakpoints are specified for each variation. You may wish to edit this file
before executing it to fine tune the board sizes. If you invoke {\tt sgfsplit}
in the form {\tt sgfsplit} [{\it filename}] [{\it extra parameters}] the
extra parameters (such as {\tt -simple}) are passed along in 
[{\it filename}]{\tt .sgf2tex}.

One may ask why {\tt sgfsplit} is needed since {\tt sgf2tex} has built-in
support for variations. One possible reason is that by splitting up the
file into variational components, one may supply different values of
the {\tt -t}, {\tt -b}, {\tt -l} and {\tt -r} parameters. This requires
editing the {\tt [filename].sgf2tex} file before executing it.

\vglue1in
\centerline{\titlefont Small Boards}
\vglue.25in
\hbox to\hsize{\vbox to 108.0 pt{\hsize= 108.0 pt\goo
\0??<\0??(\048(\043(\046(\0??(\042(\0??(\0??>
\0??[\049+\017+\018+\0??+\022+\041+\040+\0??]
\0??[\019+\044+\021+\016+\009+\001+\0??+\0??]
\0??[\023+\003+\024+\014+\008+\015+\011+\045]
\0??[\020+\025+\050+\0??*\0??+\013+\010+\012]
\0??[\026+\0??+\029+\028+\032+\006+\005+\0??]
\0??[\0??+\004+\027+\031+\036+\002+\007+\0??]
\0??[\0??+\030+\0??+\037+\034+\033+\035+\0??]
\0??,\0??)\0??)\0??)\039)\038)\0??)\0??)\0??.
\hfil\break\vglue10pt
\hbox{\rm \textstone{\goo\047=} at \textstone{\goo\021=}}\hfil\break}\hfil
\vbox to 108.9pt{\hsize=1.8in\rm\tolerance=10000\vfil
The most commonly used small board sizes are $9\times9$ and $13\times13$.
If {\tt sgf2tex} is used on a game of either of these sizes, an
appropriate small board is used. The board size is set using the SGF
property~SZ.\vfil}\hfil
\vbox to 108.0 pt{\hsize= 108.0 pt\goo
\0??<\062(\- !(\0??(\- !(\0??(\- !(\0??(\0??>
\064[\- @+\- @+\- !+\0??+\- !+\- @+\- !+\0??]
\0??[\- @+\053+\- @+\- !+\- @+\- @+\056+\054]
\063[\- @+\- @+\- !+\- !+\- !+\- @+\- @+\- @]
\061[\- !+\- @+\- !+\0??*\052+\- @+\- !+\- !]
\065[\- !+\051+\- @+\- !+\- !+\- !+\- @+\055]
\060[\066+\- !+\- @+\- @+\- !+\- !+\- @+\0??]
\059[\057+\- !+\067+\- @+\- !+\- @+\- @+\0??]
\068,\058)\069)\070)\- @)\- !)\0??)\0??)\0??.
\hfil\break}}

\vfil\eject

\centerline{\titlefont\TeX\ Macros}

\bigbreak
Using the {\tt sgf2tex} translator one need not worry about writing \TeX\
code. Nevertheless with some understanding of how \TeX\ works, GOOE/{\tt
sgf2tex} becomes a more powerful system. One method to use {\tt sgf2tex
-simple} to create \TeX\ files, which may then be edited and merged into a
larger document. For this, some understanding of how \TeX\ works is useful.
(The unedited output of {\tt sgf2tex -simple} is not beautiful---this 
option is perhaps {\it only} useful if you intend to edit its output.
But if this is your intention, {\tt sgf2tex -simple} will produce a file
as uncluttered as possible.)

The ultimate source for \TeX nical enlightenment is of course
{\it The \TeX book} by Donald Knuth (Addison-Wesley, 1984). We will try
to explain a few things which may be helpful to the user.

The file {\tt gooemacs.tex} contains macros needed to typeset Go games. You
may either paste these into the beginning of a file, or input them. 
The most important macros defined in {\tt gooemacs.tex} are {\tt \\goo} and
{\tt\\goe}. These toggle Go modes in which the black stones have odd numbers
({\tt \\goo}) or even numbers ({\tt \\goe}).

{\tt gotcmacs.tex} is an alternative to {\tt gooemacs.tex}, implementing
a two-column format. The macros in {\tt gotcmacs.tex} are used if you run
{\tt sgf2tex} in the {\tt -twoColumn} mode.

Here is the \TeX\ code needed to produce an empty Go board, with some text
alongside, as on the following page:

\vfil
{\seventtt\parindent=0pt\baselineskip=9pt\obeylines
\def\[{{\char'173}}
\def\]{{\char'175}}
\\hbox to \\hsize \[\\vbox\[\\hsize=228pt\\goo
\\0??<\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??(\\0??>
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??+\\0??+\\0??+\\0??*\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??[\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??+\\0??]
\\0??,\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??)\\0??.\]
\\hfil
\\vbox to 228pt\[\\hsize=1.8in\\tolerance=10000\\vglue6pt
\\noindent\[\\bf Example 1 (left).\] Empty Go board. Blah blah blah etc.
\\vfil\]\]
}
\vfil\eject

\hbox to \hsize {\vbox{\hsize=228pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.}
\hfil
\vbox to 228pt{\hsize=1.8in\tolerance=10000\vglue6pt
\noindent{\bf Example 1 (left).} Empty Go board. We use the macro
{\tt \\goo} instead of {\tt \\goe} because we intend to fill
this with stones in which the black ones are odd numbered. Cut the relevant
lines from this file {\tt manual.tex} and use them as a template to which
stones may be added as in the succeeding examples.

\bigbreak\noindent
{\bf Example 2 (below).} If you want a bigger font within the same 
document, you may use {\tt\\bgoo} and {\tt\\bgoe} in place of {\tt\\goo} and
{\tt\\goe} to get the fonts in 14 point.
\vfil}}

\vglue.25in
\hbox to\hsize{\hfil\vbox{\hsize=273.6pt\bgoo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}\hfil}

\vfil\eject

The \TeX\ code given above on p.~51 should be parsed as follows:

\vfil
{\tt\parindent=.5in\obeylines\offinterlineskip
\def\[{{\char'173}}
\def\]{{\char'175}}
\\hbox to \\hsize\[\\vbox\[\\hsize=228pt\\goo{\rm [Game Diagram]}\]
\\hfil
\\vbox to 228pt\[\\hsize=1.8in\\tolerance=10000\\vglue6pt{\rm [Text]}\\vfil\]\]
}
\vfil

In \TeX, there are two types of ``boxes'' which can contain typography. A {\it
vertical box} can consist of smaller boxes stacked together vertically, and a
{\it horizontal box} can consist of smaller boxes stacked together
horizontally. A horizontal box can be created using the {\tt\\hbox} macro,
so 

\vfil
{\tt\\hbox\char'173{\rm [First Box]\qquad [Second Box] ...}\char'175}
\vfil\noindent
creates a horizontal box containing a series of other boxes. or 
{\tt\\hbox to $\left<\hbox{\rm dimension}\right>$\char'173 ...\char'175}
creates a horizontal
box of specified width. Similarly
{\tt\\vbox to $\left<\hbox{\rm dimension}\right>$\char'173 ...\char'175} makes
a vertical box of specified height, and by putting the command
{\tt\\hsize=$\left<\hbox{\rm another dimension}\right>$} inside the braces we
can also control the width of the vertical box.

The above diagram consists of a horizontal box containing two vertical boxes,
separated by an {\tt\\hfil}. The latter is expandable horizontal ``glue'' or
space filling material which can grow horizontally to fill the gaps between
the boxes. The first vertical box consists of the game diagram, and since each
intersection on the Go board is a box 12 points high and 12 points wide, its
dimension is $12\times19=228$ points. (1 inch equals 72.27 point.)

The second vertical box is specified as

\vfil
\centerline{\noindent{\tt\\vbox to 228pt\char'173\\hsize=1.8in\\vglue6pt
{\rm [Text] }\\vfil\char'175}.}
\vfil

Thus we've forced it to have height 228 points---to match the known height of
the first vertical box---and width 1.8in. The width is chosen somewhat 
arbitrarily to make a small separation between the boxes. Plain tex sets
the width of a line to 6.5in, but since the first line of {\tt manual.tex} is
{\tt\\magnification=1200}, the true {\tt hsize} is actually 
$6.5{\rm in}\div1.2=391.462$pt. Thus the {\tt\\hfil} separating the two
vertical boxes will expand to fill the gap of $391.462-228-108.405=55.057$pt or
about .915 inch. Inside the second vertical box we find three items 
stacked vertically. The first ({\tt\\vglue6pt}) consists of inflexible vertical
glue filling 6 points; the second consists of the text which goes alongside
the diagram; and the third ({\tt\\vfil}) consists of flexible vertical glue to
fill the space down to the bottom of the box.  The text is thus moved down 6
points in the box. This has the effect of lining it up with the top of the go
board.

\vfil\eject
\hbox to \hsize {\vbox{\hsize=228pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\007+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\004+\0??+\0??+\0??+\0??+\0??+\009+\0??+\0??+\0??+\033+\0??+\001+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\031+\0??+\0??]
\0??[\0??+\008+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\032+\028+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\034+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\005+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\029+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\022+\030+\024+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\020+\015+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\023+\021+\013+\012+\016+\010+\0??+\0??+\0??]
\0??[\0??+\0??+\002+\0??+\0??+\0??+\0??+\0??+\025+\!a  \006+\018+\011+\014+\0??*\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\026+\0??+\0??+\0??+\0??+\0??+\019+\017+\003+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\027+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.}
\hfil
\vbox to 228pt{\hsize=1.5in\tolerance=10000\vglue6pt
\noindent{\bf Example 3.} We begin by replacing some of the stones {\tt\\0??} in
the previous file with {\tt\\001}, {\tt\\002}, ... to obtain numbered
Go stones \textstone{\goo\001=}, \textstone{\goo\002=}, .... In this example, 
\textstone{\goo\025=} should be at `{\it a\/}.'
\vfil}}


\hbox to \hsize {\vbox{\hsize=228pt\goo
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\- @+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\- @+\0??+\0??+\0??+\- :+\0??+\- :+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- :+\0??+\0??]
\0??[\0??+\- !+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\046+\0??+\0??+\- ;+\- ;+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\045+\044+\0??+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\043+\042+\038+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\039+\037+\- !+\0??+\0??+\0??]
\0??[\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\0??*\0??+\0??+\0??+\0??+\0??+\040+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\041+\- @+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\047+\0??+\- @+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- !+\- !+\- !+\0??+\035+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- !+\- @+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- @+\- @+\- @+\- !+\- !+\- !+\0??+\0??+\0??]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\- @+\0??+\- !+\- !+\- @+\- !+\0??*\036+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\- !+\0??+\0??+\0??+\0??+\0??+\- @+\- @+\- @+\048+\0??+\0??]
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- @+\0??+\0??+\0??+\052+\0??+\0??+\051+\049+\050+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\053)\0??.
}
\hfil
\vbox to 228pt{\hsize=1.5in\tolerance=10000\vglue6pt
\noindent{\bf Example 4.} Continuing from the above. A black unlabelled
stone such as \textstone{\goo\- @@} is represented in the \TeX\ file
as {\tt\\- @+}, and a white unlabelled stone such as 
\textstone{\goo\- !!} is represented by {\tt\\- !+}. A black labelled stone
\textstone{\goo\- ::} is represented as {\tt\\- :+}, and a white 
labelled stone \textstone{\goo\- ;;} is represented as {\tt\\- ;+}.
\vfil}}

\vfil\eject

\hbox to\hsize{\vbox to 86.88889pt{\hsize=3in\vglue6pt 
{\bf Example 5.} Diagrams are handled similarly, except that we only use a
portion of the template from Example~1. In this example, since White
moves first, we use {\tt\\goe} instead of {\tt\\goo}. Since the box
containing the diagram on the right has height $7\times12=84$ pt, we give the
box containing the text on the left the same height.
\vfil}\hfil
\vbox to 86.88889pt{\hsize=132pt\goe
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??
\0??[\0??+\004+\002+\001+\!  a\0??+\0??+\0??+\0??+\0??
\0??[\0??+\- !+\003+\- @+\0??+\0??+\0??+\0??+\0??*\0??
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??
\0??[\0??+\0??+\- @+\0??+\0??+\0??+\0??+\0??+\0??+\0??
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??
\vfil}}

\vglue.2in

\vglue.18in
\centerline{\titlefont Letters on Stones}
\vglue.18in
\def\textstone#1{\hbox to 12pt{\lower4pt\hbox{#1}\hfil}}

Beginning with version~3.1 {\tt sgf2tex} supports stones labelled with
italic letters. If you have an older version of {\tt sgf2tex} you
will have to replace the file {\tt gooemacs.tex}. You will also
have to install a few new metafont files, namely {\tt gobl.mf}, 
{\tt gowl.mf}, {\tt paramsc.mf} and {\tt goxl.mf}. After executing
the macro {\tt gool}, you can use the macros {\tt\\401=} through
{\tt\\426=} to obtain the black labelled stones \textstone{\gool\401=}
through \textstone{\gool\426=}. The macros {\tt\\501=} through
{\tt\\526=} to obtain the white labelled stones \textstone{\gool\501=}
through \textstone{\gool\526=}. 

Thus you can produce diagrams such as this one:

\vbox to 228.0 pt{\hsize= 228.0 pt\goo\gool\parindent=1in
\0??<\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\0??(\- !(\- @(\0??(\0??(\0??(\0??(\0??>
\0??[\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\0??+\- !+\- !+\- @+\0??+\0??+\0??+\0??+\0??]
\0??[\0??+\0??+\0??+\- !+\0??+\- !+\- !+\- !+\0??+\- !+\0??+\- @+\0??+\- @+\- @+\0??+\- @+\0??]
\0??[\0??+\- !+\0??*\0??+\0??+\- !+\- @+\- @+\- !+\0??+\- !+\0??+\- @+\- @+\- !+\- @+\- @+\- @]
\0??[\0??+\0??+\- !+\0??+\0??+\0??+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\- @+\- !+\- !+\- !+\- @]
\0??[\0??+\0??+\0??+\- !+\0??+\- !+\0??+\- !+\- @+\0??+\- !+\- @+\0??+\- @+\- !+\- !+\- @+\- @]
\0??[\0??+\- !+\- !+\0??+\- !+\0??+\0??+\0??+\- @+\0??+\- @+\0??+\0??+\- @+\- !+\0??+\- !+\- !]
\0??[\0??+\0??+\- !+\- @+\0??+\- @+\0??+\- @+\0??+\- @+\0??+\- @+\- @+\- !+\0??+\- !+\- !+\- !]
\0??[\0??+\- !+\- @+\- @+\- @+\0??+\0??+\0??+\- !+\- @+\- !+\- @+\- !+\0??+\- !+\- @+\- @+\- !]
\0??[\0??+\- !+\- !+\- !+\- !+\- !+\- !+\- !+\0??*\- !+\- !+\- @+\- @+\- !+\- !+\- @+\0??+\- @]
\0??[\0??+\- !+\- @+\- @+\- @+\- @+\- @+\0??+\- !+\- !+\- !+\- !+\- !+\- @+\- @+\- @+\0??+\0??]
\0??[\0??+\- !+\- @+\0??+\0??+\0??+\0??+\- @+\- !+\0??+\- !+\- @+\- !+\- @+\- @+\0??+\0??+\0??]
\0??[\0??+\- !+\- !+\- !+\- !+\0??+\- @+\- !+\- !+\- !+\0??+\- @+\- !+\- @+\0??+\0??+\0??+\0??]
\0??[\0??+\- !+\- @+\- @+\- !+\0??+\- @+\0??+\0??+\0??+\- !+\- @+\- @+\- @+\- @+\0??+\0??+\0??]
\0??[\- !+\- !+\- !+\- @+\0??+\- @+\0??+\- @+\0??+\- !+\- @+\- @+\- @+\501=\0??+\0??+\0??+\0??]
\0??[\- @+\- !+\- @+\- @+\0??+\0??+\0??+\0??+\- @+\- @+\502=\0??+\0??+\501=\0??*\- @+\0??+\0??]
\- @[\0??+\- @+\- !+\- @+\0??+\0??+\0??+\- @+\0??+\502=\502=\- @+\0??+\501=\- @+\0??+\0??+\0??]
\0??[\0??+\- @+\- !+\- !+\- @+\0??+\0??+\0??+\0??+\- @+\- @+\0??+\- @+\501=\501=\- @+\0??+\0??]
\0??,\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??)\0??.
}

\vglue.2in

\vglue.18in
\centerline{\titlefont Font Design Notes}
\vglue.18in
Since you have the \metafont\ sources to the GOOE fonts, you are free to
change the stones, and their numerals. The principal configurable files are
{\tt paramsa.mf} and {\tt paramsb.mf}. If you change the fonts, you will need
to reinstall them as described earlier in this manual.  If you reinstall the
fonts, you should be aware that {\tt MakeTeXPK} generates files with names
such as {\tt gooa.360pk} etc.\ and caches them somewhere in your system. You
will need to find and delete these cached font files, or else your changes
will not show up.

The numerals on the go stones are instances of the Computer Modern Fonts
which were created for \TeX\ by Donald Knuth. The file {\tt romandg.mf}
is the same as the file {\tt romand.mf} from the \TeX\ distribution,
with only trivial modifications to allow us to paste the numerals onto
the stones.

The Computer Modern Font family depends on certain parameters, which we set in
the file {\tt paramsb.mf}. From the single \metafont\ file {\tt romand.mf},
all of the numerals in the various fonts distributed with
\TeX\ are generated, except the italic ones, which use {\tt itald.mf} instead.
Only the parameters are changed to obtain these varied fonts.

If you wish to modify the numerals on the stones, you should edit {\tt
paramsa.mf} and {\tt paramsb.mf}, but leave {\tt romandg.mf} untouched. To get
some idea of the variety of fonts which can be created from {\tt romand.mf},
consult Knuth, {\it Computer Modern Typefaces}, Volume E in the Computers and
Typesetting series, Addison-Wesley 1986. In the section titled ``Font
Specimens'' at the back of the book, the 75 standard typefaces in the Computer
Modern family are presented, using sample texts by Edgar Allen Poe to
illustrate their use.

If one examines Go typography, such as may be found in any Go book or
magazine, one does not find modern numerals, such as these from the Computer
Modern font {\tt cmr10}: 0123456789. Instead, one finds simplified {\it sans
serif\/} fonts. These are more readable in the context of a Go diagram. We
obtained good results basing the numerals on the {\tt cmss10} font: {\gofont
0123456789}.  We changed four settings only, namely the font parameters {\tt
u} and {\tt fig\char'137height}, which control the width and height of the
digits, the parameter {\tt notch\char'137cut}, which we found had to be
increased to correct the shape of the 4 when the font was compressed
horizontally, and {\tt fine}, increasing which improves the appearance
of \textstone{\goo\002=} and possibly other numerals by fattening the
arc at its base. Consult the initial section of Knuth, {\it loc.\ cit.},
titled ``Introduction to the Parameters'' for more information about the font
parameters. The parameters must satisfy certain inequalities which are
described there. In particular, {\tt fine} cannot be increased past 
{\tt 17/36pt} unless {\tt thin\char'137join} is also increased.

Apart from Knuth's parameters in {\tt paramsb.mf}, a number of configurable
parameters are set in {\tt paramsa.mf}. The parameters {\tt oneleft}, 
{\tt twoleft}, etc.\ control the horizontal spacing of the stones. If 
{\tt setback} is set to a small nonzero number (probably no larger than 0.1)
the stones will be slightly smaller than 12 points in diameter, and a portion
of the board will be visible between them. This requires modification to {\tt
gooemacs.tex}.  The changes needed are documented in the comments to that
file. 

If the parameter {\tt smudge} is set $>0$ in {\tt paramsa.mf}, the numerals on
the Black stones are expanded by {\tt smudge} pixels in the vertical
direction. This can enhance readability at the cost of some crispness.
The default value {\tt smudge=1} is chosen to optimize readability on our
300dpi Hewlett Packard Laserjet IIIp's.

\vglue1in

\centerline{\titlefont Problems with {\titlett xdvik}}
\vglue.25in
The popular X-Window \TeX\ previewer {\tt xdvi} sometimes has
difficulty displaying the {\tt sgf2tex} fonts correctly. The
symptom is that the stones (which should touch) seem slightly
``shaved'' so that the rounded edges are cut off. A screen
shot illustrating this problem may be found at the web site
at {\tt http://match.stanford.edu/bump/go.html}. 

There are two forks to the {\tt xdvi} development tree. One
version, maintained by co-workers of Karl Berry, is usually
called {\tt xdvik}. (The version of {\tt xdvi} distributed
with current TeTeX appears to be {\tt xdvik}.) It is this
version of {\tt xdvi} which exhibits this bug. Hopefully this
will be corrected at a future time, but in the meantime if
your {\tt xdvi} exhibits this problem, you can download
the other version of {\tt xdvi} from Paul Vojta's site at
{\tt http://math.berkeley.edu/\char'176 vojta/xdvi.html}.

\vfil\eject

\vglue1in
\centerline{\titlefont No Warranty}
\medbreak

With the exception of the files {\tt romandg.mf} and {\tt itallg.mf}, 
which are part of the Computer Modern Font sources and therefore copyrighted
by Donald Knuth, all metafont sources and \TeX\ macros included herewith, as
well as the computer programs {\tt sgf2tex} and {\tt sgfsplit} are
published under the GNU General Public License, version 2 (GPL). 
A copy of this license is contained in the file {\tt COPYING}. If for some
reason your distribution is missing this file, consult the Free Software
foundation at:
\smallskip
\centerline{\tt http://www.gnu.ai.mit.edu/copyleft/gpl.html} 
\smallskip\noindent
or write to them at The Free Software Foundation, Inc., 59 Temple Place ---
Suite 330, Boston, MA 02111, USA.

The GPL permits free redistribution of software published under its terms,
provided the source code to that software, and the source to any published
software derived from it is always provided or made available. Software
published under the GPL comes with {\bf absolutely no warranty}. Therefore
{\bf nothing in this release, including but not limited to the metafont
sources and the programs {\tt sgf2tex} and {\tt sgfsplit} comes with any
warranty whatsoever.}

\vfil\eject
\bigbreak
\centerline{\titlefont Test Pattern}
\bigbreak

The purpose of this page is to confirm that the fonts are working
correctly. Testing, \textstone{\goo\001=}, \textstone{\goo\002=}, 
\textstone{\goo\003=}, ...

\bigbreak
\gooa
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goob\char0}
\goob
\line{\char1\char2\char3\char4\char5\char6\char7\char8
\char9\char10\char11\char12\char13\char14\char15\char16\char17
\char18\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooc\char0}
\gooc
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\good\char0}
\good
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooegb;}

\medbreak

\line{\gool\401=\402=\403=\404=\405=\406=\407=\408=\409=\410=\411=\412=\413=\414=\415=\416=\417=\418=\419=\420=\421=\422=\423=\424=\425=\426=\hfil}
\line{\gool\501=\502=\503=\504=\505=\506=\507=\508=\509=\510=\511=\512=\513=\514=\515=\516=\517=\518=\519=\520=\521=\522=\523=\524=\525=\526=\hfil}

\medbreak


\goea
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goeb\char0}
\goeb
\line{\char1\char2\char3\char4\char5\char6\char7\char8
\char9\char10\char11\char12\char13\char14\char15\char16\char17
\char18\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goec\char0}
\goec
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goed\char0}
\goed
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooegb:}



% Make the small-font test page below by commenting out the above \bye.

\vfil\eject
{\centerline{\titlefont Small Fonts}
\bigbreak

\rm
The purpose of this page is to test the fonts in a smaller size. These
fonts are used in the two-column format. They may be smaller than you may ever
need. If you need fonts at this size on a 300dpi device, you may wish to
consider setting {\tt smudge} to 1 or greater in {\tt paramsa.mf}. (This
is the current default.) On the other hand if you have a high resolution
device {\tt smudge:=0} might give a crisper font. If you change 
{\tt paramsa.mf} or {\tt paramsb.mf} you must reinstall the fonts.

\font\gooa=gooa at 8.33333 pt
\font\goea=goea at 8.33333 pt
\font\goob=goob at 8.33333 pt
\font\goeb=goeb at 8.33333 pt
\font\gooc=gooc at 8.33333 pt
\font\goec=goec at 8.33333 pt
\font\good=good at 8.33333 pt
\font\goed=goed at 8.33333 pt
\font\gobl=gobl at 8.33333 pt
\font\gowl=gowl at 8.33333 pt

\font\gooegb=gooegb at 8.33333 pt
\font\gooemt=gooemt at 8.33333 pt
\def\goo{\offinterlineskip\parindent=0pt\parskip=0pt\obeylines
  \def\0##1##2##3{\if##1?\gooegb ##3 \else \gooa\char##1##2 \fi}%
  \def\1##1##2##3{\if##1?\gooegb ##3 \else \goob\char##1##2 \fi}%
  \def\2##1##2##3{\if##1?\gooegb ##3 \else \gooc\char##1##2 \fi}%
  \def\3##1##2##3{\if##1?\gooegb ##3 \else \good\char##1##2 \fi}%
  \def\-##1##2{\gooegb ##1 }%
  \def\!##1{\hbox to 10pt{\hfil\raise3pt\hbox{\eighti ##1}\hfil}}%
}
\def\goe{\offinterlineskip\parindent=0pt\parskip=0pt\obeylines
  \def\0##1##2##3{\if##1?\gooegb ##3 \else \goea\char##1##2 \fi}%
  \def\1##1##2##3{\if##1?\gooegb ##3 \else \goeb\char##1##2 \fi}%
  \def\2##1##2##3{\if##1?\gooegb ##3 \else \goec\char##1##2 \fi}%
  \def\3##1##2##3{\if##1?\gooegb ##3 \else \goed\char##1##2 \fi}%
  \def\-##1##2{\gooegb ##1 }%
  \def\!##1{\hbox to 10pt{\hfil\raise3pt\hbox{\eighti ##1}\hfil}}%
}

\offinterlineskip
\bigbreak
\gooa
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goob\char0}
\goob
\line{\char1\char2\char3\char4\char5\char6\char7\char8
\char9\char10\char11\char12\char13\char14\char15\char16\char17
\char18\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooc\char0}
\gooc
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\good\char0}
\good
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooegb;\hfil}

\medbreak
\line{\gool\401=\402=\403=\404=\405=\406=\407=\408=\409=\410=\411=\412=\413=\414=\415=\416=\417=\418=\419=\420=\421=\422=\423=\424=\425=\426=\hfil}
\line{\gool\501=\502=\503=\504=\505=\506=\507=\508=\509=\510=\511=\512=\513=\514=\515=\516=\517=\518=\519=\520=\521=\522=\523=\524=\525=\526=\hfil}

\medbreak

\goea
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goeb\char0}
\goeb
\line{\char1\char2\char3\char4\char5\char6\char7\char8
\char9\char10\char11\char12\char13\char14\char15\char16\char17
\char18\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goec\char0}
\goec
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\goed\char0}
\goed
\line{\char1\char2\char3\char4\char5\char6\char7\char8\char9
\char10\char11\char12\char13\char14\char15\char16\char17\char18
\char19\char20\char21\char22\char23\char24\char25\hfil}
\line{\char26\char27\char28\char29\char30\char31\char32\char33\char34
\char35\char36\char37\char38\char39\char40\char41\char42\char43
\char44\char45\char46\char47\char48\char49\char50\hfil}
\line{\char51\char52\char53\char54\char55\char56\char57\char58\char59
\char60\char61\char62\char63\char64\char65\char66\char67\char68
\char69\char70\char71\char72\char73\char74\char75\hfil}
\line{\char76\char77\char78\char79\char80\char81\char82\char83\char84
\char85\char86\char87\char88\char89\char90\char91\char92\char93
\char94\char95\char96\char97\char98\char99\gooegb:}


}

\bye
