AW: [Trac] Re: Add diff renderer?

2009-01-26 Thread Peter Körner

TortoiseSVN can call Word, Excel and Powerpoint with some commandline-options 
and two filenames, so that it displays a diff between these two files. 
Unfortunately I don't see a way to embed this into a web-application (except 
probably through ActiveX in IE). Maybe it could be done by a Firefox-Plugin?

Peter

-Ursprüngliche Nachricht-
Von: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] Im 
Auftrag von Eirik Schwenke
Gesendet: Freitag, 23. Januar 2009 18:33
An: trac-users@googlegroups.com
Betreff: [Trac] Re: Add diff renderer?


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Hammel skrev 07. jan. 2009 16:20:
 On Tue, Jan 06, 2009 at 11:49:21PM -0800, Noah Kantrowitz wrote:
 I don't know of any libraries or other ways to parse Word documents, 
 so no. If you are running on Windows and server has Word installed, 
 you might be able to rig something up with COM (via the win32com 
 module), but this isn't enough of a general case to bother IMO. All 
 the new Office 2007 files are just zipped XML I think, so you might 
 be able to make an HTML converter for that. Not a small task though.

 --Noah
 
 There is also antiword
 
 http://www.winfield.demon.nl/
 
 This could be made into a plugin.  Or I have heard rumors that OpenOffice can 
 be driven computationally...somehow.  I avoid word documents like the plague 
 but realize this is a luxury that not everyone has.
 
 Jeff

Note: None of the following is a solution to the problem, just some notes on 
alternate solutions;


There is also catdoc (and xls2csv):

  http://vitus.wagner.pp.ru/software/catdoc/

For simple text documents, the strings-command also works nicely. That couldn't 
be too hard to reimplement in python, (for easier portability to win32 -- I 
believe OS X already has a strings command).

However, as Noah says, even if a plugin was was made based on that, I don't 
think the results would've been very good.

A better alternative might be to turn on change-control in word/office.


After a bit of googling, it turns out the tortoise svn project has it's own 
diff/merge tools, from http://tortoisesvn.net/downloads:

 Our diff/merge tools TortoiseMerge (for text file diffs and merges),
  TortoiseIDiff (for diffing image files) are zipped into one package, and
  SubWCRev is also available.

The sf-page only lists the binaries, but the code can be found at:

http://gu...@tortoisesvn.tigris.org/svn/tortoisesvn/

I don't think the ImageDiff referenced over is of much interest, but apparently 
TortoiseSvn uses a couple of javascripts to diff doc and docx files:

http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/contrib/other/diff-scripts/

I'm afraid I don't see any useful way this could be integrated to standard trac
- -- I guess my recommendation would be to use tortoise svn against the 
repository trac uses.



For anyone wanting to make a win-only/requires word plugin for trac, the 
following link might be useful:

http://nicolas.lehuen.com/index.php/post/2005/06/30/60-comparing-microsoft-word-documents-stored-in-a-subversion-repository


Also, while I have no experience with it myself, Diff doc migh also be of 
help:

  http://www.softinterface.com/MD\Document-Comparison-Software.htm

(This would be similar to comparing the documents within word, though, not in 
the web front-end).


Still, apart from policy, the only times it makes sense to use a rich format 
(be it open document, rtf, pdf, word or even html) for documentation, is when 
the content is in fact multimedia -- tables or images/figures adds something to 
the document that cannot easily be gleaned from a docbook/tex/structured text 
file.

Then you really would need a diff-tool that understands the format in order 
to get meaningful diffs.


See also:

http://blogs.msdn.com/buckh/archive/2005/11/28/497556.aspx
http://www-verimag.imag.fr/~moy/opendocument/


Best regards,

- --
 .---.  Eirik Schwenke eirik.schwe...@nsd.uib.no
( NSD ) Harald Hårfagresgate 29Rom 150
 '---'  N-5007 Bergentlf: (555) 889 13

  GPG-key at pgp.mit.edu  Id 0x8AA3392C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl5/1cACgkQxUW7FIqjOSyByQCeMU7OGGOkQgm6umn0pERvTCxY
FIoAoJyPaICFFukBud65RRy5n3KRHWHb
=qtUq
-END PGP SIGNATURE-



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Add diff renderer?

2009-01-23 Thread Eirik Schwenke

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeff Hammel skrev 07. jan. 2009 16:20:
 On Tue, Jan 06, 2009 at 11:49:21PM -0800, Noah Kantrowitz wrote:
 I don't know of any libraries or other ways to parse Word documents,  
 so no. If you are running on Windows and server has Word installed,  
 you might be able to rig something up with COM (via the win32com  
 module), but this isn't enough of a general case to bother IMO. All  
 the new Office 2007 files are just zipped XML I think, so you might be  
 able to make an HTML converter for that. Not a small task though.

 --Noah
 
 There is also antiword 
 
 http://www.winfield.demon.nl/
 
 This could be made into a plugin.  Or I have heard rumors that OpenOffice can 
 be driven computationally...somehow.  I avoid word documents like the plague 
 but realize this is a luxury that not everyone has.
 
 Jeff

