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

Re: Keyword expansion with .docx files

From: Marc Haisenko <haisenko_at_comdasys.com>
Date: Mon, 29 Sep 2008 15:49:58 +0200

On Monday 29 September 2008 15:01:40 Sam Barnett-Cormack wrote:
> Benjamin Smith-Mannschott wrote:
> > On Sep 29, 2008, at 03:08, Ryan Schmidt wrote:
> >>> I think the reason is that a .docx file is just a container (ZIP
> >>> file) containing XML files:
> >>> _rels
> >>> docprops
> >>> word
> >>> document.xml
> >>> ....
> >>> [Content_Types].xml
> >>>
> >>> etc.
> >>>
> >>> Exists there a way to support keyword expansion for .docx too?
> >>
> >> No. Unless the string "$Id:: $" appears in plaintext in the file,
> >> Subversion can't expand the keywords.
> >
> > And the string "Id:: $" won't appear in this case since the entries
> > of a docx zip file are compressed. Were this string, by some random
> > chance to appear in the zip file, altering it would very likely break
> > the file.
>
> While this is true, it presumably wouldn't be horrific to code a way to
> make this work - a property that allows keywords to be handled on
> *specified* files with *certain supported* compressions. Pretty simple
> pre- and post- filter. Would need to note caveats that it would break
> any automatic signatures and so on in the file, of course. I'd imagine
> it'd be *fairly* straightforward to write the generic wrapping code and
> put filters in for zip, compress, gzip and bzip2.
>
> If I had any idea about subversion internals, and any time, I'd offer to
> try to do it.
>
> Sam

Can you spell "resource bomb" ? :-)

Did you know that bzip2 can compress 1GB of null bytes down to just 785 bytes,
and that when you want to uncompress you don't know how big the result will be
until you really do uncompress ? Ask some e-mail virus scanner vendors about
that :-)

But if disabled by default and adequately documented with lots of warning
signs it could make a nice Summer Of Code project.
        Marc

-- 
Marc Haisenko
Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany
Tel.: +49 (0)89 548 433 321
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-29 15:50:30 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.