From 056cba728828b54aea32062d1979df4eb99651aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 7 Jan 2015 14:41:50 +0100 Subject: [PATCH] legi2odf/odf2legi: keep role="objet" attribute --- legi2odf/legi2odf.xsl | 5 +++++ odf2legi/odf2legi.py | 2 ++ template-pcf/styles.xml | 3 +++ 3 files changed, 10 insertions(+) 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 @@ + + +