Skip to content

antoniotejada/srdine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srdine

/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.

Screenshots

Table of contents and document with monster thumbnails

image

Table of contents with indices by monster attributes

image

HTML monster page

image

Features

  • 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)

Requirements

Usage

  1. Download the Dungeons and Dragons SRD
  2. In order to generate monster thumbnails, download monster.json from releases and place it in the same directory as the pdf
  3. Invoke srdine.py with the location of the SRD pdf, eg
    >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
    it will generate the file _out\SRD-OGL_V5.1_TOC.pdf

Todo

  • Better markdown output
  • Spell parsing?