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

Re: keyword expansion for MS Office files

From: Ryan Bloom <rbloom_at_gmail.com>
Date: Sat, 3 May 2008 18:19:13 -0400

This feature can most likely not be implemented reliably in MS Office
binary formats. The issue is the actual office format itself.
Basically, Office doesn't store all of the text in one place, so it is
possible for a single string to be split with binary formatting
content. In most simple tests, this won't happen, but in files that
are actually edited, it can and will at some time. I have seen
strings in Office files that were split into two different substrings
with the exact same formatting. This happens when formatting is
accidentally applied to a portion of the string, and then it is
removed.

So, the easy answer is that in your tests, this will work, but it
won't ever be reliable unless svn grows to learn the office formats
(which shouldn't happen).

Putting the keywords into Office properties might be a different story.

Ryan

On Sat, May 3, 2008 at 5:09 PM, Henrik Sundberg <storangen_at_gmail.com> wrote:
> 2008/5/3 Joshua Kramer <josh_at_globalherald.net>:
>
> >
> >> Do you mean OOXML? In that case I think you are wrong. Both OOXML and
> >> ODF store zipped XML. The substitution will not work in zip-archives.
> >> I think it would be a great feature to allow key substitution in
> >> zip-archives with .od* extension.
> >
> > Hello,
> >
> > It's worth mentioning the odf-svn project. This project stores ODF files in
> > Subversion the "right" way, i.e. unzipping them and storing the resulting
> > XML files. You may be able to hack this to add the $Revision keyword...
> >
> > http://sourceforge.net/projects/odfsvn/
>
> But it's done the wrong way, IMO. It's not compatible with any other
> client than the odfsvn client.
> By giving subversion a way to automatically keep some archives in
> uncompressed form in the repository, it should be possible to use svn
> keywords in more cases.
>
> The OP was about binary word documents, but fixing the problem for
> zipped xml-documents would be good for the future.
> /$
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

-- 
Ryan Bloom
rbb_at_apache.org
rbb_at_rkbloom.net
rbloom_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-05-04 00:19:37 CEST

This is an archived mail posted to the Subversion Users mailing list.

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