| View previous topic :: View next topic |
| Author |
Message |
Diogenes' Lamp General User


Joined: 03 Jul 2006 Posts: 29 Location: Albuquerque, NM
|
Posted: Mon Jul 31, 2006 10:04 am Post subject: Post-recovery Re-Zip problems |
|
|
I have a program that requires the contents of an OOo 1.1.2 document file (.sxw) to zip from a folder into an file suffixed .sxw. Unfortunately, when I go to open the newly zipped file, I am unable to open the document. If anyone still has OOo 1.?.?, could someone help me please?
Good Luck and thanks in advance.
P.S., these instructions are for Red Hat Linux, so it won't really be possible to duplicate on a Windows Box. Hopefully, it will be duplicateable on other versions of Linux
Procedure:
1) save the following shell script as XMLReader.0
| Code: | #!/bin/bash
unzip -oq $1 -d recov_$1 #(extract file) |
2) find an .sxw file and copy it into the directory where the shell script is.
3) Open a terminal, go to the directory containing both the shell script and the document, and enter the following command:
| Code: | | sh XMLReader.0 <DocumentName>.sxw |
4) While still in the terminal, type:
| Code: | | zip -r recov_<DocumentName> <DocumentName>2 |
and then type
| Code: | | mv <DocumentName>2.zip <DocumentName>2.sxw |
5) Finally, try to open the document. You will probably have to select a filter. I don't know what filter to use, and that may be my problem. (Of course, it might just be a scapegoat.)
In a simple .sxw file, there seem to be the following files:
META-INF/manifest.xml
content.xml
meta.xml
mimetype
settings.xml
styles.xml
Am I missing anything? _________________ -WR, Child of DOS & Windows 3.1
Win98, WinXP, RHL 8.0, RHEL 4.0, WinVista
"Strive at all times to bend, fold, spindle, and mutilate." |
|
| Back to top |
|
 |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Mon Jul 31, 2006 12:51 pm Post subject: Re: Post-recovery Re-Zip problems |
|
|
| Diogenes' Lamp wrote: | | Code: | | zip -r recov_<DocumentName> <DocumentName>2 |
and then type
| Code: | | mv <DocumentName>2.zip <DocumentName>2.sxw |
|
That's not going to give a completely correct structure.
| Code: |
cd <Document Name>
zip - ../recov_<DocumentName>.sxw * |
See this shell script which will work on sx* and OpenDocument files:
http://www.oooforum.org/forum/viewtopic.phtml?t=27452&highlight=
What exactly are you trying to modify in the file? Content.xml? _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
Diogenes' Lamp General User


Joined: 03 Jul 2006 Posts: 29 Location: Albuquerque, NM
|
Posted: Mon Jul 31, 2006 1:29 pm Post subject: |
|
|
| The program I'm working on is designed to assemble an .sxw document (from a MSO document), and when I finished compiling the program and tried to open the .sxw file, it didn't work. As a test, I extracted the contents of another .sxw file, and then tried to zip the contents back up, but this didn't work either. I'm wondering if there is a certain filter I should use, or a certain command, or if there's something I'm missing that should be showing up in the contents of the .sxw file. |
|
| Back to top |
|
 |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Mon Jul 31, 2006 1:40 pm Post subject: |
|
|
Rename the .sxw file as a .zip file and examine it's structure. I think you may have an additional layer of directory structure in it. That wuld be consistent with the commands that you are using, _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|