[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] Re: 1.2.2 and diff-ing Word files

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2005-09-22 17:45:29 CEST

Ronny Voelker wrote:
> Kalin KOZHUHAROV <kalin <at> thinrope.net> writes:
>
>>Rainer Müller wrote:
>>
>>>Kalin KOZHUHAROV wrote:
>>>
>>>
>>>>I just "discovered" that one can diff Word files, but unfortunately
>>>>not very well now.
>>>>If I try to see a diff between two versions (say right-click from
>>>>the Log dialog), they are aparently loaded, compared, the results
>>>>shown on the screen for a few miliseconds and then the two files are
>>>>closed.
>>>>Is there a quick fix/workaround for this or we have to wait for
>>>>better ideas?
>>>
>
>>The application itself stays open, but there are no open files.
>
>>To spice the things up I use a Japanese Word 2000 (9.0.2812) ...
>
> I use a German Word 2000 and a German Word XP and I think, I've found the cause
> of this problem:

Cool! Is this speciffic to l10n-ed verisons only? What about English Word 2K vs. XP?

> There is a change in the behaviour of the Document.Change method between Word
> 2000 and Word XP.
> Word XP (by default) creates a new document, which contains the result of the
> diffing.
> Word 2000 instead incorporates change markers directly into the base document.
> The base document in diff-doc.vbs is 'destination' - and 'destination' is
> closed at the end of the script. That means, that with Word 2000 the document
> containing the result of the diff is closed.
>
> So, if I remove the line 'destination.Close' from diff-doc.vbs, the script works
> with my Word 2000 (but does no longer work with Word XP).
Ok, that is a start.

Is there a way to distinguish (from the script) between these two versions?
Then a simple if-then-else patch will solve the problem.
Anybody?
(VB is not my strong language, you see)

> Btw. in Word XP Document.Change has some additional (optional) arguments. One of
> this arguments (CompareTarget) defines whether a new document is created or not.
> But the documentation seems to lie about its default value ;).
Typical [that company] approach. I remember trying to make use of the MAPI in [that os] some 10
years ago for something and it would never work. Funny to know their own e-mail application (MTA)
does NOT use it!

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Sep 22 17:47:20 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.