Bonjour,
Ça, ça ressemble plus au fichier styles.xml, et non content.xml.
Bonne journée
Le 21/11/2023 à 00:51, Pierre-Jean Raugel a écrit :
@ Stéphane Santon
Merci,
Après quelques tâtonnements (il y a apparemment plusieurs "content.xml"
dans le dossier dézippé), j'ai obtenu un fichier de 524 pages, dont je
copie un extrait:
<style:stylestyle:name="P153"style:family="paragraph"style:parent-style-name="Text_20_body">
<style:text-propertiesofficeooo:rsid="00435275"officeooo:paragraph-rsid="00ef7816"/>
</style:style>
<style:stylestyle:name="P154"style:family="paragraph"style:parent-style-name="Endnote">
<style:text-propertiesofficeooo:paragraph-rsid="00f3572f"/>
</style:style>
<style:stylestyle:name="P155"style:family="paragraph"style:parent-style-name="Endnote">
<style:text-propertiesofficeooo:paragraph-rsid="00f4fcf8"/>
</style:style>
<style:stylestyle:name="P156"style:family="paragraph"style:parent-style-name="Footnote">
<style:text-propertiesofficeooo:paragraph-rsid="00fc376b"/>
</style:style>
Il y a 447 "Endnote" et 446 "Footnote", mais jamais associés à "text",
alors que text est associé à ce qui ressemble à des polices de caractères.
Je vais tester demain la procédure suivante:
* remplacer "Endnote" par "Footnote#1"
* remplacer "Footnote " par "Endnote "
* remplacer Footnote#1 par Footnote
Il ne me restera "plus qu"'à comprendre comment repasser du fichier xml
au fichier odt
Bonne nuit.
PJR
Le 20/11/2023 à 23:46, Stéphane Santon a écrit :
Je viens de tester... résultat sympa...
- Renommer le .odt en .zip
- Dézipper dans un dossier
- Ouvrir content.xml
on trouve :
<text:note text:note-class="footnote" text:id="ftn3">
<text:note-citation>2</text:note-citation>
<text:note-body>
<text:p text:style-name="Footnote">
D
<text:span text:style-name="T1">
euxième note de bas de page
</text:span>
</text:p>
</text:note-body>
</text:note>
et
<text:note text:note-class="endnote" text:id="ftn2">
<text:note-citation>i</text:note-citation>
<text:note-body>
<text:p text:style-name="P1">
Ici la note de fin...
</text:p>
</text:note-body>
</text:note>
Donc on inverse les
note-class="footnote"
et les
note-class="endnote"
Mes notes sont bien inversées.
--
Envoyez un mail à users+unsubscr...@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à
https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy