Differences From Artifact [2de9c1ae19]:
- File gc_core/py/lang_core/gc_engine.py — part of check-in [095697c359] at 2018-11-23 10:45:53 on branch trunk — [core][py] capitalization for errors (user: olr, size: 50947) [annotate] [blame] [check-ins using]
To Artifact [20746fba5d]:
- File gc_core/py/lang_core/gc_engine.py — part of check-in [0afadf325d] at 2018-11-25 20:04:11 on branch trunk — [core] value function: CAPITAL words also tested as lowercase words (user: olr, size: 51033) [annotate] [blame] [check-ins using]
| ︙ | |||
936 937 938 939 940 941 942 943 944 945 946 947 948 949 | 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 | + + + |
if sValue.lower() in sValues:
return True
elif dToken["sValue"].isupper():
#if sValue.lower() in sValues:
# return True
sValue = "|"+sValue[1:].capitalize()
if sValue in sValues:
return True
sValue = sValue.lower()
if sValue in sValues:
return True
return False
def g_morph (dToken, sPattern, sNegPattern="", nLeft=None, nRight=None, bMemorizeMorph=True):
"analyse a token, return True if <sNegPattern> not in morphologies and <sPattern> in morphologies"
if "lMorph" in dToken:
|
| ︙ |