Overview
| Comment: | [build] fix build [fr] remove useless tests |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | fr | build | mtok |
| Files: | files | file ages | folders |
| SHA3-256: |
00bb2f9999d012c3c8fdec7cba2a4265 |
| User & Date: | olr on 2021-03-12 16:49:34 |
| Other Links: | branch diff | manifest | tags |
Context
|
2021-03-13
| ||
| 08:07 | [core][fr] fix getLemmaOfMorph() check-in: 392ae92308 user: olr tags: fr, core, mtok | |
|
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 | |
Changes
Modified compile_rules_graph.py from [06ce437ce4] to [523cbe02bb].
| ︙ | ︙ | |||
34 35 36 37 38 39 40 |
def rewriteCode (sCode):
"convert simple code syntax to a string of Python code"
if sCode[0:1] == "=":
sCode = sCode[1:]
sCode = sCode.replace("__also__", "bCondMemo")
sCode = sCode.replace("__else__", "not bCondMemo")
sCode = sCode.replace("sContext", "_sAppContext")
| | | | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
def rewriteCode (sCode):
"convert simple code syntax to a string of Python code"
if sCode[0:1] == "=":
sCode = sCode[1:]
sCode = sCode.replace("__also__", "bCondMemo")
sCode = sCode.replace("__else__", "not bCondMemo")
sCode = sCode.replace("sContext", "_sAppContext")
sCode = re.sub(r"\b(morph[0x]?|morphVC|value|tag|meta|info)[(]\\(\d+)", 'g_\\1(lToken[nTokenOffset+\\2]', sCode)
sCode = re.sub(r"\b(morph[0x]?|morphVC|value|tag|meta|info)[(]\\-(\d+)", 'g_\\1(lToken[nLastToken-\\2+1]', sCode)
sCode = re.sub(r"\b(select|define|definefrom|rewrite|addmorph|setmeta)[(][\\](\d+)", 'g_\\1(lToken[nTokenOffset+\\2]', sCode)
sCode = re.sub(r"\b(select|define|definefrom|rewrite|addmorph|setmeta)[(][\\]-(\d+)", 'g_\\1(lToken[nLastToken-\\2+1]', sCode)
sCode = re.sub(r"\b(agreement|suggAgree)[(][\\](\d+), *[\\](\d+)", 'g_\\1(lToken[nTokenOffset+\\2], lToken[nTokenOffset+\\3]', sCode)
sCode = re.sub(r"\b(agreement|suggAgree)[(][\\](\d+), *[\\]-(\d+)", 'g_\\1(lToken[nTokenOffset+\\2], lToken[nLastToken-\\3+1]', sCode)
sCode = re.sub(r"\b(agreement|suggAgree)[(][\\]-(\d+), *[\\](\d+)", 'g_\\1(lToken[nLastToken-\\2+1], lToken[nTokenOffset+\\3]', sCode)
sCode = re.sub(r"\b(agreement|suggAgree)[(][\\]-(\d+), *[\\]-(\d+)", 'g_\\1(lToken[nLastToken-\\2+1], lToken[nLastToken-\\3+1]', sCode)
sCode = re.sub(r"\b(tagbefore|tagafter)[(][\\](\d+)", 'g_\\1(lToken[nTokenOffset+\\2], dTags', sCode)
|
| ︙ | ︙ |
Modified gc_lang/fr/rules.grx from [c7efaf6d46] to [4d63d167b4].
| ︙ | ︙ | |||
3826 3827 3828 3829 3830 3831 3832 |
<<- ~2:0>> ␣
<<- =>> define(\2, ":MP:m:s")
~^[A-ZÀÂÉÈÊÎÔ]. Airways
<<- ~>> ␣
<<- =>> define(\2, ":MP:e:i")
| < < < < < | 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 |
<<- ~2:0>> ␣
<<- =>> define(\2, ":MP:m:s")
~^[A-ZÀÂÉÈÊÎÔ]. Airways
<<- ~>> ␣
<<- =>> define(\2, ":MP:e:i")
__immunités__
il y a
il n’ y a
<<- !-1>>
à l’ arrache
|
| ︙ | ︙ | |||
4906 4907 4908 4909 4910 4911 4912 |
# <<- \1 == \2
# and not value(\2, "|nous|vous|faire|en|la|lui|donnant|œuvre|ah|oh|eh|hé|ho|ha|hou|olé|joli|Bora|couvent|dément|sapiens|très|vroum|")
# and not (value(\1, "|est|une|") and value(<1, "|l’|d’|"))
# and not (\2 == "mieux" and value(<1, "|qui|"))
# ->> \1 && Doublon.
#
#TEST: Il y a un {{doublon doublon}}. ->> doublon
| < < < < < < < < < < < < | 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 |
# <<- \1 == \2
# and not value(\2, "|nous|vous|faire|en|la|lui|donnant|œuvre|ah|oh|eh|hé|ho|ha|hou|olé|joli|Bora|couvent|dément|sapiens|très|vroum|")
# and not (value(\1, "|est|une|") and value(<1, "|l’|d’|"))
# and not (\2 == "mieux" and value(<1, "|qui|"))
# ->> \1 && Doublon.
#
#TEST: Il y a un {{doublon doublon}}. ->> doublon
!!
!!
!!!! Élisions & euphonie !!
!!
|
| ︙ | ︙ |