Hello,

I have developed the extension PicoSvoxOOo. This extension enables text reading with the Pico TTS. Here are the links :

http://lirecouleur.arkaline.fr/2013/11/11/picosvoxooo/ (french only)

http://extensions.openoffice.org/de/node/17608

The extension seems to be ok for Linux (provided that the Pico Svox package is installed) and Windows. When using Windows and AOO4, the extension doesn't work.

In order to be more specific about the problem, I joined is a very short script that may be run as a macro. It produces an error (see the joined picture) on the "import ctypes" line. This error occurs exclusively with Apache OpenOffice 4.x on Windows.

I don't understand how to solve this problem. Unfortunately, the Pico TTS comes as a DLL on Windows and the ctypes module is required in that case.

Could you help me to make this extension available on Windows and AOO 4.x?

Regards.

Marie
import ctypes

def ImportCtypesPython( ):
    """Prints 'Hello World - CTypes imported' into the current document"""

    model = XSCRIPTCONTEXT.getDocument()
    text = model.Text
    tRange = text.End
    tRange.String = "Hello World - CTypes imported"
    return None

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to