I'm currently facing a problem I just can't solve, involving pango and GMarkup's glib API.
I currently use pango markup in awesome, but I'd like to extend it to support more attributes.
Pango markup uses GMarkup API to parse the formatted string. The problem is that there's no way to extend what is parsed, and if a tag is unknown in the pango parser, it will just fail.
I've tried to implement my own parser with GMarkup, but… When I encounter a tag I don't know but that pango does, I just can't pass it to the pango parser function for this tag, since this pango function is private.
There was a try to extends the markup parser 2 years ago, but the patch was crappy since it exposed the private elements of pango markup parsing, which is the bad way to solve this.
So for now, I've no idea how to do this. I was first using the bad parsing method with string.h's functions which I for now reverted, because I do not really like that.