On Thu, Nov 3, 2011 at 12:08 PM, Edward K. Ream <[email protected]> wrote: > On Thu, Nov 3, 2011 at 10:49 AM, Josef <[email protected]> wrote:
>> when I try to run the rst3 command on a line like: @rst foo.pdf I get: > Happens with the present code as well. I'll investigate soon. Fixed on the trunk at rev 4720. I had forgotten I was responsible (2005) for the initial port of Engelbert Gruber's code for the rst3 plugin, presumably because I didn't spend much time on it. Six years from now I may well have forgotten all about today's work... I tested the code using Python 2.6, because that was all that was available from the open source download page of reportlab: http://www.reportlab.com/ftp/ As noted below, I copied code from stylesheet.py, obtained from: # http://docutils.sourceforge.net/sandbox/dreamcatcher/rlpdf/ Please read the checkin log in the Post Script carefully. There is not now, nor has there ever been, a great deal of support for the module. If you want enhancements you would be well advised to develop them yourself. Edward P.S. Here is the checkin log: QQQQQ Updated leoRst code to handle revised leo_pdf.py module. Trivial test passes, but there are no promises. Here is the updated version history from leopdf.py: 1.0 EKR 2011/11/03: - Various changes to come accomodate docutils changes. - Added dummy Reporter class for use by get_language. - I suspect this should be logger class, but I don't much care. - Incorporate getStyleSheet from stylesheet.py, obtained from: http://docutils.sourceforge.net/sandbox/dreamcatcher/rlpdf/ Note: passing writer_name = leo.plugins.leo_pdf to docutils does not work, presumably because __import__('leo.plugins.leo_pdf') returns the *leo* module, and docutils seems not to be aware of this fact. As a workaround, the new rst3 code passes writer = Writer() (an instance) instead. QQQQQ EKR -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
