Я работаю над проектом с использованием кхмерской письменности, где требуется подчёркивать \nd. Проблема в том, что у первого слова, означающего «господин», есть глубокая опускная часть (descender). Если подчёркивание расположено достаточно низко, чтобы оказаться ниже этой опускной части, то оно оказывается слишком далеко от основной части текста, особенно в случаях, когда \nd используется для слов без опускных частей. На самом деле я упрощаю проблему, поскольку «первая буква» визуально является 4-м символом в строке из-за особенностей правил переупорядочивания в Unicode для кхмерского языка.
\nd ប៉្រ័ះ ប៊កកាតយ័\nd*
Чтобы упростить, я заменил текст на английский и использовал changes.txt, чтобы изменить
\nd god Yahweh\nd* на
god\zul\u0332\zul*\nd\ Yahweh\nd*.
Стиль \zul уменьшает размер шрифта и устанавливает растяжение (stretch) на 200%, так что единственный символ \u0332 красиво подчёркивает обе буквы «o» и «d» в слове «god», пропуская «g».
Символ "\ " (слэш и пробел) перед «Yahweh» заставляет \nd подчёркивать пробел между «god» и «Yahweh», поэтому всё работало прекрасно — пока я не дошёл до абзаца, который я уменьшил с помощью нотации \p^95. Похоже, это сбрасывает растяжение (stretch) моего стиля \zul до 100%, оставляя подчёркнутой только последнюю букву слова «god».
Идеальным решением была бы галочка, заставляющая подчёркивание обходить все опускные части букв, но быстрый поиск заставляет меня полагать, что в TeX это непростая задача.
Мне кажется, я свернул не туда 49 миль назад, и я ищу другие предложения.
Как я могу сделать красивое подчёркивание слов ប៉្រ័ះ ប៊កកាតយ័ — и так, чтобы это также работало для слова អាញ់?
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 អាញ់?