Grammalecte  Diff

Differences From Artifact [5fecb35f03]:

To Artifact [856a2c0753]:


660
661
662
663
664
665
666
667
668


669
670
671
672
673
674
675
660
661
662
663
664
665
666


667
668
669
670
671
672
673
674
675







-
-
+
+







        xErr.nErrorType = PROOFREADING
        xErr.aRuleIdentifier = sRuleId
        xErr.aShortComment = sMessage   # sMessage.split("|")[0]     # in context menu
        xErr.aFullComment = sMessage    # sMessage.split("|")[-1]    # in dialog
        xErr.aSuggestions = tuple(lSugg)
        # Properties
        lProperties = [
            PropertyValue(Name="LineType", Value=18) # WAVE: 10, DASH: 5, BOLD: 12, BOLDWAVE: 18 https://api.libreoffice.org/docs/idl/ref/FontUnderline_8idl.html
            PropertyValue(Name="LineColor", Value=_dOptionsColors.get(sOption, 33023)),
            PropertyValue(Name="LineType", Value=18), # WAVE: 10, DASH: 5, BOLD: 12, BOLDWAVE: 18 https://api.libreoffice.org/docs/idl/ref/FontUnderline_8idl.html
            PropertyValue(Name="LineColor", Value=_dOptionsColors.get(sOption, 33023))
        ]
        if sURL:
            lProperties.append(PropertyValue(Name="FullCommentURL", Value=sURL))
        xErr.aProperties = lProperties
        return xErr

    def _createErrorAsDict (self, nStart, nEnd, sLineId, sRuleId, sOption, sMessage, lSugg, sURL, bContext):