Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to a custom substitutions file format #61

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Move to a custom substitutions file format #61

merged 1 commit into from
Jan 19, 2025

Conversation

domenic
Copy link
Owner

@domenic domenic commented Jan 19, 2025

  • The new format is easier to read and write, at the cost of a custom parser.

  • The extra validation during parsing caught a few cases where we were accidentally replacing text with "undefined", due to typos. In particular, Worm Imago 21.3 and Ward Gleaming 9.11.

  • We now have separate substitutions files for each book.

  • We now read the substitutions from disk once per book, and pass the parsed result to the worker, which should be more efficient.

* The new format is easier to read and write, at the cost of a custom parser.

* The extra validation during parsing caught a few cases where we were accidentally replacing text with "undefined", due to typos. In particular, Worm Imago 21.3 and Ward Gleaming 9.11.

* We now have separate substitutions files for each book.

* We now read the substitutions from disk once per book, and pass the parsed result to the worker, which should be more efficient.
@domenic domenic merged commit 67ec627 into main Jan 19, 2025
1 check passed
@domenic domenic deleted the subs-files branch January 19, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant