You can define a function in the ConfigureFields to check each character individually. The unicodedata module has a function that retrieves the name of the character and if the name of the character contains the word cyrillic, then it is cyrillic.
import unicodedata
out1.x = unicode
def has_cyrillic(text):
for char in unicode(text):
if 'CYRILLIC' in unicodedata.name(char):
return True
return False
In the ProcessRecords property you can use the function in an if statement:
text = in1.possible_cyrillic_text # Possible Cyrillic text
if has_cyrillic(text):
out1.x = ("Contains Cyrillic characters")
else:
out1.x = ("Does not contain Cyrillic characters")
------------------------------
Ernest Jones
Precisely Software Inc.
PEARL RIVER NY
------------------------------