VTTAssets / vtta-tokenizer

Tiny yet capable in-game token editor, requires trusted user level for uploads
MIT License
7 stars 8 forks source link

Do not works with Russian actors names #18

Open Cododoc opened 4 years ago

Cododoc commented 4 years ago

If I name actor "Test", then it create correct token file - "Test.Token.png" If I name actor "Тест" (Test on Russian), then it create file looks like - ".Toke.png". After that Tokenizer cant work with this actor correctly.

bnp800 commented 4 years ago

Same here for Chinese

VTTAssets commented 4 years ago

I do replace any characters that are not in a-zA-Z with a blank space when creating the filename. I will adapt the regular expression to accomodate this. @bnp800 can you give me some test strings in chinese, too?

bnp800 commented 4 years ago

I do replace any characters that are not in a-zA-Z with a blank space when creating the filename. I will adapt the regular expression to accomodate this. @bnp800 can you give me some test strings in chinese, too?

源 天下 打字机 上善若水 床前明月光 人之初性本善 飞流直下三千尺 窈窕淑女君子好逑

For test

VTTAssets commented 4 years ago

Initial tests have shown that Foundry rejects filenames with non-ascii characters for upload. I saw that when uploading a file by using the GUI it is indeed possible, but it encodes the filename in a way I need to figure out first. It is more complicated than anticipated