Grammalecte  Check-in [df2bb268e4]

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

Overview
Comment:[lo] text formatter: fix strange bugs with replacements (again)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256:df2bb268e445bd09ede0dfad80371646dd6d03aea9619674a40fa97fc5521e25
User & Date: olr 2019-07-24 07:50:57
Context
2019-07-24
11:01
[fr] tests et ajustements check-in: 72c5a3d7e1 user: olr tags: fr, trunk
07:50
[lo] text formatter: fix strange bugs with replacements (again) check-in: df2bb268e4 user: olr tags: lo, trunk
06:59
[lo] text formatter: fix strange bugs with replacements (again) check-in: 05a7a5fb8e user: olr tags: lo, trunk
Changes

Changes to gc_lang/fr/oxt/TextFormatter/tf_tabrep.py.

   385    385                       ("(?<!,) etc[.]",                           ", etc.",       True,   True)
   386    386       ],
   387    387       "misc3": [
   388    388                       ("[ -]t[’'](?=il\\b|elle|on\\b)",           "-t-",          True,   True),
   389    389                       (" t-(?=il|elle|on)",                       "-t-",          True,   True),
   390    390                       ("[ -]t[’'-](?=ils|elles)",                 "-",            True,   True),
   391    391                       ("(?<=[td])-t-(?=il|elle|on)",              "-",            True,   True),
   392         -                    (" c(elles?|elui|eux) (ci|là)\\b",          " c$1-$2",      True,   True),
   393         -                    ("C(elles?|elui|eux) (ci|là)\\b",           "C$1-$2",       True,   True),
          392  +                    (" ce(lles?|lui|ux) (ci|là)\\b",            " ce$1-$2",     True,   True),
          393  +                    ("Ce(lles?|lui|ux) (ci|là)\\b",             "Ce$1-$2",      True,   True),
   394    394                       (" dix (sept|huit|neuf)",                   " dix-$1",      True,   True),
   395    395                       ("Dix (sept|huit|neuf)",                    "Dix-$1",       True,   True),
   396    396                       ("quatre vingt",                            "quatre-vingt", False,  True),
   397    397                       ("Quatre vingt",                            "Quatre-vingt", False,  True),
   398    398                       ("(soixante|quatre-vingt) (deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|dix-sept|dix-huit|dix-neuf)", "$1-$2", True, False),
   399    399                       ("(vingt|trente|quarante|cinquante) (deux|trois|quatre|cinq|six|sept|huit|neuf)", "$1-$2", True, False),
   400         -                    ("(?<!-)\\b(ci) (joint|desso?us|contre|devant|avant|après|incluse|g[îi]t|gisent)", "$1-$2", True, False),
   401         -                    ("\\bvis à vis",                            "vis-à-vis",    False,  True),
   402         -                    ("\\bVis à vis",                            "Vis-à-vis",    False,  True),
          400  +                    (" ci (joint|desso?us|contre|devant|avant|après|incluse|g[îi]t|gisent)", " ci-$1", True, True),
          401  +                    ("Ci (joint|desso?us|contre|devant|avant|après|incluse|g[îi]t|gisent)", "Ci-$1", True, True),
          402  +                    (" vis à vis\\b",                           "vis-à-vis",    False,  True),
          403  +                    ("Vis à vis\\b",                            "Vis-à-vis",    False,  True),
   403    404                       ("week end",                                "week-end",     False,  True),
   404    405                       ("Week end",                                "Week-end",     False,  True),
   405         -                    ("(plus|moins) value",                      "$1-value",     True,   False)
          406  +                    ("(plus|moins) value",                      "$1-value",     True,   False),
   406    407       ],
   407    408       "misc5a": [
   408    409                       ("(qu|lorsqu|puisqu|quoiqu|presqu|jusqu|aujourd|entr|quelqu) ", "$1’", True, True),
   409    410       ],
   410    411       "misc5b": [
   411    412                       ("\\bj (?=[aàeéêiîoôuyhAÀEÉÊIÎOÔUYH])",     "j’",           True,   True),
   412    413                       ("\\bn (?=[aàeéêiîoôuyhAÀEÉÊIÎOÔUYH])",     "n’",           True,   True),

Changes to tests/fr/formateur_de_texte.odt.

cannot compute difference between binary files