Commit Graph
1 Commits
Author SHA1 Message Date
tim df9959a078 Add a script that cleans up smart punctuation in chapter revisions
Some revisions differ from others only by curly quotes, curly
apostrophes and the ellipsis. The script deletes those revisions and
keeps the one with the least smart punctuation. In revisions with other
text changes, it makes the punctuation straight and stores the new text
hash. It does not change the newest revision if it came from the site.

The script uses only the Python standard library, so you can run it on
the host against bindery.db. It is a dry run unless you give --apply,
and --apply makes a backup first.
2026-09-27 23:38:28 +02:00