Estoy trabajando en un proyecto con escritura jemer en el que desean que \nd esté subrayado. El problema es que la primera letra de la palabra que significa “señor” tiene un descendente profundo. Si el subrayado se coloca lo suficientemente bajo para estar por debajo del descendente, entonces está demasiado lejos de la mayoría del texto, especialmente en los casos en que \nd se usa en una palabra sin descendente. En realidad, estoy simplificando el problema, ya que la “primera letra” visualmente es en realidad el 4.º carácter de la cadena, debido a la belleza de las reglas de reordenación de Unicode para el jemer.
\nd ប៉្រ័ះ ប៊កកាតយ័\nd*
Sustituyendo por inglés para mantenerlo simple, usé changes.txt para cambiar
\nd god Yahweh\nd* a
god\zul\u0332\zul*\nd\ Yahweh\nd*.
El estilo \zul reduce el tamaño de la fuente y establece el estiramiento en 200 % para que el único carácter \u0332 subraye adecuadamente tanto la “o” como la “d” de “god”, mientras omite la “g”.
El "\ " (barra espaciadora) antes de “Yahweh” hace que \nd subraye el espacio entre “god” y “Yahweh”, por lo que todo funcionó perfectamente, hasta que llegué a un párrafo que había encogido usando la notación \p^95, lo que parece restablecer el estiramiento de mi estilo \zul al 100 %, dejando solo la última letra de “god” subrayada.
Idealmente, habría una casilla de verificación para que el subrayado se omita en todos los descendentes, pero una búsqueda rápida me lleva a creer que esto no es algo simple en TeX.
Siento que tomé un mal camino hace 49 millas y estoy buscando otras sugerencias.
¿Cómo puedo hacer un buen subrayado de las palabras ប៉្រ័ះ ប៊កកាតយ័ — y algo que también funcione para la palabra អាញ់?
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 អាញ់?
Traducción automática desde English Mostrar original