Grammalecte  Check-in [1379458d7a]

Overview
Comment:[core][bug] missing parameter
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 1379458d7a7440ff3a8823aaf33352c65689415325b5b1501e16f78d0ac377b3
User & Date: olr on 2018-06-12 17:52:36
Other Links: branch diff | manifest | tags
Context
2018-06-12
18:12
[build][bug] graph builder: many bugs fixed check-in: af27d87290 user: olr tags: build, rg
17:52
[core][bug] missing parameter check-in: 1379458d7a user: olr tags: core, rg
16:38
[fr] conversion: regex -> graph rules check-in: 8230a349b4 user: olr tags: fr, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [112316530e] to [acd000b8ca].

717
718
719
720
721
722
723
724

725
726
727
728
729
730
731
717
718
719
720
721
722
723

724
725
726
727
728
729
730
731







-
+







        #xErr = uno.createUnoStruct( "com.sun.star.linguistic2.SingleProofreadingError" )
        xErr.nErrorStart = nStart
        xErr.nErrorLength = nEnd - nStart
        xErr.nErrorType = PROOFREADING
        xErr.aRuleIdentifier = sRuleId
        # suggestions
        if sSugg[0:1] == "=":
            sSugg = globals()[sSugg[1:]](self.lToken)
            sSugg = globals()[sSugg[1:]](self.lToken, nTokenOffset)
            if sSugg:
                if bUppercase and self.lToken[iFirstToken]["sValue"][0:1].isupper():
                    xErr.aSuggestions = tuple(map(str.capitalize, sSugg.split("|")))
                else:
                    xErr.aSuggestions = tuple(sSugg.split("|"))
            else:
                xErr.aSuggestions = ()
758
759
760
761
762
763
764
765

766
767
768
769
770
771
772
758
759
760
761
762
763
764

765
766
767
768
769
770
771
772







-
+







        dErr["nStart"] = nStart
        dErr["nEnd"] = nEnd
        dErr["sLineId"] = sLineId
        dErr["sRuleId"] = sRuleId
        dErr["sType"] = sOption  if sOption  else "notype"
        # suggestions
        if sSugg[0:1] == "=":
            sSugg = globals()[sSugg[1:]](self.lToken)
            sSugg = globals()[sSugg[1:]](self.lToken, nTokenOffset)
            if sSugg:
                if bUppercase and self.lToken[iFirstToken]["sValue"][0:1].isupper():
                    dErr["aSuggestions"] = list(map(str.capitalize, sSugg.split("|")))
                else:
                    dErr["aSuggestions"] = sSugg.split("|")
            else:
                dErr["aSuggestions"] = []