I’m working with a Khmer script project in which they want \nd to be underlined. The trouble is that the first letter of the word meaning “lord” has a deep descender. If the underline is placed low enough to be below the descender then it’s just too far from the majority of the text, especially in cases where \nd is used on a word without a descender. I’m actually simplifying the problem, since the “first letter” visually is actually the 4th character in the string, due to the beauty of Khmer Unicode re-ordering rules.
\nd ប៉្រ័ះ ប៊កកាតយ័\nd*
Substituting English to keep it simple, I used changes.txt to change
\nd god Yahweh\nd*
to
god\zul\u0332\zul*\nd\ Yahweh\nd*
.
The \zul style reduces the font size and sets stretch to 200% so that the single \u0332 character nicely underlines both the “o” and “d” of “god”, while skipping the “g”.
The "\
" (slash space) before “Yahweh” causes \nd
to underline the space between “god” and “Yahweh”, so it all worked beautifully—until I got to a paragraph which I’d shrunk using the \p^95
notation, which seems to reset to 100% the stretch on my \zul
style, leaving only the last letter of “god” underlined.
Ideal would be a check box to cause underlining to dropout at all descenders, but a quick search leads me to believe that this is not a simple thing in TeX.
I feel like I took a wrong turn 49 miles ago and I’m looking for some other suggestions.
How can I make a nice underline of the words ប៉្រ័ះ ប៊កកាតយ័ — and something that will also work for the word អាញ់?