|
From: | Aaron Hill |
Subject: | Re: Request for East Asian emphasis points |
Date: | Tue, 29 Sep 2020 06:19:53 -0700 |
User-agent: | Roundcube Webmail/1.4.2 |
On 2020-09-28 10:43 pm, Andrew Bernard wrote:
Since these markings would presumably be infrequent in your scores, sticking with dots for the moment, you could always make a markup consisting of the character in a column with a dot/etc glyph. Roll your own. Tedious yes. You could write a markup function to do it (ask me, if you think this is viable). In fact, I can't think of any other way of doing it at the moment.
I could not resist. (:The new \text-emphasis markup command mostly maps to the CSS style of the same name but does not have full feature parity. Of note, the markup command will apply the emphasis mark to any character, whereas the CSS standard says to omit marks for certain character classes (Z* and P*, in particular).
Usage should be straightforward: %%%% \markup \concat { これは \text-emphasis 日本語 の文章です。 } %%%%Attached you will find a more complex series of tests and usage examples.
(I had to include my UTF8 string splitting code in order to handle CJK characters properly, so you will need to scroll down a bit to get to the markup command itself.)
-- Aaron Hill
css-text-emphasis.cropped.png
Description: PNG image
css-text-emphasis.ly
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |