Skip to content

Commit

Permalink
[FR] Handle 'dénominal de' and 'déverbial de' templates (closes #268)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 21, 2020
1 parent f25e625 commit 413b00b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/lang/fr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@
"créatures": "term('Mythologie')",
# {{couleur|#B0F2B6}}
"couleur": "color(parts[1])",
# {{déverbal de|haler|fr}}
"déverbal de": 'f"Déverbal de {italic(parts[1])}"',
# {{dénominal de|affection|fr}}
"dénominal de": 'f"Dénominal de {italic(parts[1])}"',
# {{fchim|H|2|O}}
"fchim": "chimy(parts[1:])",
# XIX{{e}}
Expand Down
2 changes: 2 additions & 0 deletions tests/test_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ def test_parse_word(
("{{cf|lang=fr|in-|extinguible}}", "→ voir <i>in-</i> et <i>extinguible</i>"),
("{{circa|1150}}", "<i>(c. 1150)</i>"),
("{{couleur|#B0F2B6}}", "[RGB #B0F2B6]"),
("{{déverbal de|haler|fr}}", "Déverbal de <i>haler</i>"),
("{{dénominal de|affection|fr}}", "Dénominal de <i>affection</i>"),
("du XX{{e}} siècle", "du XX<sup>e</sup> siècle"),
(
"{{étyl|grc|fr|mot=ἄκρος|tr=akros|sens=extrémité}}",
Expand Down

0 comments on commit 413b00b

Please sign in to comment.