/usr/share/doc/python-simpleparse-doc/doc/pydoc/simpleparse.examples.formatvrml.html is in python-simpleparse-doc 2.1.0a1-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module simpleparse.examples.formatvrml</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="simpleparse.html"><font color="#ffffff">simpleparse</font></a>.<a href="simpleparse.examples.html"><font color="#ffffff">examples</font></a>.formatvrml</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/mcfletch/pylive/simpleparse/examples/formatvrml.py">/home/mcfletch/pylive/simpleparse/examples/formatvrml.py</a></font></td></tr></table>
<p><tt>Example using a parser to format VRML97 code as HTML w/CSS</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="string.html">string</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="simpleparse.examples.formatvrml.html#VRMLFormatter">VRMLFormatter</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="simpleparse.examples.formatvrml.html#HTMLVRMLFormatter">HTMLVRMLFormatter</a>
</font></dt></dl>
</dd>
</dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="HTMLVRMLFormatter">class <strong>HTMLVRMLFormatter</strong></a>(<a href="simpleparse.examples.formatvrml.html#VRMLFormatter">VRMLFormatter</a>)</font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Format VRML files for display in HTML<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Data and other attributes defined here:<br>
<dl><dt><strong>NODEMAP</strong> = {'DEF': '<%(head)sstrong>', 'DEFName': '<span class="%(nodetype)s">', 'DEFName_tail': '</span>', 'EXTERNPROTO': '<span class="%(nodetype)s">', 'EXTERNPROTO_tail': '</span>', 'PROTO': '<span class="%(nodetype)s">', 'PROTO_tail': '</span>', 'ROUTEData': '<strong class="%(nodetype)s">', 'ROUTEData_tail': '</span>', 'SFString': '<span class="%(nodetype)s">', ...}</dl>
<hr>
Methods inherited from <a href="simpleparse.examples.formatvrml.html#VRMLFormatter">VRMLFormatter</a>:<br>
<dl><dt><a name="HTMLVRMLFormatter-__init__"><strong>__init__</strong></a>(self, infile, vrmlparser<font color="#909090">=<simpleparse.parser.Parser instance></font>)</dt></dl>
<dl><dt><a name="HTMLVRMLFormatter-format"><strong>format</strong></a>(self, outfile)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="VRMLFormatter">class <strong>VRMLFormatter</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>Base formatting class<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="VRMLFormatter-__init__"><strong>__init__</strong></a>(self, infile, vrmlparser<font color="#909090">=<simpleparse.parser.Parser instance></font>)</dt></dl>
<dl><dt><a name="VRMLFormatter-format"><strong>format</strong></a>(self, outfile)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>VRMLPARSERDEF</strong> = '<font color="#c040c0">\n</font># Specialised VRML parser for colourising VRML ... := ( [ <font color="#c040c0">\\</font>011-<font color="#c040c0">\\</font>015,]+ / comment+ )*<font color="#c040c0">\n</font>'<br>
<strong>usage</strong> = "formatvrml.py infile outfile<font color="#c040c0">\n\t</font>infile -- properly... your<font color="#c040c0">\n\t</font>VRML by changing this file's definitions.<font color="#c040c0">\n</font>"<br>
<strong>vrmlparser</strong> = <simpleparse.parser.Parser instance></td></tr></table>
</body></html>
|