62 lines
1.4 KiB
Python
62 lines
1.4 KiB
Python
"""Définitions communes aux outils de gestion des contenus."""
|
|
|
|
SECTION_ALIASES = {
|
|
"article": "articles",
|
|
"articles": "articles",
|
|
"grammaire": "grammaire",
|
|
"signe": "signes",
|
|
"signes": "signes",
|
|
"texte": "textes",
|
|
"textes": "textes",
|
|
"vocabulaire": "vocabulaire",
|
|
}
|
|
|
|
VOCABULARY_FIELDS = {
|
|
"nom": ("meaning", "logograms", "gender", "bound", "plural"),
|
|
"adjectif": (
|
|
"meaning",
|
|
"logograms",
|
|
"bound",
|
|
"feminine",
|
|
"masculine_plural",
|
|
"feminine_plural",
|
|
"predicative",
|
|
),
|
|
"verbe": (
|
|
"meaning",
|
|
"logograms",
|
|
"root",
|
|
"stem",
|
|
"verb_class",
|
|
"vowel_class",
|
|
"preterite",
|
|
"durative",
|
|
"perfect",
|
|
"imperative",
|
|
"participle",
|
|
"verbal_adjective",
|
|
),
|
|
"pronom": (
|
|
"meaning",
|
|
"logograms",
|
|
"pronoun_type",
|
|
"person",
|
|
"gender",
|
|
"number",
|
|
),
|
|
"préposition": ("meaning", "logograms", "governs"),
|
|
"adverbe": ("meaning", "logograms", "function"),
|
|
"conjonction": ("meaning", "logograms", "function"),
|
|
"particule": ("meaning", "logograms", "function"),
|
|
"numéral": (
|
|
"meaning",
|
|
"logograms",
|
|
"numeral_type",
|
|
"value",
|
|
"gender",
|
|
"feminine",
|
|
),
|
|
}
|
|
|
|
KNOWN_SECTIONS = frozenset(SECTION_ALIASES.values())
|