[reportlab-users] reStructuredText to pythonpoint

Dave Kuhlman dkuhlman at rexx.com
Thu Sep 25 14:54:06 EDT 2008


I use Docutils quite heavily. I'd like to be able to create and
edit slides in reST (reStructureText, the input to Docutils). So,
I've created an XSLT stylesheet and a python script to do this.
There is also a batch file, which does the following:

1. Runs rst2xml.py (from Docutils) to generate XML.

2. Runs rst2pythonpoint.py to transform Docutils XML to pythonpoint
XML (uses the XSLT support in lxml).

3. Runs pythonpoint.py to generate PDF.

Currently, it works, but is limited.

If this is of interest to you or if you have suggestions, please
let me know. I can send what I've done so far.

Also, here are several comments on pythonpoint:

1. With Reportlab 2.2, in order to run pythonpoint.py, I created a
link in the pythonpoint directory to the tools directory::

$ cd tools/pythonpoint
$ ln -s ../../tools

pythonpoint needs to be able to import things from the tools
directory.

I do not believe that this is the correct way to solve this, but
it did work. Maybe there is something I'm missing about doing
some set-up.

2. pythonpoint supports bullet lists, but not enumerated/numbered
lists. Are there plans to support enumerated lists? I notice
in your documentation on pythonpoint, that there are notes about
changing and deprecating the current bullet list support. Did
that happen?

The above two points are true of both ReportLab 2.2 and the version
in the Subversion repository.

- Dave


--
Dave Kuhlman
http://www.rexx.com/~dkuhlman


More information about the reportlab-users mailing list