The output dictionary now corresponds to our numbering scheme.
I have also put in patterns for all the letters, numbers, and special characters. However, I have not given them good names, and as such they cannot be compiled (eg *=[...] instead of star=[...])