Grammalecte  Check-in [291571d101]

Overview
Comment:[build] graph builder: add some decoration
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: 291571d101738179604809690155599603e305e6471b1e36464c36df3b874684
User & Date: olr on 2018-06-13 06:01:05
Other Links: branch diff | manifest | tags
Context
2018-06-13
06:02
[misc] SublimeText theme update check-in: 655e0c4bf5 user: olr tags: misc, rg
06:01
[build] graph builder: add some decoration check-in: 291571d101 user: olr tags: build, rg
05:46
merge trunk check-in: 168628b7ae user: olr tags: rg
Changes

Modified compile_rules.py from [22bdc8ba86] to [856372255b].

490
491
492
493
494
495
496


497
498
499
500
501
502
503
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505







+
+







                lRuleLine.append([i, "@@@@"+m.group(1)])
                bGraph = True
            lGraphRule.append([i, sLine])
            bGraph = True
        elif sLine.startswith("@@@@END_GRAPH"):
            lGraphRule.append([i, sLine])
            bGraph = False
        elif re.match("@@@@ *$", sLine):
            pass
        elif bGraph:
            lGraphRule.append([i, sLine])
        # Regex rules
        elif re.match("[  \t]*$", sLine):
            # empty line
            pass
        elif sLine.startswith(("    ", "\t")):

Modified gc_lang/fr/rules.grx from [7a892f877c] to [8fec34a927].

12330
12331
12332
12333
12334
12335
12336
12337




12338




12339
12340
12341
12342
12343
12344
12345
12330
12331
12332
12333
12334
12335
12336

12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352







-
+
+
+
+

+
+
+
+








!!
!!
!!!! Modes verbaux                                                                                  
!!
!!


@@@@
@@@@
@@@@
@@@@
@@@@GRAPH: last_graph                                                                               
@@@@
@@@@
@@@@
@@@@

# conditionnel / futur

__vmode_j_aimerais_vinfi__
    [<start>|,]  [je|j’|Je|J’]  [aimerai|préférerai|préfèrerai|apprécierai|voudrai|souhaiterai|désirerai|adorerai]  @:[YX]|>(?:y|ne|que?)/¬:R
        <<- /vmode/ -3>> \1s                                                                        # Si vous exprimez un souhait, utilisez le conditionnel et non le futur.

12403
12404
12405
12406
12407
12408
12409



12410


12411
12412
12413
12414
12415
12416
12417
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419

12420
12421
12422
12423
12424
12425
12426
12427
12428







+
+
+
-
+
+







TEST: Avant que tu {{pars}}, je voudrais qu’on discute.
TEST: Nul doute qu’elle nourrira à brève échéance la haine de demain à notre égard.
TEST: Je ne doute pas qu’ils réussiront leur mission.
TEST: Je me doutais bien qu’Apple pourrait marcher
TEST: il ne fait aucun doute qu’Amazon le sait.
TEST: quoi que nous autres hommes ayons pu faire



@@@@
@@@@END_GRAPH
@@@@END_GRAPH                                                                                       
@@@@


# Bien que + subjonctif
__[i]/vmode(vmode_bien_que_subjonctif)__
    bien  ?que? ({w_2}) +({w_2})  @@w,$
    <<- morph(\1, ":(?:Os|M)", False) and morphex(\2, ":V.*:I", ":(?:[GSK]|If)|>(?:hériter|recevoir|donner|offrir)/") and isStart()
        and not ( morph(\2, ":V0a", False) and morph(word(1), ">(?:hériter|recevoir|donner|offrir)/", False) )
12472
12473
12474
12475
12476
12477
12478
12479




12480




12481
12482
12483
12484
12485
12486
12487
12483
12484
12485
12486
12487
12488
12489

12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505







-
+
+
+
+

+
+
+
+







    -2>> =suggVerbMode(@, ":I", \1)
    # Après « quand » ou « lorsque », le verbe ne s’emploie pas au subjonctif mais à l’indicatif.

TEST: quand elle {{rencontrât}} son créateur
TEST: lorsqu’il y {{eût}} du grabuge, nous montâmes tous sur le pont.



@@@@
@@@@
@@@@
@@@@
@@@@GRAPH: test                                                                                     
@@@@
@@@@
@@@@
@@@@

__code_legacy__
    legacy code
    code legacy
        <<- -1:2>> code hérité|code reliquat|\1-\2|\2-\1                                            # \1 \2. Anglicisme superflu.

TEST: c’est du {{legacy code}}.
12505
12506
12507
12508
12509
12510
12511

12512
12513

12514
12515
12516
12517
12518
12519
12520
12523
12524
12525
12526
12527
12528
12529
12530
12531

12532
12533
12534
12535
12536
12537
12538
12539







+

-
+








__test__
    je  ~co[mn]putes?  [que|qu’]  @(?::Os|:M)¬:X  @:I
        <<- morph(\4, ":Os|:M", ":X") -5>> \1|\5                                                    # SUBJONCTIF.

TEST: je conpute que Isabelle {{est}} partie.

@@@@
@@@@END_GRAPH                                                                                       

@@@@


!!
!!
!!
!!
!!