I need to smooth out the emphasis. I found some solutions
Normalizer.normalize(txt, Normalizer.Form.NFD).replaceAll( "\\p{IsM}+", "")
OR
Normalizer.normalize(txt, Normalizer.Form.NFD).replaceAll( "[^\\p{ASCII}]", "")
The first p{IsM} smooths the very accent
ążł Tĥïŝ ĩš â fůňķŷ Šťŕĭńġ ĄĆĘŁŃÓŚŹŻ
to
azł This is a funky String ACEŁNOSZZ
but this method cannot change "Ł" to "L"
second "p{ASCII}" delete "Ł" az This is a funky String ACENOSZZ but I need azl This is a funky String ACELNOSZZ
I found more patterns, for example p {M} or p {InCombiningDiacriticalMarks} but it doesn’t work. When I look for a solution, some people will comment on this situation, such as smoothing a letter is not possible.
Who can help me find a solution? but if possible, I don't want to manually replace each letter
thanks for the help
source share