Hello,
Maybe someone will find this helpful. It's way too bloated, and your a2l must be STRICTLY utf8 formatted, but go ahead and throw it at a clean DB and a2l. Someone better at idapython could probably clean this up a lot, but I figured I would donate it to the greater good.
I would definitely welcome PR's!
However, the goal of this was to enhance the visual representation and technical data types for other uses.
Basically, it pretties up the data that it marks.
https://github.com/Decryptortuning/IDA_A2L