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.



nodes={font=\bfseries}bynodes={font=\bfseries, minimum height=24pt}. This makes sure the height of each node is at least 24 points. You have to play a bit with the 24pt to see what works best for you. I hope the horizontal alignment will be ok. (For debugging purposes you can adddraw=black, so that you can see the nodes containing the characters.) – yori Apr 27 '12 at 01:19