


Well, I'm not trying to be evasive here, but I'd go back to my "spaces are complicated!" comment above on that particular question. If none of those seem like they will fix the issue, then we may need to use a more sophisticated grep. I won't elaborate on this option because it may not apply to your case. You would have to choose a special (invisible) character that wasn't used in any of the non-latin languages (we can't use zero-width-space for example because as Joel says it is used by some languages to control line breaking). This is a more flexible, but manual approach.

In this case you must insert a special character before and after the latin text. Only match any text between special characters. digits, to be kept in the non-latin-text font: This could work if the latin text is inserted always after punctuation, and in cases where you want some latin text, eg. öà. (I tried targeting a unicode code block eg \p]+ Which isn't great, because it only targets the explicitly included characters, so you will have to add any other characters you want to target, such as hyphen, dollarsign, em-dash, accented characters, eg. I set up a paragraph of chinese text with a grep style that targets specific latin characters and draws them in DIN cyan color. Hi I don't have any experience with what you are asking, but in case it helps, here is a little test I just did, that might be worth playing with.
