We are going to reuse some of the code that does the pango -> atspi attribute conversion for text tags.
This code is more or less a direct copy of what we had in gtkpango.c in 3.x.