Skip to content

Commit

Permalink
[FR] Handle the 'graphie' template (fixes #236)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 21, 2020
1 parent 1c13960 commit 4c582e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lang/fr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@
"ancre",
"créer-séparément",
"désabrévier",
"graphie",
"Import",
"Modèle",
"préciser",
Expand Down Expand Up @@ -457,6 +456,8 @@
"formatnum": f'number(parts[1], "{float_separator}", "{thousands_separator}")',
# {{forme pronominale|mutiner}}
"forme pronominale": 'f"{capitalize(tpl)} de {parts[1]}"',
# {{graphie|u}}
"graphie": 'f"‹ {parts[1]} ›"',
# {{îles|fr}}
# {{îles|fr|des Antilles}}
"îles": "term('Géographie')",
Expand Down
1 change: 1 addition & 0 deletions tests/test_fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def test_parse_word(
("{{info lex|équitation|sport}}", "<i>(Équitation, Sport)</i>"),
("[[J·K-1|'''J·K{{e|-1}}''']]", "<b>J·K<sup>-1</sup></b>"),
("{{FR|fr}}", "<i>(France)</i>"),
("{{graphie|u}}", "‹&nbsp;u&nbsp;›"),
("{{lang|en|other rank}}", "other rank"),
("{{Lang|la|[[Martis]] [[dies]]}}", "Martis dies"),
("{{langues|fr|de Chine}}", "<i>(Linguistique)</i>"),
Expand Down

0 comments on commit 4c582e5

Please sign in to comment.