petzku / Aegisub-Scripts

petzku's Aegisub automation scripts
25 stars 6 forks source link

Typewriter: Handle tags more robustly #7

Closed bucket3432 closed 2 years ago

bucket3432 commented 2 years ago

See the individual commit messages for more details.

Summary:

bucket3432 commented 2 years ago

Ugh, don't review this yet. I just tested it in my real-world example and it's not working as expected.

bucket3432 commented 2 years ago

Okay, I've pushed an update and everything should be working as expected. The issue was that it was not recognizing multiple override blocks at the start because the lookahead in L189 was starting at the wrong position. start_tags is now being prepended to start after active_char is assigned so that start is a prefix of text during the loop.

bucket3432 commented 2 years ago

Pushed another update that fixed a timing mismatch introduced with the text tags update.

petzku commented 2 years ago

@bucket3432 sorry, this fell through the cracks for a while. Is it ready to review now?

bucket3432 commented 2 years ago

@petzku Yes, this is ready for review.