Mathias Bauer wrote:
Oliver Goodman wrote:
Hi,
Another person here who would like to be able to use OpenOffice with
version control tools like subversion (without requiring strict file
locking as we do at present). I thought it would not be a big deal to
do the following:
Write python script to unzip .odt file and pretty-print the xml
components (so that they are multi-line and suitable for feeding to
"diff" and the like). Store all odt documents as directories rather
than individual files. To edit, re-zip (and de-prettify), edit and
then
unzip again. Then store the directory tree rather than the zipped .odt
file in our version control system. Most of this can be automated.
You know that you can enable "pretty printing" in the OOo options?
It would also be possible to store files into a folder (instead of a
package file) directly from OOo using its API though it would need some
development work.
Thanks, I didn't know about the pretty printing option.
Unfortunately the effect of making a one word change to the text of a
document is to change the content.xml component in many different
places (some cross-referencing tags by the look of it). Small changes
made independently to two copies of a document immediately cause
conflicts when one attempts to merge them.. widespread conflicts which
would be an utter waste of time to attempt to fix by hand.
Hm, I doubt that this statement is true in general. Can you give an
example for merge conflicts caused by simple changes?
It appears that indeed my statement is not true in general.
(Just happened to be true for the first document I tried it on!)
The problem with showing you the example I tried it on is that the
document is commercial in confidence. The diffs are included
in the link below. (It might be immediately clear to you what the
cause of the widespread changes is even without seeing the
original document.)
I tried grabbing a publicly available .odt file to test with but when
I made a change to the text of one paragraph very little in content.txt
besides the paragraph itself changed.
See: http://mac0678.ms.unimelb.edu.au/~oag/doctest.tgz
Cheers,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]