Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
substitute for ssconvert from gnumeric
#1
Hello,

is there any possibility to use other tools than ssconvert from gnumeric to extract plain text from Excel-spreadsheet to feed the indexer ? I just ask, because installing gnumeric requires to install gnome - or at least a lot of libraries it depends on . I´d like to avoid the arising "dependency hell" on a production server.

VG
Alex
Reply
#2
(07-19-2012, 04:59 PM)AlSchedl Wrote: Hello,

is there any possibility to use other tools than ssconvert from gnumeric to extract plain text from Excel-spreadsheet to feed the indexer ? I just ask, because installing gnumeric requires to install gnome - or at least a lot of libraries it depends on . I´d like to avoid the arising "dependency hell" on a production server.

You could try xls2csv instead, but letodms 3.3.x doesn't allow to configure the converters. You have to modify the source code.

3.4.0 will have configuration options to set converters for all mimetypes.

Uwe
Reply
#3
Hello steimn,
thanks for your quick answer.
I changed Line 34 of /Lucene/IndexedDocument.php on from
'application/vnd.ms-excel' => 'ssconvert -T Gnumeric_stfConfusedtf_csv -S %s fd://1',
to
'application/vnd.ms-excel' => 'xls2csv %s',

Anything else to modify ?

Regards,
AlSchedl


(07-19-2012, 07:48 PM)steinm Wrote:
(07-19-2012, 04:59 PM)AlSchedl Wrote: Hello,

is there any possibility to use other tools than ssconvert from gnumeric to extract plain text from Excel-spreadsheet to feed the indexer ? I just ask, because installing gnumeric requires to install gnome - or at least a lot of libraries it depends on . I´d like to avoid the arising "dependency hell" on a production server.

You could try xls2csv instead, but letodms 3.3.x doesn't allow to configure the converters. You have to modify the source code.

3.4.0 will have configuration options to set converters for all mimetypes.

Uwe

Reply
#4
(07-23-2012, 12:10 PM)AlSchedl Wrote: Hello steimn,
thanks for your quick answer.
I changed Line 34 of /Lucene/IndexedDocument.php on from
'application/vnd.ms-excel' => 'ssconvert -T Gnumeric_stfConfusedtf_csv -S %s fd://1',
to
'application/vnd.ms-excel' => 'xls2csv %s',

Anything else to modify ?

That should be it. Just try it.

Uwe
Reply


Forum Jump:


Users browsing this thread: