It's probably a very rare situation but maybe should be hardcoded for MacOS?
…And Justice for All (1979)
In system.properties I had set
Code: Select all
unixfs=trueCode: Select all
unixfs=trueCode: Select all
n.replace('...', '…')
LinkI found a very similar character to a colon, "꞉" it is a unicode character called a Modifier Letter Colon. This has no space like the fullwidth colon and is pretty much exactly the same as a regular colon but the symbol works. You can either copy and paste it from above or you can use the code point, U+A789
Code: Select all
{n.colon(' - ')}Code: Select all
{':'.replace(':','\uA789')}Code: Select all
{':abc'.replace(':','\u02D0')}Code: Select all
{'abc-abc'.replace('-','\u2012')}Any sequence of characters is Unix-compatible. There is no such thing as a Unix-incompatible file path.jprokos wrote: 16 Oct 2020, 17:30 I don't really care about Windows-compatible file names I need Unix-compatible filenames. I am a bit insulted that Windows gets preferential treatment![]()
That just proofs that it's not an incompatible character in the first place. The . dot character is entirely legal as far as the operating system and file system are concerned.
We want consistent behaviour on all operating systems. Additionally, running FileBot on a Linux machine (e.g. NAS) and then accessing the files from a Windows machine via SMB is an extremely common use case.jprokos wrote: 16 Oct 2020, 17:30 Instead of re-hashing this on a case by case basis why not hardcode the GUI depending on the OS.
Replacing . : / ? etc with similar looking Unicode code points is generally a bad idea. Perhaps it'll work well for you and your specific requirements though.jprokos wrote: 16 Oct 2020, 17:30 There is a character that will substitute for a colon on Unix or Windows. When FileBot validates a file why not just replace the colon that is found with this character - hardcoded?
Code: Select all
n.replace(':','∶')