I have had a need for something like what you are doing. I gave up and just used 4 lines of free format text, except in the case of US addresses, for which I had formatting rules. What book has the address formats of 193 countries? I might buy that one.