Git Product home page Git Product logo

srdine's Introduction

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?

srdine's People

Contributors

antoniotejada avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.