I have a requirement to create a document similar to the attached image. I am working with Sanskrit alaphabets and there is a name for each set as shown in the image. In english there is no set other than broad division of Vowels and consonants. I could have posted image with Sanskrit text but lot of people here do not have that font.
I would really appreciate your help. one way I thought of was, to create nodes around each letter in Tikz but not sure if there is any easy method out there.
PS: I could not think of a good question title
I am adding output based on @Yori's solution. Everything work great except I did not get straight lines. I guess the issue is with Devanagari fonts. I highlighted the issue with red circle, the line is not horizontal its slanted. Sorry I could not attach image to my comment to I am modifying here. if you feel I should start a new question I can do that as well.