https://github.com/antoniotejada/srdine
Generates enhanced Dungeons and Dragons 5e SRD pdf
https://github.com/antoniotejada/srdine
dnd dnd5e dungeons-and-dragons dungeons-and-dragons-5e pdf pymupdf srd5 wizards-srd
Last synced: 7 months ago
JSON representation
Generates enhanced Dungeons and Dragons 5e SRD pdf
- Host: GitHub
- URL: https://github.com/antoniotejada/srdine
- Owner: antoniotejada
- License: agpl-3.0
- Created: 2023-07-31T21:38:49.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-20T01:18:13.000Z (about 2 years ago)
- Last Synced: 2025-01-25T18:08:30.133Z (9 months ago)
- Topics: dnd, dnd5e, dungeons-and-dragons, dungeons-and-dragons-5e, pdf, pymupdf, srd5, wizards-srd
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# srdine
/saar.**deen**/ A tool to finagle the [Dungeons and Dragons 5e Systems Reference Document](https://dnd.wizards.com/resources/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

### Table of contents with indices by monster attributes

### HTML monster page

## 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
- Python 2.7
- PyMuPDF 1.16.17
- [Dungeons and Dragons 5e OGL SRD](http://media.wizards.com/2016/downloads/DND/SRD-OGL_V5.1.pdf) or [Dungeons and Dragons 5e CC SRD](https://media.wizards.com/2023/downloads/dnd/SRD_CC_v5.1.pdf).## Usage
1. Download the [Dungeons and Dragons SRD](https://media.wizards.com/2023/downloads/dnd/SRD_CC_v5.1.pdf)
1. In order to generate monster thumbnails, download `monster.json` from releases and place it in the same directory as the pdf
1. Invoke `srdine.py` with the location of the SRD pdf, eg
```bat
>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?