diff --git a/legi2odf/legi2odf.xsl b/legi2odf/legi2odf.xsl index 7528749..ca8e6b4 100644 --- a/legi2odf/legi2odf.xsl +++ b/legi2odf/legi2odf.xsl @@ -214,6 +214,11 @@ + + + + + W: unknown para role: diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py index 2896103..3289561 100644 --- a/odf2legi/odf2legi.py +++ b/odf2legi/odf2legi.py @@ -414,6 +414,8 @@ def handle_paragraph(parent, elem): para.attrib['role'] = 'legistic_manualarticle' if style == 'NoteTableDesMatieres': para.attrib['role'] = 'note_table_des_matieres' + if style == 'ParaObjet': + para.attrib['role'] = 'objet' if align and parent.tag == 'entry': parent.attrib['role'] = align diff --git a/template-pcf/styles.xml b/template-pcf/styles.xml index dc98dd8..3d3c097 100644 --- a/template-pcf/styles.xml +++ b/template-pcf/styles.xml @@ -42,6 +42,9 @@ + + +