-----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 29 Rom 150 '---' N-5007 Bergen tlf: (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 -~----------~----~----~----~------~----~------~--~---