The clipboard constitutes text characters, including but not limited to text from one or two languages,
say Latin(0x0020 ~ 0x007F, 0x00A0 ~ 0x00FF) and/or Greek(0x0370 ~ 0x03FF) characters.
FYI, I have the unicode version of AHK installed.
In essence, this what I would like to do:
1. detect if clipboard includes both greek AND latin characters.
2. detect if clipboard includes greek but NOT latin characters (or vice versa).
Code: Select all
^+!F12::
{
if (clipboard) ~= "[latin patterns AND greek pattern]"
{
tooltip % both latin AND greek detected
}
else if (clipboard) ~= "[greek pattern but NOT latin patterns]"
{
tooltip % greek but NOT latin detected
}
else if (clipboard) ~= "[latin patterns but NOT greek pattern]"
{
tooltip % latin but NOT greek detected
}
else
{
tooltip % none of the two were detected
}
}
The object is to design each regex pattern that fits the bill.
Help would be appreciated.