SmartCMD icon indicating copy to clipboard operation
SmartCMD copied to clipboard

support for non-ASCII characters in command names

Open YashasSamaga opened this issue 8 years ago • 3 comments

is there any way to make special letter support for the commands or the alternate? (i mean é,á,ű etc) the script dont have to distinguish the a and 'á' just let it work Source: http://forum.sa-mp.com/showpost.php?p=3937769&postcount=82

YashasSamaga avatar Dec 05 '17 06:12 YashasSamaga

the non-ascii character appellation will be fine but i dont understand this question: "What exactly should happen when a user uses those keys?" and there's the accented letters: ö, ü, ó, ő, ú, é, á, ű, í

but there's a lot if you open the windows character table

r4sheed avatar Dec 05 '17 10:12 r4sheed

You want ö, ü, ó, ő, ú, é, á, ű, í to be replaced with o, u, o, o, u, e, a, u, l automatically?

YashasSamaga avatar Dec 05 '17 11:12 YashasSamaga

Something for you to consider for wider script compatibility, y_commands uses punycode, meaning you can define a command as:

YCMD:bcher@kva(playerid, params[], help)
{
}

Then instead type /bücher and it will decode it. Punycode in web addresses uses -- to separate the latin characters and other part. This isn't a valid PAWN symbol, so this uses @ instead.

Y-Less avatar Dec 05 '17 11:12 Y-Less