Add option to replace forbidden characters with unicode equivalent
hadess opened this issue · 4 comments
I use whipper to rip CDs on a Linux system, which I then consume from my NAS over SMB, so directory and file names created shouldn't have any Unix or FAT32 forbidden characters.
It would be great if there was an option to replace forbidden characters with look-alike Unicode characters.
For example:
/ with ∕ or ⁄ (0x2f slash with fraction slash or division slash)
: with ∶ (0x58 with ratio)
etc.
I believe those 2 would cover most of my own rips.
A bit of a stretch:
? with ⹔
11. Offspring - What Happened to You?.flac
11. Offspring - What Happened to You⹔.flac
...
with …
which FAT32/SMB doesn't like ending file or directory names without an extension
I suppose we could provide additional arguments to the getPath
function in whipper/common/program.py
, where it performs certain substitutions (passed by argument) at the end, that might be enough.