Note: None of the following is a solution to the problem, just some notes on
alternate solutions;


There is also catdoc (and xls2csv):

  http://vitus.wagner.pp.ru/software/catdoc/

For simple text documents, the strings-command also works nicely. That couldn't
be too hard to reimplement in python, (for easier portability to win32 -- I
believe OS X already has a strings command).

However, as Noah says, even if a plugin was was made based on that, I don't
think the results would've been very good.

A better alternative might be to turn on change-control in word/office.


After a bit of googling, it turns out the tortoise svn project has it's own
diff/merge tools, from http://tortoisesvn.net/downloads:

 Our diff/merge tools TortoiseMerge (for text file diffs and merges),
  TortoiseIDiff (for diffing image files) are zipped into one package, and
  SubWCRev is also available.

The sf-page only lists the binaries, but the code can be found at:

http://gu...@tortoisesvn.tigris.org/svn/tortoisesvn/

I don't think the ImageDiff referenced over is of much interest, but apparently
TortoiseSvn uses a couple of javascripts to diff doc and docx files:

http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/contrib/other/diff-scripts/

I'm afraid I don't see any useful way this could be integrated to standard trac
- -- I guess my recommendation would be to use tortoise svn against the
repository trac uses.



For anyone wanting to make a win-only/requires word plugin for trac, the
following link might be useful:

http://nicolas.lehuen.com/index.php/post/2005/06/30/60-comparing-microsoft-word-documents-stored-in-a-subversion-repository


Also, while I have no experience with it myself, Diff doc migh also be of 
help:

  http://www.softinterface.com/MD\Document-Comparison-Software.htm

(This would be similar to comparing the documents within word, though, not in
the web front-end).


Still, apart from policy, the only times it makes sense to use a rich format
(be it open document, rtf, pdf, word or even html) for documentation, is when
the content is in fact multimedia -- tables or images/figures adds something to
the document that cannot easily be gleaned from a docbook/tex/structured text 
file.

Then you really would need a diff-tool that understands the format in order
to get meaningful diffs.


See also:

http://blogs.msdn.com/buckh/archive/2005/11/28/497556.aspx
http://www-verimag.imag.fr/~moy/opendocument/


Best regards,

- --
 .---.  Eirik Schwenke eirik.schwe...@nsd.uib.no
( NSD ) Harald Hårfagresgate 29Rom 150
 '---'  N-5007 Bergentlf: (555) 889 13

  GPG-key at pgp.mit.edu  Id 0x8AA3392C
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl5/1cACgkQxUW7FIqjOSyByQCeMU7OGGOkQgm6umn0pERvTCxY
FIoAoJyPaICFFukBud65RRy5n3KRHWHb
=qtUq
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Add diff renderer?

2009-01-07 Thread Jeff Hammel

On Tue, Jan 06, 2009 at 11:49:21PM -0800, Noah Kantrowitz wrote:
 
 I don't know of any libraries or other ways to parse Word documents,  
 so no. If you are running on Windows and server has Word installed,  
 you might be able to rig something up with COM (via the win32com  
 module), but this isn't enough of a general case to bother IMO. All  
 the new Office 2007 files are just zipped XML I think, so you might be  
 able to make an HTML converter for that. Not a small task though.
 
 --Noah

There is also antiword 

http://www.winfield.demon.nl/

This could be made into a plugin.  Or I have heard rumors that OpenOffice can 
be driven computationally...somehow.  I avoid word documents like the plague 
but realize this is a luxury that not everyone has.

Jeff
 
 On Jan 6, 2009, at 7:11 PM, VeChen wrote:
 
 
  Well,is there a trac's plug-in to show the content of .doc files in
  website? I could't find it on http://trac-hacks.org/
 
  On 1月7日, 上午10时44分, Noah  
  Kantrowitz n...@coderanger.net wrote:
  Those files aren't diff'd since they contain a lot of useless  
  markup and
  such, and a diff wouldn't really be that helpful. If you set the
  svn:mimetype property to something like text/plain, Trac will at  
  least try,
  but I don't think you will like the results.
 
  --Noah
 
 
 
  -Original Message-
  From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com 
  ]
  On Behalf Of VeChen
  Sent: Tuesday, January 06, 2009 6:25 PM
  To: Trac Users
  Subject: [Trac] Add diff renderer?
 
  Hi all
 
  I used SVN singly ever and it can dispaly diffs (such as
  word,excel,ppt etc.) in website via ViewVC (compiled by python)
  While useing Trac ,it can only show txt or programing language files
  in website. How could I do if I wanna to see diffs about files as
  word,excel,ppt via browser.
  I searched for plug-ins and find TracExcelViewer who shows excel  
  in a
  peculiar way,it is still inefficient on showing diffs.Is there  
  someone
  give me a hand or some suggests.
 
  Thanks
 
  VeSion- 隐藏被引用文字 -
 
  - 显示引用的文字 -
 
  
 
 
  

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Add diff renderer?

