TestInvalid user tool

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

TestInvalid user tool

Postby rhapdog » Tue Jul 31, 2012 3:19 pm

Download TestInvalid

This is the final installment of the command line tools for Syntax Highlighting wordfiles.

1st was SortLanguage, then TestDuplicate, and now TestInvalid. Each of these are intended to replace those items found in Mofi's Syntax Highlighting Tools Macros.

TestInvalid has been thoroughly tested. It is production ready, so use it, but use it wisely.

Help for how to use it can be obtained by typing the command at the prompt. The usage is the same as for TestDuplicate, and you also have the same -fix switch that will remove all invalid words from the specified wordfile.

Don't use the -fix option unless you absolutely know what you're doing, and even then, the -fix option can be quite dangerous, as in most cases an invalid word should be edited and not simply blindly removed.
User avatar
rhapdog
Master
Master
 
Posts: 271
Joined: Tue Apr 01, 2008 10:02 am
Location: Mississippi, USA

Re: TestInvalid user tool

Postby rhapdog » Fri Aug 03, 2012 10:21 am

This tool currently does not handle all the rules correctly.

#1, it does not take into consideration Marker Characters, causing a marker character pair appearing as a word to be flagged as invalid if those characters are also delimiters.
#2, it does not take into consideration the final = in HTML_LANG and XML_LANG, causing words that end with = to be flagged as invalid.

I will be working on correcting this issue as soon as possible, but have other work to do before I can get to it. It should be a minor fix, as I just need to add some minor additional tests before returning true or false on invalid.
User avatar
rhapdog
Master
Master
 
Posts: 271
Joined: Tue Apr 01, 2008 10:02 am
Location: Mississippi, USA

Re: TestInvalid user tool

Postby rhapdog » Fri Aug 03, 2012 11:33 am

I have now uploaded a corrected version of this program, version 1.10. It now follows, to the best that I can tell, the rules that it should.
User avatar
rhapdog
Master
Master
 
Posts: 271
Joined: Tue Apr 01, 2008 10:02 am
Location: Mississippi, USA

Re: TestInvalid user tool

Postby rhapdog » Mon Aug 06, 2012 4:54 pm

Version 1.12 has been released, and replaces the above download link.

This new version, by request of a user, now gives the "reason" a word is invalid by stating what delimiters were used in the word in an illegal fashion.
User avatar
rhapdog
Master
Master
 
Posts: 271
Joined: Tue Apr 01, 2008 10:02 am
Location: Mississippi, USA


Return to Custom User Tools/Tool Configuration