Jump to content

Enable Chinese (UTF-8) Function Names


Recommended Posts

Since UTF 8 characters may not be used for function names, is there a SciTE extension that would, upon file open and save, automatically convert a set of function names into their UTF 8 counterpart and back.

In other words, SciTE should display a set of alphanumeric UDF names in Simplified Chinese without changing the source. (There would be some type of conversion table provided)

Thanks

Edited by stuff123
Link to comment
Share on other sites

About 2) which encoding would you use for function names?

Post an example of what you'd like to have.

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)

Link to comment
Share on other sites

The encoding could be "GB2312", but SciTE may know it by other aliases.

I imagine the following scenario:

  • The conversion to Chinese function names would occur as one first opens their ".au3" file
  • Subsequently, each time that a "save" operation occurs, these names would be converted back to its alphanumeric forms and then saved.

Example:

I would like the SciTE editor to display the following:

Func 函数1($aArg = 1)

        ...

EndFunc

函数1()

when in reality, the source is saved as:

Func Function1($aArg = 1)

    ...

EndFunc

Function1()

 

Edited by stuff123
Link to comment
Share on other sites

One possible way to do that:

write your functions like this: Func MyFunc(arg1, arg2, ...) ; 函数1
write LUA scripts to perform both conversions to/from Func 函数1(arg1, arg2, ...) ; MyFunc
ask Jos how to force conversion at open/close of .au3 files (or link each script to a hotkey).

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)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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