I have a word doc that wv has two (maybe separate) problems with.
With wvText, the numbering in the lists comes without the whole
hierarchy. With wvPDF, everything's line wrapped terribly. This
should maybe be two separate bugs. split if you want.
I'll attach the word doc.
The numbered list problem is also present in antiword, bug #382515.
(same word doc attached to that bug).
OOWriter produces good text output that looks like this:
----------------
CHAPTER FIVE: Marine resources of the Bay of Fundy
(J.A. Percy)
5.1Introduction 103
5.2Status of marine resources 105
5.2.1Pelagic fish 105
5.2.2Demersal fish 107
5.2.3Diadromous fish 110
5.2.4Invertebrates and marine plants 112
5.2.5Aggregate extraction 119
5.3 Aquaculture 119
5.3.1Introduction 119
5.3.2Species in culture 120
5.3.3Potential constraints on aquaculture development 121
5.3.3.1Tidal currents , 121
5.3.3.2Winter temperature 121
5.3.3.3Pollutants 122
...
----------------
wvText produces this:
----------------
...
CHAPTER FIVE: Marine resources of the Bay of Fundy
(J.A. Percy)
1. Introduction 103
2. Status of marine resources 105
1. Pelagic fish 105
2. Demersal fish 107
3. Diadromous fish 110
4. Invertebrates and marine plants 112
5. Aggregate extraction 119
5.3 Aquaculture 119
1. Introduction 119
2. Species in culture 120
3. Potential constraints on aquaculture development 121
1. Tidal currents , 121
2. Winter temperature 121
3. Pollutants 122
...
----------------
wvPDF's output doesn't look much like the word doc. It seems to not
be treating the line breaks as line breaks, besides having the lists
numbered badly.
Anyway, oowriter from openoffice 1.1 handles the doc fine, so there
is open source code around that understands however it is that MS
stores lists in their doc files. The file was produced with some
version of MS Office running on Windows.
I have tried to reproduce this bug with wv 1.2.4.
I tried to convert your MS Word file with "wvText <input file> <output
file>" and "wvPDF <input file> <output file>".
I received corrupt output as you did, I am attaching an archive with the
files.
At first, wvPDF told that it needed a program called "latex" and quited.
There is no package with that name, so I installed texlive to get some TeX
tools. That brought the application "latex" too. After that, wvPDF converted
the file with following error message:
sh-3.2$ wvPDF Workshop\ 1\ -\ Contents.doc contents.pdf
Current directory: /home/aras/Desktop
Some problem running latex.
Check for Errors in contents.log
Continuing...
sh-3.2$
As I mentioned before, a corrupt PDF file was created. The file contents.log
is in the archive as well.
---
I was running Debian 5.0.7 (lenny) with Linux Kernel 2.6.26-2-686.
Versions of the packages are:
sh-3.2$ dpkg -l | egrep
'wv|libc6|libexpat1|libfreetype6|libglib2.0-0|libgsf-1-114|libjpeg62|libpng12-0|libwmf0.2-7|libwv-1.2-3|libx11-6|libxml2|zlib1g'
ii libc6 2.7-18lenny6
GNU C Library: Shared libraries
ii libc6-dev 2.7-18lenny6
GNU C Library: Development Libraries and Hea
ii libc6-i686 2.7-18lenny6
GNU C Library: Shared libraries [i686 optimi
ii libexpat1 2.0.1-4+lenny3
XML parsing C library - runtime library
ii libexpat1-dev 2.0.1-4+lenny3
XML parsing C library - development kit
ii libfreetype6 2.3.7-2+lenny4
FreeType 2 font engine, shared library files
ii libfreetype6-dev 2.3.7-2+lenny4
FreeType 2 font engine, development files
ii libglib2.0-0 2.16.6-3
The GLib library of C routines
ii libgsf-1-114 1.14.8-1lenny2
Structured File Library - runtime version
ii libjpeg62 6b-14
The Independent JPEG Group's JPEG runtime li
ii libjpeg62-dev 6b-14
Development files for the IJG JPEG library
ii libpng12-0 1.2.27-2+lenny4
PNG library - runtime
ii libwmf0.2-7 0.2.8.4-6+lenny1
Windows metafile conversion library
ii libwv-1.2-3 1.2.4-2
Library for accessing Microsoft Word documen
ii libx11-6 2:1.1.5-2
X11 client-side library
ii libxml2 2.6.32.dfsg-5+lenny2
GNOME XML library
ii libxml2-dev 2.6.32.dfsg-5+lenny2
Development files for the GNOME XML library
ii libxml2-utils 2.6.32.dfsg-5+lenny2
XML utilities
ii python-libxml2 2.6.32.dfsg-5+lenny2
Python bindings for the GNOME XML library
ii wv 1.2.4-2
Programs for accessing Microsoft Word docume
ii zlib1g 1:1.2.3.3.dfsg-12
compression library - runtime
ii zlib1g-dev 1:1.2.3.3.dfsg-12
compression library - development
---
Aras Ergus
I tried it with vw 1.2.4-2+b1 (unstable), and got the same results.
A diff check between text files in the archive and the new output
("diff -u <file1> <file2>") doesn't give anything except for the
change in date and time, and the PDF file looks pretty much the same.
---
I was running Debian 5.0.7 (lenny) with Linux Kernel 2.6.26-2-686.
Versions of the packages are:
sh-3.2$ dpkg -l | egrep
'wv|libc6|libexpat1|libfreetype6|libglib2.0-0|libgsf-1-114|
libjpeg62|libpng12-0|libwmf0.2-7|libwv-1.2-3|libx11-6|libxml2|zlib1g'
ii libc6 2.11.2-7
Embedded GNU C Library: Shared libraries
ii libc6-dev 2.11.2-7
Embedded GNU C Library: Development Librarie
ii libc6-i686 2.11.2-7
Embedded GNU C Library: Shared libraries [i6
ii libexpat1 2.0.1-4+lenny3
XML parsing C library - runtime library
ii libexpat1-dev 2.0.1-4+lenny3
XML parsing C library - development kit
ii libfreetype6 2.3.7-2+lenny4
FreeType 2 font engine, shared library files
ii libfreetype6-dev 2.3.7-2+lenny4
FreeType 2 font engine, development files
ii libglib2.0-0 2.24.2-1
The GLib library of C routines
ii libgsf-1-114 1.14.19-2
Structured File Library - runtime version
ii libjpeg62 6b1-1
The Independent JPEG Group's JPEG runtime li
ii libjpeg62-dev 6b1-1
Development files for the IJG JPEG library (
ii libpng12-0 1.2.27-2+lenny4
PNG library - runtime
ii libwmf0.2-7 0.2.8.4-6+lenny1
Windows metafile conversion library
ii libwv-1.2-3 1.2.4-2
Library for accessing Microsoft Word documen
ii libx11-6 2:1.1.5-2
X11 client-side library
ii libxml2 2.7.8.dfsg-2
GNOME XML library
ii libxml2-dev 2.7.8.dfsg-2
Development files for the GNOME XML library
ii libxml2-utils 2.6.32.dfsg-5+lenny2
XML utilities
ii python-libxml2 2.6.32.dfsg-5+lenny2
Python bindings for the GNOME XML library
ii wv 1.2.4-2+b1
Programs for accessing Microsoft Word docume
ii zlib1g 1:1.2.3.3.dfsg-12
compression library - runtime
ii zlib1g-dev 1:1.2.3.3.dfsg-12
compression library - development
---
Aras Ergus