feat(series-studio): initial implementation of unified series studio engine (PDF & DOCX)
This commit is contained in:
commit
03d9922066
20 files changed
+7082
No files matched your search
+256
@@ -0,0 +1,256 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "SeriesStudioDocument",
|
||||
"description": "Schéma de description structurée d'une série d'exercices mathématiques pour series-studio",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"schema_version",
|
||||
"pages_cibles",
|
||||
"cartouche",
|
||||
"exercices"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": {
|
||||
"type": "string",
|
||||
"description": "Version du schéma (ex: 1.0.0)"
|
||||
},
|
||||
"pages_cibles": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"description": "Nombre de pages cible pour le document (ex: 2)"
|
||||
},
|
||||
"theme": {
|
||||
"type": "string",
|
||||
"description": "Thème graphique à appliquer (ex: classique, sobre)"
|
||||
},
|
||||
"cartouche": {
|
||||
"type": "object",
|
||||
"description": "Métadonnées de l'en-tête officiel du document",
|
||||
"required": [
|
||||
"titre",
|
||||
"type_doc",
|
||||
"discipline",
|
||||
"classe",
|
||||
"enseignant",
|
||||
"annee",
|
||||
"lycee"
|
||||
],
|
||||
"properties": {
|
||||
"titre": {
|
||||
"type": "string",
|
||||
"description": "Titre principal de la série (ex: COMPLEXES)"
|
||||
},
|
||||
"sous_titre": {
|
||||
"type": "string",
|
||||
"description": "Sous-titre ou description courte"
|
||||
},
|
||||
"type_doc": {
|
||||
"type": "string",
|
||||
"description": "Type de document (ex: SÉRIE D'EXERCICES)"
|
||||
},
|
||||
"discipline": {
|
||||
"type": "string",
|
||||
"description": "Discipline enseignée (ex: Mathématiques)"
|
||||
},
|
||||
"classe": {
|
||||
"type": "string",
|
||||
"description": "Niveau et section (ex: 4ème Sciences Techniques)"
|
||||
},
|
||||
"enseignant": {
|
||||
"type": "string",
|
||||
"description": "Nom de l'enseignant (ex: Heykel ZAYANI)"
|
||||
},
|
||||
"titre_enseignant": {
|
||||
"type": "string",
|
||||
"description": "Titre officiel de l'enseignant (ex: P.P.É.C.E.)"
|
||||
},
|
||||
"annee": {
|
||||
"type": "string",
|
||||
"description": "Année scolaire (ex: 2026 / 2027)"
|
||||
},
|
||||
"lycee": {
|
||||
"type": "string",
|
||||
"description": "Établissement scolaire (ex: Lycée Pilote)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"exercices": {
|
||||
"type": "array",
|
||||
"description": "Liste ordonnée des exercices",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"numero",
|
||||
"elements"
|
||||
],
|
||||
"properties": {
|
||||
"numero": {
|
||||
"type": "string",
|
||||
"description": "Numéro d'exercice (ex: '1')"
|
||||
},
|
||||
"titre": {
|
||||
"type": "string",
|
||||
"description": "Titre thématique de l'exercice"
|
||||
},
|
||||
"points": {
|
||||
"type": "string",
|
||||
"description": "Barème de l'exercice (ex: '5 points')"
|
||||
},
|
||||
"breakable_box": {
|
||||
"type": "boolean",
|
||||
"description": "Indique si la boîte Typst est sécable sur plusieurs pages"
|
||||
},
|
||||
"elements": {
|
||||
"type": "array",
|
||||
"description": "Éléments séquentiels de l'exercice",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"question",
|
||||
"display_equation",
|
||||
"part_header",
|
||||
"page_break",
|
||||
"text",
|
||||
"figure"
|
||||
]
|
||||
},
|
||||
"text": {
|
||||
"type": "string"
|
||||
},
|
||||
"text_typst": {
|
||||
"type": "string"
|
||||
},
|
||||
"text_docx": {
|
||||
"type": "string"
|
||||
},
|
||||
"latex": {
|
||||
"type": "string"
|
||||
},
|
||||
"typst": {
|
||||
"type": "string"
|
||||
},
|
||||
"indent_level": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"space_before": {
|
||||
"type": "number"
|
||||
},
|
||||
"space_after": {
|
||||
"type": "number"
|
||||
},
|
||||
"bold_prefix": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"figure_id": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"annexe": {
|
||||
"type": "object",
|
||||
"description": "Annexe officielle éventuelle (figures, grille QCM, etc.)",
|
||||
"required": [
|
||||
"titre",
|
||||
"colonnes"
|
||||
],
|
||||
"properties": {
|
||||
"titre": {
|
||||
"type": "string"
|
||||
},
|
||||
"colonnes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"titre"
|
||||
],
|
||||
"properties": {
|
||||
"titre": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "string"
|
||||
},
|
||||
"figure_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"width_typst": {
|
||||
"type": "string"
|
||||
},
|
||||
"width_docx_inches": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"figures": {
|
||||
"type": "array",
|
||||
"description": "Définition déclarative des figures géométriques / tracés",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"kind"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"declarative",
|
||||
"file"
|
||||
]
|
||||
},
|
||||
"file": {
|
||||
"type": "string"
|
||||
},
|
||||
"figsize": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"xlim": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"ylim": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"aspect": {
|
||||
"type": "string"
|
||||
},
|
||||
"title_box": {
|
||||
"type": "object"
|
||||
},
|
||||
"elements": {
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user