Index: gc_core/py/lang_core/gc_engine.py ================================================================== --- gc_core/py/lang_core/gc_engine.py +++ gc_core/py/lang_core/gc_engine.py @@ -238,17 +238,13 @@ xErr.nErrorLength = nEnd - nStart xErr.nErrorType = PROOFREADING xErr.aRuleIdentifier = sRuleId xErr.aShortComment = sMessage # sMessage.split("|")[0] # in context menu xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog - if bShowRuleId: - xErr.aShortComment += " " + sLineId + " # " + sRuleId xErr.aSuggestions = tuple(lSugg) if sURL: - xProperty = PropertyValue() - xProperty.Name = "FullCommentURL" - xProperty.Value = sURL + xProperty = PropertyValue(Name="FullCommentURL", Value=sURL) xErr.aProperties = (xProperty,) else: xErr.aProperties = () return xErr else: @@ -866,19 +862,17 @@ xErr.nErrorStart = nStart xErr.nErrorLength = nEnd - nStart xErr.nErrorType = PROOFREADING xErr.aRuleIdentifier = sRuleId xErr.aShortComment = sMessage # sMessage.split("|")[0] # in context menu - xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog - if bShowRuleId: - xErr.aShortComment += " " + sLineId + " # " + sRuleId + xErr.aFullComment = sMessage # sMessage.split("|")[-1] # in dialog xErr.aSuggestions = tuple(lSugg) + #xPropertyLineType = PropertyValue(Name="LineType", Value=5) # DASH or WAVE + #xPropertyLineColor = PropertyValue(Name="LineColor", Value=getRGB("FFAA00")) if sURL: - xProperty = PropertyValue() - xProperty.Name = "FullCommentURL" - xProperty.Value = sURL - xErr.aProperties = (xProperty,) + xPropertyURL = PropertyValue(Name="FullCommentURL", Value=sURL) + xErr.aProperties = (xPropertyURL,) else: xErr.aProperties = () return xErr else: dErr = {} @@ -1191,10 +1185,11 @@ if nLeft is not None: dToken["lMorph"] = _oSpellChecker.getMorph(dToken["sValue"][slice(nLeft, nRight)]) else: dToken["lMorph"] = _oSpellChecker.getMorph(dToken["sValue"]) return True + #### GRAMMAR CHECKER PLUGINS ${plugins}