This commit is contained in:
Techognito 2025-08-15 23:39:31 +02:00
commit 48af2bebed

View file

@ -4,24 +4,32 @@ A set of BASH scripts for turning PDFs that contain multiple rolltables into Jso
Initially these scripts are intended for "The book of random tables" series by Matt Davids, but will look into adding other sources as I find need for it. Initially these scripts are intended for "The book of random tables" series by Matt Davids, but will look into adding other sources as I find need for it.
## I want to be able to use these scripts on x.pdf or y.pdf
1. Open an issue in the issues tracker
2. Either provide a copy of the pdf or a link to where it can be purchased
3. Be patient (Depending on complexity and my leftover energy from everything else I do. The amount of time needed varies)
4. profit
## Step 0
## The Different Scripts and their order
### Step 0
```bash ```bash
pdf2text something.pdf pdf2text something.pdf
``` ```
turns pdf into text files turns pdf into text files, the text files can then be parsed by my scripts
## Step 1 ## Step 1
```bash ```bash
greatSplitter.sh split step-0-Cleaner.sh inputfile [output path]
``` ```
This "detects" rolltables from the input file, and splits them into seperate files This "detects" rolltables from the input file, and splits them into seperate files
This does however assume, that the source is cleaned beforehand and each empty line splits the rolltables (not very clean) the greatSplitter.sh has been replaced by step-0-Cleaner instead, as I found a way to do both in the same "step"
output still needs some cleaning though, hence the cleaner on Step 2, but Step 2 uses the individual outputs from Step 1
## Step 2 ## Step 2