Jean-François
J'ai créé trois DOC from scratch un avec 7.5 , un autre avec 7.6 et un
autre avec 24.2 avec le même contenu :
- Création d'un style "Question" avec numérotation "Numérotation 123"
sans aucun autre changement.
- Saisie de 2 paragraphes de Corps de texte
- Saisie de deux paragraphes avec le style Question
- Saisie de 2 paragraphes de Corps de texte
- Enregistrement du doc.
- Extraction du fichier content.xml
Effectivement, dans les deux versions 7.5 et 7.6 il y a autant de styles
de paragraphe "Question" que de lignes saisies !
Mais un seul avec la version 24.2
Il semblerait que la version 24.2 serait mieux ???
Je suis sous kubuntu 22.4 (au cas où il y aurait une influence mais je
n'y crois pas)
Exemple ci-dessous est l'extrait de la version 7.6
------------------------------------------------------------------------
<office:automatic-styles>
<style:style style:name="P1" style:family="paragraph"
style:parent-style-name="Question" style:list-style-name="Numbering_20_123">
<style:text-properties officeooo:rsid="0006a5f6"
officeooo:paragraph-rsid="0006a5f6"/>
</style:style>
<style:style style:name="P2" style:family="paragraph"
style:parent-style-name="Question" style:list-style-name="Numbering_20_123">
<style:text-properties officeooo:rsid="00082625"
officeooo:paragraph-rsid="00082625"/>
</style:style>
</office:automatic-styles>
<office:body>
<office:text>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0"
text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Table"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Text"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Drawing"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Figure"/>
</text:sequence-decls>
<text:p text:style-name="Text_20_body"/>
<text:p text:style-name="Text_20_body"/>
<text:list text:style-name="Numbering_20_123">
<text:list-item>
<text:p text:style-name="P1">C’est la Q1</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P2">C’est la Q2</text:p>
</text:list-item>
</text:list>
<text:p text:style-name="Text_20_body"/>
<text:p text:style-name="Text_20_body"/>
</office:text>
</office:body>
------------------------------------------------------------------------
Puis extrait du content.xml de la version 24.2
------------------------------------------------------------------------
<office:automatic-styles>
<style:style style:name="P1" style:family="paragraph"
style:parent-style-name="Question">
<style:text-properties officeooo:rsid="00059e7a"
officeooo:paragraph-rsid="00059e7a"/>
</style:style>
</office:automatic-styles>
<office:body>
<office:text>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0"
text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Table"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Text"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Drawing"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Figure"/>
</text:sequence-decls>
<text:p text:style-name="Text_20_body"/>
<text:p text:style-name="Text_20_body"/>
<text:list text:style-name="Numbering_20_123">
<text:list-item>
<text:p text:style-name="P1">C’est la Q1 avec 24</text:p>
</text:list-item>
<text:list-item>
<text:p text:style-name="P1">C’est la Q2</text:p>
</text:list-item>
</text:list>
<text:p text:style-name="Text_20_body"/>
<text:p text:style-name="Text_20_body"/>
</office:text>
</office:body>
------------------------------------------------------------------------
Le 03/03/2024 à 19:17, Jean-Francois Nifenecker a écrit :
Le 03/03/2024 à 16:58, Patrick a écrit :
Jean-François,
Je viens de créer un doc avec LO 75, en créant des styles comme tu
l'as mentionné dans ton doc tuto.
[...]
Le doc est enregistré avec LO 7.5 (à récupérer ici :
https://www.cjoint.com/c/NCdpTzDo0jO )
Quand je l'ouvre avec LO 7.6, les paragraphes numérotés sont tout
chamboulés. L'inspecteur de style indique qu'il y a des surcharges !
(mais pas quand il est ouvert avec LO 7.5)
Oui, sous la version 7.6 (MV sous Windows), si l'on fait Ctrl-M sur
les questions (suppression des surcharges), tout rentre dans l'ordre.
Donc j'en déduis qu'il y a un souci de compatibilité entre 7.5 et 7.6
Le pb semble plus compliqué : en ouvrant le fichier, et en fouillant
le fichier content.xml, on trouve DEUX fois le style de paragraphe
"Question", portant DEUX identifiants internes différents (P6 et P7).
Euh ?! Là, il y a un blème.
Extrait :
8< --------------------------------------
<style:style style:name="P6" style:family="paragraph"
style:parent-style-name="Question">
<style:text-properties officeooo:rsid="001d6c50"
officeooo:paragraph-rsid="001d6c50" />
</style:style>
<style:style style:name="P7" style:family="paragraph"
style:parent-style-name="Question">
<style:text-properties officeooo:rsid="002851ac"
officeooo:paragraph-rsid="002851ac" />
</style:style>
-------------------------------------- >8
On avance...
Je vais retester en recréant de zéro, selon ton déroulé et SANS ouvrir
sous 7.6, puis après ouverture sous cette version.
--
Envoyez un mail à users+unsubscribe@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
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.