Embeds chess diagrams from epd file into a document.
- Install python version 3.7 or later
- Install requirements
- pip install chess==1.9.3
- pip install cairosvg==2.5.2
- pip install python-docx==0.8.11
- pip install tqdm==4.64.1
Copy the whole repository from command line with:
git clone https://github.com/fsmosca/epd2doc.git
You will get the main.py, sample epd 7men_human.epd
and other files.
With requirements.txt file, you can also install the requirements with:
pip install -r requirements.txt
python main.py --epd-file 7men_human.epd --output-file sevenmen.docx --max-pos 10 --show-fen
python main.py --help
See wiki.
command line
python main.py --epd-file 7men_human.epd --output-file sevenmen.docx --max-pos 10 --show-fen --show-bm --randomize-position --header "Seven-men test"
sevenmen.docx
python main.py --epd-file opening.fen --output-file opening.docx --show-fen
opening.docx