Closed Aerijo closed 5 years ago
@Aerijo No, that is not what saved_catcodes
was for.
It turns out \ExplSyntaxOn
saves the current value of the catcodes it overwrites which it then restores with \ExplSyntaxOff
.
I probably didn't name it well and haven't added comments yet. Sorry about that.
I'm going to try sleeping instead.
If I've understood it right, this should let the
saved_catcodes
do it's job.Seeing as there are two maps, and the "main" one appears to hold a known set of keys, I think it should be easy to convert it to a switch / array. By this, I'm imagining something like
So we can still change the values of the fixed characters. I also think we can hard code letters as always letters, because 1) I don't think anyone is crazy enough to change that, and 2) if they do change it, what if we don't detect when they reverted it?