i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Add support to not replace non-ASCII chars not in map

Open sobrinho opened this issue 3 months ago • 1 comments

sobrinho avatar Sep 23 '25 13:09 sobrinho

I'm not sure the best approach here but the idea is that I want to keep all non-ASCII chars as is unless if a replacement is there.

Examples:

I18n.transliterate("João acertou ½ das questões sobre Ω")
#=> "Joao acertou ½ das questoes sobre Ω"

It is possible to add replacements that would replace to itself but then I need to know upfront all the non-ASCII chars I need to keep and that list is quite big.

The implementation can change but the idea is that we would replace only the known non-ASCII chars and keep the others as is.

sobrinho avatar Sep 23 '25 13:09 sobrinho