Ticket #761 (closed enhancement: fixed)

Opened 9 years ago

Last modified 9 years ago

windows_scripting for docx with Office/Word when no OpenOffice

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: Collection building wishlist
Component: Collection Building Severity: major
Keywords: Cc:


Prof Witten suggested that being able to convert docx files when you have Word (2007+) installed on your machine (which has its own converters, so you don't have to have OpenOffice?) should be possible. It's certainly desirable.

Change History

Changed 9 years ago by ak19

Thanks to Veronica finding a very useful VBScript which did most of what we want, we now have this working.

2 sets of commits:

- http://trac.greenstone.org/changeset/24164

Which introduces the docx2html.vbs script. This has tweaks to make it work with gsConvert.pl. gsConvert.pl was also updated to make use of it when dealing with docx documents upon windows_scripting being turned on.

- http://trac.greenstone.org/changeset/24166

Which does error handling when you don't have Word installed but have windows_scripting on and are working with a docx file. The errors are reported to STDERR which is as gsConvert.pl likes it. (Such error handling is not there in the word2html.exe that's always been used: it produces an error popup. I don't have the code to modify it. Besides, turning off windows_scripting when you don't have Office/Word will make it go away).

Next to updating docx2html.vbs and gsConvert.pl to handle such common errors (including also wrong usage of the script and missing input file), WordPlugin? now includes docx in its default process_expression, thus accepting this filetype by default.

Changed 9 years ago by ak19

  • status changed from new to assigned

Changed 9 years ago by ak19

  • status changed from assigned to closed
  • resolution set to fixed

Changed 9 years ago by ak19

Already opened a ticket for this at http://trac.greenstone.org/ticket/758 (which had some older ideas on how to go about the problem)

Note: See TracTickets for help on using tickets.