I'm doing tax forms in Nemeth, and I'm not sure if I should use the punctuation indicator before the ending period in the following forms. (Sometimes in print there's a hyphen and sometimes there's not; I'm showing both ways here).
If the abbreviation follows a space or a hyphen, punctuate as in literary braille. However, if the abbreviation consists of an unspaced series of numbers and letters, the letters should be individually capitalized and punctuated mathematically, according to the latest update on BANA's website. So your final example (1040EZ.) would look like this: