Overview
| Comment: | merge trunk |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | multid |
| Files: | files | file ages | folders |
| SHA3-256: |
c43c446a59df13f923b4da519e1f1cc6 |
| User & Date: | olr on 2018-03-02 13:00:15 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-03-02
| ||
| 14:59 | [fx] main panel: conjugueur button + new logo check-in: e1b18c2783 user: olr tags: fx, multid | |
| 13:00 | merge trunk check-in: c43c446a59 user: olr tags: multid | |
| 12:37 | [fr] faux positif: quelqu’un lire check-in: 328b580ec1 user: olr tags: trunk, fr | |
|
2018-02-28
| ||
| 18:43 | [lo] use user dictionary check-in: 3879004037 user: olr tags: lo, multid | |
Changes
Modified gc_lang/fr/rules.grx from [d209c32a20] to [dd5439265c].
| ︙ | |||
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 | 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 | + |
__[i](d_tu_verbe)__
tu +(?:l(?:es? +|la +|’)|[nv]ous +|)({w_1}) @@$
<<- morph(word(-1), ":Cs", False, True) and not morph(\1, ":(?:Oo|X)", False) =>> select(\1, ":[123][sp]")
__[s](d_nom_propre_verbe)__
([A-ZÉÈ]{w_1}) +({w_1}) @@0,$
<<- morph(\1, ":M") and \2.islower() and morphex(\2, ":[123][sg]", ":Q") and morph(\2, ":N", False) and morph(word(-1), ":Cs", False, True)
=>> select(\2, ":[123][sp]")
<<- morph(\1, ":M", False) and morphex(\2, ":[123]s|>(?:[nmts]e|nous|vous) ", ":A") and isStart() =>> =select(\1, ":M")
__[i](d_que_combien_pourquoi_en_y_verbe)__
(?:que?|combien|pourquoi) +(?:en +|y +|)({w_3}) @@$
<<- =>> exclude(\1, ":E")
# groupe nominal
__[i](d_aucun_non_verbe)__
aucun +({w_4}) @@$
|
| ︙ | |||
4913 4914 4915 4916 4917 4918 4919 | 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 | - + | __[i](p_demain)__ (?:après-|avant |)demain(?: matin| soir| après-midi|) <<- ~>> * __[i](p_don_Juan)__ (don) Juan @@0 <<- ~1>> * __[i](p_du_même_ordre_coup)__ du même (?:ordre|coup) <<- ~>> * __[i](p_en_nombre_années)__ en \d\d+(?: ans| années|) <<- ~>> * __[i](p_en_cours)__ en cours(?! d[e’]) <<- ~>> * __[i](p_en_pronom)__ en (?:[mt]oi|eux|elles?) <<- ~>> * __[i](p_en_qqch1)__ en (?:aparté|apparence|arrière|avance|avant|cachette|ceci|cela|clair|commun|conséquence|continu|contrepartie|définitive|détail|direct|douce|effet|émoi|filigrane|général|goguette|hâte|majorité|outre|pâmoison|parallèle|partie|particulier|permanence|personne|pratique|prime|privé|principe|priorité|public|réalité|retour|revanche|rien|rogne|route|secret|silence|somme|suspens|théorie|trompe-l’œil|vain|vérité|ville|vitesse) <<- ~>> * |
| ︙ | |||
5887 5888 5889 5890 5891 5892 5893 | 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 | - + |
__[i]/gn(gn_ledit_accord)__
(ledit) +({w_2}) @@0,$
<<- morphex(\2, ":[NAQ].*:f", ":[GWme]") -1>> ladite # Accord de genre erroné : « \2 » est féminin.
<<- __also__ and hasMasForm(\2) -2>> =suggMasSing(@, True) # Accord de genre erroné : « \1 » est un déterminant masculin.
<<- morphex(\2, ":[NAQ].*:p", ":[siGW]") -2>> =suggMasSing(@) # Accord de nombre erroné : « \2 » devrait être au singulier.
__[i]/gn(gn_un_accord)__
(un) +({w_2}) @@0,$
|
| ︙ | |||
5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 | 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 | + |
TEST: {{un}} des {{chattes}}
TEST: {{une}} des {{chats}}
TEST: {{mon}} {{chienne}}
TEST: cet {{oliviers}}
TEST: ce {{claviers}}
TEST: cette bouffe, c’est du {{chiens}}
TEST: le ton monte.
TEST: Ces enfants n’ont jamais vu quelqu’un lire.
__<i]/gn(gn_la_accord1)__
, +(la) +({w_2}) @@w,$
<<- morphex(\2, ":[NAQ].*:m", ":(?:e|f|P|G|W|[1-3][sp]|Y)") -1>> le # Accord de genre erroné : « \2 » est masculin.
<<- __also__ and hasFemForm(\2) -2>> =suggFemSing(@, True) # Accord de genre erroné : « \1 » est un déterminant féminin.
<<- __else__ and morph(\2, ":[NAQ].*:p") -2>> =suggFemSing(@) # Accord de nombre erroné : « \2 » devrait être au singulier.
|
| ︙ | |||
10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 | 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 | + |
TEST: Antoine n’est pas {{mariés}}.
TEST: Antoine est peut-être {{fatiguée}}.
TEST: Éric n’est pas très {{fatiguée}}.
TEST: Martine est {{marié}}.
TEST: Martine n’est pas {{marié}}.
TEST: Martine est très {{intelligent}}.
TEST: Martine n’est pas très {{intelligent}}.
TEST: Pierre est {{dominée}} par son adversaire.
!!!! Accords avec l’adjectif précédant le pronom
__[i]/ppas(ppas_adj_accord_je_tu)__
^ *({w_2}s),? (je?|tu) @@*,$
|
| ︙ |
Modified make.py from [7d5ef1d4bd] to [b9941a6809].
| ︙ | |||
451 452 453 454 455 456 457 458 459 460 | 451 452 453 454 455 456 457 458 459 460 461 462 463 | + + + |
# Thunderbird
if xArgs.thunderbird:
os.system("thunderbird -jsconsole -P debug")
else:
print("Folder not found: gc_lang/"+sLang)
oNow = datetime.datetime.now()
print("============== MAKE GRAMMALECTE [finished] at {0.hour:>2} h {0.minute:>2} min {0.second:>2} s ==============".format(oNow))
if __name__ == '__main__':
main()
|