import generic doc on OSX

Bug #1165905 reported by matysek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
New
Wishlist
Unassigned

Bug Description

On Mac OS X it is not possible to import a song from 'Generic Document/Presentation'.

OpenLP is not able to find libre/open offfice on osx and use it for the document conversion and import.

Tags: osx
Revision history for this message
matysek (mzibricky) wrote :

For implementation we could consider call Java api of libreoffice with python. For that we could consider the following python package:

https://pypi.python.org/pypi/py4j

Revision history for this message
matysek (mzibricky) wrote :

Probably better and crossplatform way would be to use unoconv ( https://github.com/dagwieers/unoconv )

- Unoconv is is a python script that should be run as terminal app with the python bundled with libre/openoffice.
- we could use 'unoconv' in openlp to find the openoffice installation then run the conversion in a subprocess like

    C:\Program Files (x86)\LibreOffice 3.5\program\python.exe unoconv -f pdf some-file.odt

Python script unoconv: https://github.com/dagwieers/unoconv/blob/master/unoconv

Revision history for this message
Jonathan Corwin (j-corwin) wrote :

So we'd convert it to a plain text file and then import that?

This would be OK for the generic doc/ppt as long as page breaks/slide breaks can be detected in the output file somehow.

However the "Songs of Fellowship" import relies on knowing where bold/italics/breaks are etc to figure out where verses/choruses are etc so this would still have difficulties. Although if there are any decent RTF parsers out there then someone really brave could go down that route.

Phill (phill-ridout)
Changed in openlp:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.