html:
texi2html -split_node gnushogi.texinfo
- ./make_fig1 < gnushogi_6.html > tmp.html
- mv tmp.html gnushogi_6.html
- ./make_fig2 < gnushogi_14.html > tmp.html
- mv tmp.html gnushogi_14.html
view:
xdvi gnushogi.dvi
+++ /dev/null
-#! /usr/bin/env python
-
-import sys, re
-
-key = "The opening setup for shogi is as follows:"
-
-replace = """
-The opening setup for shogi is as follows:
-<P>
-<PRE>
- 9 8 7 6 5 4 3 2 1
-+--------------------------------------------+
-| wL | wN | wS | wG | wK | wG | wS | wN | wL | a
-+--------------------------------------------+
-| | wR | | | | | | wB | | b
-+--------------------------------------------+
-| wP | wP | wP | wP | wP | wP | wP | wP | wP | c
-+--------------------------------------------+
-| | | | | | | | | | d
-+--------------------------------------------+
-| | | | | | | | | | e
-+--------------------------------------------+
-| | | | | | | | | | f
-+--------------------------------------------+
-| bP | bP | bP | bP | bP | bP | bP | bP | bP | g
-+--------------------------------------------+
-| | bB | | | | | | bR | | h
-+--------------------------------------------+
-| bL | bN | bS | bG | bK | bG | bS | bN | bL | i
-+--------------------------------------------+
-</PRE>
-"""
-
-#
-# Insert the first figure directly into the html file.
-#
-
-done = 0
-
-while 1:
- line = sys.stdin.readline()
- if not line:
- break
-
- if not done:
- match = re.match(key, line)
- if match:
- print replace,
- done = 1
- else:
- print line,
- else:
- print line,
-
-
+++ /dev/null
-#! /usr/bin/env python
-
-import sys, re
-
-key = "three-mover. Here is a really trivial three-mover:"
-
-replace = """
-three-mover. Here is a really trivial three-mover:
-<P>
-<PRE>
-
- 3 2 1
-----------------+
- | | | | a
-----------------+
- | | | wK | b
-----------------+
- | | | | c
-----------------+
- | bN | | | d
-----------------+
- | | | | e
-----------------+
- | | bN | | f
-----------------+
-
-Black in hand: S, G
-
-</PRE>
-"""
-
-#
-# Insert the figure directly into the html file.
-#
-
-done = 0
-
-while 1:
- line = sys.stdin.readline()
- if not line:
- break
-
- if not done:
- match = re.match(key, line)
- if match:
- print replace,
- done = 1
- else:
- print line,
- else:
- print line,
-
-