3 ms·
Yes, I should clarify that the process is to normalize to letter+combining accent and then strip out the accents, e.g., in Java: Normalizer.normalize(text, N
by dhosek 5y ago
Yes, I should clarify that the process is to normalize to letter+combining accent and then strip out the accents, e.g., in Java:
Normalizer.normalize(text, Normalizer.Form.NFD).replaceAll("\\p{M}", "");
(I hope I got this right—I adapted it from some code which actually strips out some other bits of text to turn, e.g., F. Janaček into FJanacek.)