Did you look in meta.xml?
<?xml version="1.0" encoding="UTF-8"?>
<office:document-meta
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office: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:ooo="http://openoffice.org/2004/office" office:version="1.0">
<office:meta>
<meta:generator>OpenOffice.org/2.3$Linux
OpenOffice.org_project/680m5$Build-9221</meta:generator>
<meta:initial-creator>Andrew Pitonyak</meta:initial-creator>
<meta:creation-date>2007-09-24T22:14:02</meta:creation-date>
<dc:creator>Andrew Pitonyak</dc:creator>
<dc:date>2007-09-26T23:19:39</dc:date>
<meta:editing-cycles>1</meta:editing-cycles>
<meta:editing-duration>P2DT1H5M37S</meta:editing-duration>
<meta:user-defined meta:name="Info 1"/><meta:user-defined
meta:name="Info 2"/>
<meta:user-defined meta:name="Info 3"/><meta:user-defined
meta:name="Info 4"/>
<meta:document-statistic meta:table-count="0" meta:image-count="0"
meta:object-count="0" meta:page-count="1" meta:paragraph-count="1"
meta:word-count="4" meta:character-count="20"/>
</office:meta>
</office:document-meta>
Do you see meta:word-count="4" in this example?
Jim Hartley wrote:
I just found a showstopper (for me at least) in OO 2.3 and have backed
down to the OO 2.0.4 distributed with Fedora 6.
THEY CHANGED THE FORMAT OF AN ODT FILE!!! Oh, I'm sure it is still
within the standard, but ...
The 2.0.4 files had a lot of meta-data in clear readable English, and
it was easy to grab the "word-count=xxxx" field in a little shell
script. The idea was to produce an "odtwc" script that did a "wc"
(word count) for all the files in a directory, WITHOUT having to open
each file by itself in Writer and copy the word counts by hand.
In 2.3 that data is hidden away somewhere and I can't find it. I asked
on another list and someone suggested using something called "extract"
but I can't find any such program. I think I need to "extract"
meta.xml or metadata.xml or something similar. Anybody familiar with
this stuff?
Anyone able to point me in the right direction?
If I have to do some programming that's OK. The key is to be able to
type one simple command and get a list of all the odt files in the
directory with word counts.
Jim Hartley
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info: http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]