Hello Yannis, On 3/25/21 10:41 AM, Yannis Haralambous wrote: > This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded > format=plain) > restricted \write18 enabled. > (./test.tex > Underfull \hbox (badness 10000) in paragraph at lines 6--6 > *[] \tenrm blabla* > [1] ) > (see the transcript file for additional information) > Output written on test.xdv (1 page, 236 bytes). > Transcript written on test.log. > > which means that the pattern has not been applied.
When running essentially your code, I get a missing character message. So the issue here is simply that the box ends up reading "blabla", so the patterns involving ^^^^200D are not relevant. Naively I would expect the pattern to work correctly if your font has this character. Missing character: There is no <U+200D> in font cmr10! Best regards, Bruno