Grammalecte  Check-in [e53ec97b11]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[core] oups: fix gc engine
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | core
Files: files | file ages | folders
SHA3-256:e53ec97b11828c46473d2de6adc988b6b4fc00f2ab5d350371ff28cf4fd4763f
User & Date: olr 2019-06-05 14:51:52
Context
2019-06-06
10:04
[fr] mise à jour des couleurs pour LibreOffice check-in: da340b5ea5 user: olr tags: fr, trunk
2019-06-05
14:51
[core] oups: fix gc engine check-in: e53ec97b11 user: olr tags: core, trunk
14:44
version 1.2 check-in: e58cc33d18 user: olr tags: trunk
Changes

Changes to gc_core/py/lang_core/gc_engine.py.

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)),
        ]
        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):







|
|







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))
        ]
        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):