Jump to content

Recommended Posts

Posted (edited)

Thanks to @GMK we have universall, mulitlingual, free spell checker:

I was wondering if here on the forum is any Au3Script Parser to get all Strings content from au3 file.
In combination with @GMK function this should be very handy to check each script in case any spelling mistakes.

Regards,

mLipok

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

Just my 2 cents, but since an AutoIt script is going to be using function names and variable names that no standard dictionary is going to contain, even if you could parse the content of your script you would end up having to add so many items to the custom dictionary as to almost render it useless to catch spelling mistakes.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

I guess that @mLipok thought of spell-checking literal strings only, not the full script text.

That would involve a parser able to incrementally isolate strings and offer them to correction, eventually. Literal string may occur at any depth in an expression, possibly inside nested function invokations (expressions), so the job is significantly harder than just listing function names (or writing correct language in the first place IMVHO).

 

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted
  On 12/11/2016 at 3:13 PM, jchd said:

I guess that @mLipok thought of spell-checking literal strings only, not the full script text.

Expand  

Exactly.

here are examples:

Global $g_sTest1 = _
        "Homes" & 'Houses' & _
        "Apartament" & _
        'I''m' & _
        "Tomorrow I'll learn."

_Example("Home")
Func _Example($sTest2 = 'House')
    Local $sTest3 = 'Apartaments'
EndFunc

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

My CodeScanner (link in sig) extracts all strings in a script (amongst other things). You'd still have to implement the spell cheking part yourself though (e.g., on output list StringsUsed.txt).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...