I have been wondering for ages how to do something that is absolutely crucial to the document I am writing. (I usually use XeLaTeX, but I don’t mind changing if required.)
I would like to have a list of characters (presumably Japanese characters, but maybe other ones as well) that would be typeset in a specific way. For instance, put all the ‘u’ and ‘W’ of the document in red.
In my case, the goal is to highlight all the characters (of a text) that are among a set of characters children should learn.
Now, I know I could define a macro or a new command for every character and then replace all its occurrences with that macro, but that would be a titanic job because I expect the number of different characters to be around 200.
Does anyone have an idea ? Thank you very much.