/saar.deen/ A tool to finagle the Dungeons and Dragons 5e Systems Reference Document.
The original SRD from Wizards of the Coast is missing the table of contents, for now this tool generates that table of contents, but it can also serve as a base to do more processing.
- Generates a new pdf with the table of contents plus all the original content and monster thumbnails from dndbeyond
- Generates extra table of content monster sections indexed by size, CR, type
- Generates HTML monster pages using dndbeyond template
- Generates JSON file of monsters
- Generates JSON file of the document
- Generates markdown file of the document (preliminary)
- Python 2.7
- PyMuPDF 1.16.17
- Dungeons and Dragons 5e OGL SRD or Dungeons and Dragons 5e CC SRD.
- Download the Dungeons and Dragons SRD
- In order to generate monster thumbnails, download
monster.json
from releases and place it in the same directory as the pdf - Invoke
srdine.py
with the location of the SRD pdf, egit will generate the file>srdine.py _out\SRD-OGL_V5.1.pdf Reading json _out\monsters.json Loaded 317 monsters Reading pdf _out\SRD_CC_v5.1.pdf Generating TOC Generating pdf with TOC _out\SRD_CC_v5.1_TOC.pdf Adding monster thumbnails to _out\SRD_CC_v5.1_TOC.pdf Writing pdf _out\SRD_CC_v5.1_TOC.pdf Writing _out\SRD_CC_v5.1.json Writing _out\SRD_CC_v5.1.md Generating 317 monster _out\monsters.json Downloading resources for html monster pages Downloading template resources Generating 317 html monster pages at _out\html
_out\SRD-OGL_V5.1_TOC.pdf
- Better markdown output
- Spell parsing?