demonnic / muddler

A build tool for Mudlet package developers
MIT License
40 stars 12 forks source link

How to handle special characters in item names #9

Open Kebap opened 3 years ago

Kebap commented 3 years ago

I have items names containing : or / characters for example, how to muddle?

Kebap commented 3 years ago

Testing through, putting : in file name does not seem to influence muddle after all.* (on Linux, that is. Whereas Windows forbids such characters in file names instead.)

Also as well / is a forbidden sign by OS and probably can't be used in item names then.

demonnic commented 3 years ago

Yeah, I should make a note of potential issues with special characters depending on OS/etc. I'm not doing any special handling there, apart from changing spaces to _ when converting name to .lua filename.

Kebap commented 3 years ago

It would be nice to find some workaround to use all characters in Mudlet item names, even those forbidden for OS file names!

For the record, Windows forbids all of these: \ / : * ? " < > |

changing spaces to _ when converting name to .lua filename.

Interestingly spaces work fine for folder names which translate to folders in Mudlet with space characters alright

edit: Hey, wait, so if I do want to use an underscore in an object name, it currently can't be done either, right? 🤔