2009-01-06 Thread Noah Kantrowitz

Those files aren't diff'd since they contain a lot of useless markup and
such, and a diff wouldn't really be that helpful. If you set the
svn:mimetype property to something like text/plain, Trac will at least try,
but I don't think you will like the results.

--Noah

 -Original Message-
 From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com]
 On Behalf Of VeChen
 Sent: Tuesday, January 06, 2009 6:25 PM
 To: Trac Users
 Subject: [Trac] Add diff renderer?
 
 
 Hi all
 
 I used SVN singly ever and it can dispaly diffs (such as
 word,excel,ppt etc.) in website via ViewVC (compiled by python)
 While useing Trac ,it can only show txt or programing language files
 in website. How could I do if I wanna to see diffs about files as
 word,excel,ppt via browser.
 I searched for plug-ins and find TracExcelViewer who shows excel in a
 peculiar way,it is still inefficient on showing diffs.Is there someone
 give me a hand or some suggests.
 
 Thanks
 
 VeSion
 
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Add diff renderer?

2009-01-06 Thread VeChen

Well,is there a trac's plug-in to show the content of .doc files in
website? I could't find it on http://trac-hacks.org/

On 1月7日, 上午10时44分, Noah Kantrowitz n...@coderanger.net wrote:
 Those files aren't diff'd since they contain a lot of useless markup and
 such, and a diff wouldn't really be that helpful. If you set the
 svn:mimetype property to something like text/plain, Trac will at least try,
 but I don't think you will like the results.

 --Noah



  -Original Message-
  From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com]
  On Behalf Of VeChen
  Sent: Tuesday, January 06, 2009 6:25 PM
  To: Trac Users
  Subject: [Trac] Add diff renderer?

  Hi all

  I used SVN singly ever and it can dispaly diffs (such as
  word,excel,ppt etc.) in website via ViewVC (compiled by python)
  While useing Trac ,it can only show txt or programing language files
  in website. How could I do if I wanna to see diffs about files as
  word,excel,ppt via browser.
  I searched for plug-ins and find TracExcelViewer who shows excel in a
  peculiar way,it is still inefficient on showing diffs.Is there someone
  give me a hand or some suggests.

  Thanks

  VeSion- 隐藏被引用文字 -

 - 显示引用的文字 -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: Add diff renderer?

2009-01-06 Thread Noah Kantrowitz

I don't know of any libraries or other ways to parse Word documents,  
so no. If you are running on Windows and server has Word installed,  
you might be able to rig something up with COM (via the win32com  
module), but this isn't enough of a general case to bother IMO. All  
the new Office 2007 files are just zipped XML I think, so you might be  
able to make an HTML converter for that. Not a small task though.

--Noah

On Jan 6, 2009, at 7:11 PM, VeChen wrote:


 Well,is there a trac's plug-in to show the content of .doc files in
 website? I could't find it on http://trac-hacks.org/

 On 1月7日, 上午10时44分, Noah  
 Kantrowitz n...@coderanger.net wrote:
 Those files aren't diff'd since they contain a lot of useless  
 markup and
 such, and a diff wouldn't really be that helpful. If you set the
 svn:mimetype property to something like text/plain, Trac will at  
 least try,
 but I don't think you will like the results.

 --Noah



 -Original Message-
 From: trac-users@googlegroups.com [mailto:trac-users@googlegroups.com 
 ]
 On Behalf Of VeChen
 Sent: Tuesday, January 06, 2009 6:25 PM
 To: Trac Users
 Subject: [Trac] Add diff renderer?

 Hi all

 I used SVN singly ever and it can dispaly diffs (such as
 word,excel,ppt etc.) in website via ViewVC (compiled by python)
 While useing Trac ,it can only show txt or programing language files
 in website. How could I do if I wanna to see diffs about files as
 word,excel,ppt via browser.
 I searched for plug-ins and find TracExcelViewer who shows excel  
 in a
 peculiar way,it is still inefficient on showing diffs.Is there  
 someone
 give me a hand or some suggests.

 Thanks

 VeSion- 隐藏被引用文字 -

 - 显示引用的文字 -

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---