ismaelgv / rnr

A command-line tool to batch rename files and directories
MIT License
474 stars 15 forks source link

Support Unicode Normalization Forms #31

Open Colerar opened 1 year ago

Colerar commented 1 year ago

Unicode® Standard Annex #15 unicode-rs/unicode-normalization

NFC and NFD are particularly beneficial for macOS users. While APFS supports both NFC and NFD, many macOS APIs and applications automatically convert filenames to NFD. See: gist

NFKC and NFKD are useful for compatibility purposes. For example, it can convert Japanese squared characters like ㍿ and ㌀ to their compatible equivalents, such as 株式会社 and アパート. See: UAX #15: Examples of Compatibility Equivalence

ismaelgv commented 1 year ago

Thanks for the suggestion, I need to take a closer look to that information. Maybe, it can be added as subcommand, similar to current subcommand to-ascii.