[dev] openoffice and svn.

2006-01-15 Thread James Courtier-Dutton

Hi,

Has anyone tried using svn(subversion) to store openoffice documents?
If oowriter2 could be integrated with svn, one could turn openoffice 
into a distributed document writing tool. This would be a major 
advantage over using MS Word.


I tried unziping the .odt and storing those files in svn, but the diff 
is not ideal, as the entire document appears to be on one line according 
to diff.


Any comments?

James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] openoffice and svn.

2006-01-15 Thread Daniel Naber
On Sonntag 15 Januar 2006 13:39, James Courtier-Dutton wrote:

> I tried unziping the .odt and storing those files in svn, but the diff
> is not ideal, as the entire document appears to be on one line according
> to diff.

You can turn off Load/Save -> General -> "Size optimization forXML format" 
for better readable format. Anyway, a line-based diff doesn't really make 
sense for XML.

SVN integration could/should also happen on a different level, like this:  
a virtual disk that looks like any other storage media but which 
internally stored things in SVN. Not sure if such a thing already exists.

Regards
 Daniel

-- 
http://www.danielnaber.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] openoffice and svn.

2006-01-15 Thread James Courtier-Dutton

Daniel Naber wrote:

On Sonntag 15 Januar 2006 13:39, James Courtier-Dutton wrote:


I tried unziping the .odt and storing those files in svn, but the diff
is not ideal, as the entire document appears to be on one line according
to diff.


You can turn off Load/Save -> General -> "Size optimization forXML format" 
for better readable format. Anyway, a line-based diff doesn't really make 
sense for XML.


SVN integration could/should also happen on a different level, like this:  
a virtual disk that looks like any other storage media but which 
internally stored things in SVN. Not sure if such a thing already exists.


Thank you for that. It is much more suited for line based diff with that 
optimization turned off.
The reason I would like open office to integrate better with svn is 
because then open office would be able to handle svn commit conflicts 
better, and also be able to use redlining to highlight changes between 
different versions of the document in the svn repository.


If SVN was just a file system, open office would not be able to support 
the above features.


But, at least with the "Size optimization forXML format" disabled, only 
the real changes are placed in the svn repository, which is a start.


James



James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] openoffice and svn.

2006-01-15 Thread Daniel Naber
On Sonntag 15 Januar 2006 15:59, James Courtier-Dutton wrote:

> The reason I would like open office to integrate better with svn is
> because then open office would be able to handle svn commit conflicts
> better, and also be able to use redlining to highlight changes between
> different versions of the document in the svn repository.

The "svn file system" could also provide access to old versions, for 
example like this: if a file is named foo.odt, there could be a directory 
"foo.odt-versions" which contains all versions ever checked in, named by 
their id. Of course OOo would then need to know about that. But still 
better than adding SVN support to every program that might ever want to 
use it.

Regards
 Daniel

-- 
http://www.danielnaber.de

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] GPLv3

2006-01-15 Thread Louis Suarez-Potts

please respond on dev@openoffice.org

Hi *,

I'm here at MIT in Boston representing OOo at the GPLv3 meeting and  
I'd like for the NLC leads and developers on dev@openoffice.org to  
tell me what you are interested in.  Yes, OOo uses LGPL but that's  
not at issue here.  Let me know on the [EMAIL PROTECTED] list what is important  
to your communities and to you regarding the GPL and what changes  
should be made to make it better.


The summit lasts until Tuesday of this week but the discussion period  
will be fairly long afterward.  The issues that I am interested in  
are coincidentally the obvious ones:


* patents
* internationalization

Other issues include services, DRM, and better compatibility with non- 
free licenses.


Best,

Louis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] openoffice and svn.

2006-01-15 Thread Mathias Bauer
James Courtier-Dutton wrote:

> Hi,
> 
> Has anyone tried using svn(subversion) to store openoffice documents?
> If oowriter2 could be integrated with svn, one could turn openoffice 
> into a distributed document writing tool. This would be a major 
> advantage over using MS Word.
> 
> I tried unziping the .odt and storing those files in svn, but the diff 
> is not ideal, as the entire document appears to be on one line according 
> to diff.
> 
> Any comments?

I already thought about that (stimulated by a discussion on the 2004
OOoCon in Berlin) and I think it's possible if you mean that svn shall
reflect the internal ZIP hierarchy so that every document becomes a
folder in svn containing files and sub folders for the document content.

IIRC svn allows to access it through WebDAV, so the "only" thing we need
is to exchange the component implementing the com.sun.star.embed.Storage
service that stores the content of documents into a ZIP package by
providing a hierarchical file system like view to it by another service
that stores to a location represented by a UCB content. Such a service
already exists in OOo, it is currently only used to store UI
configuration files to the local file system or into a document by the
same API, but it will also work if you let it access a WebDAV or FTP
resource (everything that can be acessed by a UCP and is able to provide
files and folders).

If this "unpacked" storing is done to a WebDAV folder working on top of
a directory in svn you will get a directory in svn for each document you
save, containing all streams inside the package as a file. I don't know
how good the WebDAV support of svn is, at least it must be possible to
create sub folders because OOo documents contain them.

Another way would be to write another new OOo service implementing the
com.sun.star.embed.Storage service where svn is accessed directly to
fulfill the service contract.

By using a configuration setting or function parameter to use this new
service (or the above mentioned UCB based storage) instead of the
"regular" one that stores into a ZIP package you can directly store to svn.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]