X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=doc%2Fmake_fig1;fp=doc%2Fmake_fig1;h=0000000000000000000000000000000000000000;hb=8ce8026a83784396ecdb1cc1530ab09c7ae0a53c;hp=cd92ef9ea30b58042d2fba5cd223c1a894c6576f;hpb=ee7854267f81987f44e5f4973f3d55e09bd38174;p=gnushogi.git diff --git a/doc/make_fig1 b/doc/make_fig1 deleted file mode 100755 index cd92ef9..0000000 --- a/doc/make_fig1 +++ /dev/null @@ -1,55 +0,0 @@ -#! /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: -

-

-   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    
-+--------------------------------------------+
-
-""" - -# -# 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, - -