The problem is, as can be seen in the image, that the chord marking cancels kerning of letters around it. With the marking on the second syllable of ‘Avail’, the ‘A’ is farther from the ‘v’ than how it is supposed to be. How can I make the box not distrupt the kerning? A different approach would be to align the marking with a specific point in the text without inserting anything into the text.
chordx solves that by measuring widths of letters from the beginning of the word. It has a bigger issue because it ignores kerning completely (as described in issue #15), but it gave me the idea, and I implemented it so: