Bonjour,
A] Quand j'extrais les fichiers du fichier zip, j'obtiens bien un
fichier "content.xml", mais il décrit l'index de mon dossier
"Documents" et pas le contenu textuel du document (voir ci-dessous,
s'il est possible de transmettre des images).
B] Quand j'ouvre le fichier zip, je trouve également un fichier
"content.xml", qui ressemble à celui dont je vous ai communiqué un
extrait hier (voir ci-dessous).
J'ai certainement fait une erreur, mais j'ai du mal à voir laquelle.
PJR
A]
B]
This XML file does not appear to have any style information
associated with it. The document tree is shown below.
<office:document-contentxmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"xmlns:ooo="http://openoffice.org/2004/office"xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"xmlns:xlink="http://www.w3.org/1999/xlink"xmlns:dc="http://purl.org/dc/elements/1.1/"xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"xmlns:rpt="http://openoffice.org/2005/report"xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"xmlns:ooow="http://openoffice.org/2004/writer"xmlns:oooc="http://openoffice.org/2004/calc"xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2"xmlns:xforms="http://www.w3.org/2002/xforms"xmlns:tableooo="http://openoffice.org/2009/table"xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0"xmlns:drawooo="http://openoffice.org/2010/draw"xmlns:xhtml="http://www.w3.org/1999/xhtml"xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0"xmlns:math="http://www.w3.org/1998/Math/MathML"xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0"xmlns:dom="http://www.w3.org/2001/xml-events"xmlns:xsd="http://www.w3.org/2001/XMLSchema"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:grddl="http://www.w3.org/2003/g/data-view#"xmlns:css3t="http://www.w3.org/TR/css3-text/"xmlns:officeooo="http://openoffice.org/2009/office"office:version="1.3">
<office:scripts/>
<office:font-face-decls>
<style:font-facestyle:name="Arial"svg:font-family="Arial"style:font-family-generic="roman"style:font-pitch="variable"/>
<style:font-facestyle:name="Arial Unicode MS"svg:font-family="'Arial
Unicode
MS'"style:font-family-generic="swiss"style:font-pitch="variable"/>
<style:font-facestyle:name="Arial1"svg:font-family="Arial"style:font-family-generic="swiss"/>
<style:font-facestyle:name="Arial2"svg:font-family="Arial"style:font-family-generic="swiss"style:font-pitch="variable"/>
<style:font-facestyle:name="Arial3"svg:font-family="Arial"style:font-family-generic="system"style:font-pitch="variable"/>
<style:font-facestyle:name="Arial4"svg:font-family="Arial, sans-serif"/>
<style:font-facestyle:name="Helvetica"svg:font-family="Helvetica"style:font-family-generic="swiss"style:font-pitch="variable"/>
<style:font-facestyle:name="Liberation
Mono"svg:font-family="'Liberation
Mono'"style:font-family-generic="modern"style:font-pitch="fixed"/>
<style:font-facestyle:name="Liberation
Sans"svg:font-family="'Liberation
Sans'"style:font-family-generic="swiss"style:font-pitch="variable"/>
<style:font-facestyle:name="Liberation
Serif"svg:font-family="'Liberation
Serif'"style:font-family-generic="roman"style:font-pitch="variable"/>
<style:font-facestyle:name="Microsoft
YaHei"svg:font-family="'Microsoft
YaHei'"style:font-family-generic="system"style:font-pitch="variable"/>
<style:font-facestyle:name="NSimSun"svg:font-family="NSimSun"style:font-family-generic="modern"style:font-pitch="fixed"/>
<style:font-facestyle:name="NSimSun1"svg:font-family="NSimSun"style:font-family-generic="system"style:font-pitch="variable"/>
<style:font-facestyle:name="OpenSymbol"svg:font-family="OpenSymbol"style:font-charset="x-symbol"/>
<style:font-facestyle:name="Times New Roman"svg:font-family="'Times
New Roman'"style:font-family-generic="roman"/>
<style:font-facestyle:name="Times New Roman1"svg:font-family="'Times
New Roman'"style:font-family-generic="roman"style:font-pitch="variable"/>
<style:font-facestyle:name="Trebuchet MS"svg:font-family="'Trebuchet
MS'"style:font-family-generic="swiss"style:font-pitch="variable"/>
</office:font-face-decls>
<office:automatic-styles>
<style:stylestyle:name="P1"style:family="paragraph"style:parent-style-name="Endnote">
<style:text-propertiesofficeooo:rsid="0165e43c"officeooo:paragraph-rsid="000f8faa"/>
</style:style>
<style:stylestyle:name="P2"style:family="paragraph"style:parent-style-name="Endnote">
<style:text-propertiesofficeooo:rsid="0165e43c"officeooo:paragraph-rsid="002d9d43"/>
</style:style>
<style:stylestyle:name="P3"style:family="paragraph"style:parent-style-name="Endnote">
<style:text-propertiesofficeooo:rsid="0165e43c"officeooo:paragraph-rsid="00f89309"/>
Le 21/11/2023 à 09:00, Stéphane Santon a écrit :
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.