OK, this page is done; please let me know if anything remains to fix here.
(There were two diagrams here too in which a piece name started with a period and the surrounding brackets had been URL-encoded, which made the first pass of the regex replacement convert too much. It was easy enough to spot and fix. I can't just begin the process by converting the URL-encoded %7B and %7D back to brackets, because then the main regex will stop too soon. Maybe I can adjust the main regex to exclude matches to %7B.?)
OK, this page is done; please let me know if anything remains to fix here.
(There were two diagrams here too in which a piece name started with a period and the surrounding brackets had been URL-encoded, which made the first pass of the regex replacement convert too much. It was easy enough to spot and fix. I can't just begin the process by converting the URL-encoded
%7B
and%7D
back to brackets, because then the main regex will stop too soon. Maybe I can adjust the main regex to exclude matches to%7B.
?)