legi2odf/odf2legi: keep role="objet" attribute
This commit is contained in:
parent
ce41206cb8
commit
056cba7288
|
@ -214,6 +214,11 @@
|
|||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="@role = 'objet'">
|
||||
<text:p text:style-name="ParaObjet">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:if test="@role">
|
||||
<xsl:message>W: unknown para role: <xsl:value-of select="@role"/></xsl:message>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -42,6 +42,9 @@
|
|||
<style:style style:name="ParaRight" style:display-name="Para Right" style:family="paragraph" style:parent-style-name="Para" style:class="text">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="ParaObjet" style:display-name="ParaObjet" style:family="paragraph" style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.2cm" fo:margin-bottom="0.2cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="AlphaList" style:display-name="Liste Alpha"
|
||||
style:family="paragraph" style:parent-style-name="Text_20_body"
|
||||
style:class="list" style:list-style-name="AlphaList">
|
||||
|
|
Reference in New Issue