make ALL CAPS lines level 3 headers

still need to eyeball the results but it looks like most lines that are
ALL CAPS are level 3 headers or lower, so this converts everything to
level 3. a human effort will identify the level 4s and beyond I think

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
Brian S. Stephan 2025-04-04 17:27:58 -05:00
parent 09797197e8
commit dbd46654cf
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
2 changed files with 17167 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
#!/bin/sh
# The source seems to use level 3 headers in ALL CAPS, so make those markdown level
# 3 headers, noting that some parts seem to put things intending to be level 4 in
# ALL CAPS too, so this will need some human post processing
# clean up some typos and similar
sed -E 's/ACTION: Activate a Special Ability/ACTION: ACTIVATE A SPECIAL ABILITY/' _tmp/ccsrd.md > _tmp/ccsrd.new.md
sed -E 's/FIFTH-TIER SKILLS ANd KNOWLEDGE ABILITIES/FIFTH-TIER SKILLS AND KNOWLEDGE ABILITIES/' -i _tmp/ccsrd.new.md
sed -E 's/FANTASy/FANTASY/' -i _tmp/ccsrd.new.md
# s is here because e.g. "NPCs" is a common occurrence
sed -E "s/^[A-Z0-9s ()@'?&.,:\/-]+$/### \0/" -i _tmp/ccsrd.new.md