|
Post by kr2004 on Sept 9, 2018 15:12:02 GMT
Hi,
I'm working on a script that allows me to name check my cards for duplicate card names that I have used in previous files. The idea right now is to create a text document similar to "magic-words.en_us" and have it be the list of all cards made from previous sets up to that point.
Then build a script that "spell checks" the name box. If the name is underlined then it is a new card name, if it is not underlined then it is a repeat. I got the program to spell check the name field, along with reading off of the custom text document; however, I can't get it to only proof for the total name. I've dug online for answers and it is a similar problem people face with double words and spell checker. For example in some languages they have words with a space in the middle and the space is mandatory to spell the word correctly.
Does MSE have a method to program the spell checker to look at double words? I tried using " " in the custom text file, also tried { }, [ ], | |, etc. I also thought about capturing the value of the name field, run the value through a replace function by replacing the spaces to _ and then the custom text file would just have _ instead of the spaces. After the replacement, it would spell check the new word while underlineing the name field if necessary.
I messed with it for hours and I can't get that or any other idea to work. Anyone else have a solution?
|
|