Overview
| Comment: | [core] morph(): remove useless parameter |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | core | mtok |
| Files: | files | file ages | folders |
| SHA3-256: |
97c50dbb15d530ebd993ee267590d550 |
| User & Date: | olr on 2021-03-12 16:10:37 |
| Other Links: | branch diff | manifest | tags |
Context
|
2021-03-12
| ||
| 16:49 | [build] fix build [fr] remove useless tests check-in: 00bb2f9999 user: olr tags: fr, build, mtok | |
| 16:10 | [core] morph(): remove useless parameter check-in: 97c50dbb15 user: olr tags: core, mtok | |
| 16:01 | [core] morph0: remove useless parameter check-in: 5e7ea4059b user: olr tags: core, mtok | |
Changes
Modified gc_core/js/lang_core/gc_functions.js from [e16b0a8f41] to [f3e99affe4].
| ︙ | |||
198 199 200 201 202 203 204 | 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | - + - - - |
if (sValues.includes(sValue)) {
return true;
}
}
return false;
}
|
| ︙ |
Modified gc_core/py/lang_core/gc_functions.py from [e166fca95c] to [2a974cece8].
| ︙ | |||
184 185 186 187 188 189 190 | 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | - + - - |
return True
sValue = sValue.lower()
if sValue in sValues:
return True
return False
|
| ︙ |
Modified gc_lang/fr/modules-js/gce_analyseur.js from [7da47c7f30] to [233e133202].
| ︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - + |
if (oToken["sValue"].includes("-t-")) {
nEnd = nEnd - 2;
}
else if (oToken["sValue"].search(/-l(?:es?|a)-(?:[mt]oi|nous|leur)$|(?:[nv]ous|lui|leur)-en$/) != -1) {
nEnd = oToken["sValue"].slice(0,nEnd).lastIndexOf("-");
}
}
|
| ︙ |
Modified gc_lang/fr/modules/gce_analyseur.py from [af51223cf8] to [edfe6ed977].
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - + |
#### GRAMMAR CHECKING ENGINE PLUGIN: Parsing functions for French language
from . import cregex as cr
def g_morphVC (dToken, sPattern, sNegPattern=""):
"lance la fonction g_morph() sur la première partie d’un verbe composé (ex: vient-il)"
nEnd = dToken["sValue"].rfind("-")
if dToken["sValue"].count("-") > 1:
if "-t-" in dToken["sValue"]:
nEnd = nEnd - 2
elif re.search("-l(?:es?|a)-(?:[mt]oi|nous|leur)$|(?:[nv]ous|lui|leur)-en$", dToken["sValue"]):
nEnd = dToken["sValue"][0:nEnd].rfind("-")
|
| ︙ |