stringex icon indicating copy to clipboard operation
stringex copied to clipboard

Feature: unicode characters to ascii fuzzy equivalents

Open gabriel opened this issue 2 years ago • 0 comments

Thanks for this library!

"𝔭𝔬𝔱𝔦𝔬𝔫 𝔰𝔢𝔩𝔩𝔢𝔯".to_ascii
=> "?????? ??????"

Would be a nice enhancement for this to output:

"𝔭𝔬𝔱𝔦𝔬𝔫 𝔰𝔢𝔩𝔩𝔢𝔯".to_ascii
=> "potion seller"

There is a unicode-tools python library that can handle this, e.g.: https://unicode.scarfboy.com/?s=%F0%9D%94%AD%F0%9D%94%AC%F0%9D%94%B1%F0%9D%94%A6%F0%9D%94%AC%F0%9D%94%AB+%F0%9D%94%B0%F0%9D%94%A2%F0%9D%94%A9%F0%9D%94%A9%F0%9D%94%A2%F0%9D%94%AF

gabriel avatar Jan 06 '23 23:01 gabriel