Estou trabalhando com um projeto em escrita khmer no qual eles querem que \nd seja sublinhado. O problema é que a primeira letra da palavra que significa “senhor” tem uma descida profunda. Se o sublinhado for colocado baixo o suficiente para ficar abaixo da descida, ele fica muito longe da maior parte do texto, especialmente nos casos em que \nd é usado em uma palavra sem descida. Na verdade, estou simplificando o problema, pois a “primeira letra” visualmente é, na verdade, o 4º caractere na string, devido à beleza das regras de reordenação do Unicode do Khmer.
\nd ប៉្រ័ះ ប៊កកាតយ័\nd*
Substituindo por inglês para manter simples, usei changes.txt para mudar
\nd god Yahweh\nd* para
god\zul\u0332\zul*\nd\ Yahweh\nd*.
O estilo \zul reduz o tamanho da fonte e define o esticamento (stretch) para 200%, de modo que o único caractere \u0332 sublinha perfeitamente tanto o “o” quanto o “d” de “god”, pulando o “g”.
O "\ " (barra espaço) antes de “Yahweh” faz com que \nd sublinhe o espaço entre “god” e “Yahweh”, então tudo funcionou lindamente — até eu chegar a um parágrafo que eu havia reduzido usando a notação \p^95, o que parece redefinir o esticamento do meu estilo \zul para 100%, deixando apenas a última letra de “god” sublinhada.
O ideal seria uma caixa de seleção para fazer o sublinhado ser omitido em todas as descidas, mas uma busca rápida me leva a acreditar que isso não é algo simples no TeX.
Sinto que tomei um caminho errado há 49 milhas e estou procurando outras sugestões.
Como posso fazer um sublinhado bonito das palavras ប៉្រ័ះ ប៊កកាតយ័ — e algo que também funcione para a palavra អាញ់?
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 អាញ់?