Je m'attelle � appliquer la m�me m�thode pour les documents openoffice
mais l�, si j'arrive � retrouver une 30 de fichiers openoffice (en me
fondant sur les �magicnumbers�), il est impossible de filtrer ces
fichiers par un grep o� m�me de les ouvrir, apparemment openoffice ne
supporte pas un fichier rallong� par des octets quelconques. Quelqu'un
aurait une id�e sur une m�thode pour restaurer des fichiers openoffice?


Fran�ois Boisson


Un petit test :

[EMAIL PROTECTED]:~/testopenoffice$ unzip test.sxw
Archive:  test.sxw
 extracting: mimetype
  inflating: content.xml
  inflating: styles.xml
 extracting: meta.xml
  inflating: settings.xml
  inflating: META-INF/manifest.xml
[EMAIL PROTECTED]:~/testopenoffice$ ls
content.xml META-INF meta.xml mimetype settings.xml styles.xml test.sxw
[EMAIL PROTECTED]:~/testopenoffice$

Le document openoffice contient seulement : "Fichier de test openoffice"

On retrouve ce texte dans content.xml (vers la fin):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd"> <office:document-content xmlns:office="http://openoffice.org/2000/office"; xmlns:style="http://openoffice.org/2000/style"; xmlns:text="http://openoffice.org/2000/text"; xmlns:table="http://openoffice.org/2000/table"; xmlns:draw="http://openoffice.org/2000/drawing"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:number="http://openoffice.org/2000/datastyle"; xmlns:svg="http://www.w3.org/2000/svg"; xmlns:chart="http://openoffice.org/2000/chart"; xmlns:dr3d="http://openoffice.org/2000/dr3d"; xmlns:math="http://www.w3.org/1998/Math/MathML"; xmlns:form="http://openoffice.org/2000/form"; xmlns:script="http://openoffice.org/2000/script"; office:class="text" office:version="1.0">
 <office:script/>
 <office:font-decls>
<style:font-decl style:name="Tahoma1" fo:font-family="Tahoma, Lucidasans, &apos;Lucida Sans&apos;, &apos;Arial Unicode MS&apos;"/> <style:font-decl style:name="Bitstream Vera Sans" fo:font-family="&apos;Bitstream Vera Sans&apos;" style:font-pitch="variable"/> <style:font-decl style:name="Tahoma" fo:font-family="Tahoma, Lucidasans, &apos;Lucida Sans&apos;, &apos;Arial Unicode MS&apos;" style:font-pitch="variable"/> <style:font-decl style:name="Nimbus Roman No9 L" fo:font-family="&apos;Nimbus Roman No9 L&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
 </office:font-decls>
 <office:automatic-styles/>
 <office:body>
  <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-decls>
  <text:p text:style-name="Standard">Fichier de test openoffice</text:p>
 </office:body>
</office:document-content>

En esp�rant faire avancer le shimiliblique... ;)

--
Cordialement
--------------------------------------------
        Jacques-Daniel PILLON
--------------------------------------------


--
Pensez � lire la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench

Pensez � rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:"

To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à