Tools for rendering Chu Shogi diagrams (and other Shogi variants), and other useful programs
You need to install the programs bash, perl, latex, dvipng and dvisvgm. On Fedora 27 that means doing:
- sudo dnf install texlive-latex-bin
- sudo dnf install texlive-dvipng-bin
- sudo dnf install texlive-dvisvgm-bin
- sudo dnf install texlive-mfware-bin
- sudo dnf install 'tex(cmr10.tfm)'
- sudo dnf install 'tex(colordvi.sty)'
- sudo dnf install 'tex(epic.sty)'
- sudo dnf install texlive-hyphen-base
For the tools written in Eiffel, you should also install EiffelStudio from Eiffel Software.
- Create an installation directory. E.g.:
mkdir ~/chu-tools
-
Copy all files from the sub-directories (bash, example, latex, perl) to the installation directory.
-
Change to the eiffel directory: cd eiffel
-
cd fen2fsy
-
ec -finalize -config fen2fsy.ecf
If promoted to compile pre-compiled libraries, reply y
-
cd EIFGENs/fen2fsy/F_code
-
finish_freezing
-
cp fen2fsy ~/chu-tools
-
cd ../../..
-
rm -rf EIFGENs
-
cp start.fen ~/chu-tools
-
Change to the installation directory (cd ~/chu-tools) and type the command:
./forsyth2svg stampede.fsy
This should create a file stampede.svg[*] - one of my mating problems.
- Type the commands:
./fen2fsy start.fen start.fsy
./forsyth2png start.fsy
This should create a file start1.png - the start position obtained by doing File -> Save Position from the xboard menu
[*] This is hanging at 100% CPU busy. Bummer