[reportlab-users] new paragraph supporting hyperlinking, embedded lists, etcetera
Aaron Watters
reportlab-users@reportlab.com
Mon, 09 Sep 2002 11:54:07 -0400
Doug wrote:
> Aaron's mysterious
>paragraph.py would be more immediately useful
>to me.
>
Your wish is my command. Please still consider it experimental.
I just checked in reportlab.platypus.para and reportlab.lib.radxml
(support file).
Please see the reportlab.platypus.para for minimal documentation and
the para.py script interpretation for a simple test of the features.
This was originally designed as a tightly integrated component of
rml2pdf, and I think I removed all the dependancies, but I might
be wrong.
Hope you like. -- Aaron Watters
ps: here are the new tags
- Unnumberred lists (ala html):
<ul>
<li>first one</li>
<li>second one</li>
</ul>
Also <ul type="disc"> (default) or <ul type="circle">, <ul type="square">.
- Numberred lists (ala html):
<ol>
<li>first one</li>
<li>second one</li>
</ol>
Also <ul type="1"> (default) or <ul type="a">, <ul type="A">.
- Display lists (ala HTML):
For example
<dl bulletFontName="Helvetica-BoldOblique" spaceBefore="10" spaceAfter="10">
<dt>frogs</dt> <dd>Little green slimy things. Delicious with
<b>garlic</b></dd>
<dt>kittens</dt> <dd>cute, furry, not edible</dd>
<dt>bunnies</dt> <dd>cute, furry,. Delicious with <b>garlic</b></dd>
</dl>
ALSO the following additional internal paragraph markup tags are supported
<u>underlined text</u>
<a href="http://www.reportlab.com">hyperlinked text</a>
<a href="http://www.reportlab.com" color="blue">hyperlinked text</a>
<link destination="end" >Go to the end (go to document internal
destination)</link>
<link destination="start" color="cyan">Go to the beginning</link>
<setLink destination="start" color="magenta">This is the document start
(define document destination inside paragraph, color is
optional)</setLink>