]> granicus.if.org Git - graphviz/commitdiff
Add description of SUB and SUP elements to HTML-like labels
authorerg <devnull@localhost>
Wed, 6 Apr 2011 15:28:41 +0000 (15:28 +0000)
committererg <devnull@localhost>
Wed, 6 Apr 2011 15:28:41 +0000 (15:28 +0000)
doc/info/shapes.html
doc/infosrc/html.2
doc/infosrc/html_grammar

index 2dd5374a28fa87e9281162bca1376a174a015db5..cfa9ed2454a27cf174e33a756ea3516beee3939b 100644 (file)
 <H1 align=CENTER>Node Shapes</H1>
 <HR>
 There are three main types of shapes :
-<A HREF=/content/node-shapes#polygon>polygon-based</A>,
-<A HREF=/content/node-shapes#record>record-based</A> and
-<A HREF=/content/node-shapes#epsf>user-defined</A>.
+<A HREF=shapes.html#polygon>polygon-based</A>,
+<A HREF=shapes.html#record>record-based</A> and
+<A HREF=shapes.html#epsf>user-defined</A>.
 The record-based shape has largely been superseded and greatly generalized
-by <A HREF=/content/node-shapes#html>HTML-like labels</A>. 
+by <A HREF=shapes.html#html>HTML-like labels</A>. 
 That is, instead of using <TT>shape=record</TT>, one might
 consider using <TT>shape=none</TT> and an HTML-like label.
 <P>
 The geometry and style of all node shapes are affected by
 the node attributes 
-<A HREF=/content/attrs#dfixedsize><TT>fixedsize</TT></A>, 
-<A HREF=/content/attrs#dfontname><TT>fontname</TT></A>, 
-<A HREF=/content/attrs#dfontsize><TT>fontsize</TT></A>, 
-<A HREF=/content/attrs#dheight><TT>height</TT></A>,
-<A HREF=/content/attrs#dlabel><TT>label</TT></A>, 
-<A HREF=#dstyle><TT>style</TT></A> and
-<A HREF=/content/attrs#dwidth><TT>width</TT></A>.
+<A HREF=attrs.html#d:fixedsize><TT>fixedsize</TT></A>, 
+<A HREF=attrs.html#d:fontname><TT>fontname</TT></A>, 
+<A HREF=attrs.html#d:fontsize><TT>fontsize</TT></A>, 
+<A HREF=attrs.html#d:height><TT>height</TT></A>,
+<A HREF=attrs.html#d:label><TT>label</TT></A>, 
+<A HREF=#d:style><TT>style</TT></A> and
+<A HREF=attrs.html#d:width><TT>width</TT></A>.
 
 <H2><A NAME=polygon>Polygon-based Nodes</A></H2>
 The possible polygon-based shapes are displayed below.
@@ -39,10 +39,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=oval.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dbox>box</A>
-    <TD><A NAME=dpolygon>polygon</A>
-    <TD><A NAME=dellipse>ellipse</A>
-    <TD><A NAME=doval>oval</A>
+    <TD><A NAME=d:box>box</A>
+    <TD><A NAME=d:polygon>polygon</A>
+    <TD><A NAME=d:ellipse>ellipse</A>
+    <TD><A NAME=d:oval>oval</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=circle.gif>
@@ -51,10 +51,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=triangle.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dcircle>circle</A>
-    <TD><A NAME=dpoint>point</A>
-    <TD><A NAME=degg>egg</A>
-    <TD><A NAME=dtriangle>triangle</A>
+    <TD><A NAME=d:circle>circle</A>
+    <TD><A NAME=d:point>point</A>
+    <TD><A NAME=d:egg>egg</A>
+    <TD><A NAME=d:triangle>triangle</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=plaintext.gif>
@@ -63,10 +63,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=parallelogram.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dplaintext>plaintext</A>
-    <TD><A NAME=ddiamond>diamond</A>
-    <TD><A NAME=dtrapezium>trapezium</A>
-    <TD><A NAME=dparallelogram>parallelogram</A>
+    <TD><A NAME=d:plaintext>plaintext</A>
+    <TD><A NAME=d:diamond>diamond</A>
+    <TD><A NAME=d:trapezium>trapezium</A>
+    <TD><A NAME=d:parallelogram>parallelogram</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=house.gif>
@@ -75,10 +75,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=septagon.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dhouse>house</A>
-    <TD><A NAME=dpentagon>pentagon</A>
-    <TD><A NAME=dhexagon>hexagon</A>
-    <TD><A NAME=dseptagon>septagon</A>
+    <TD><A NAME=d:house>house</A>
+    <TD><A NAME=d:pentagon>pentagon</A>
+    <TD><A NAME=d:hexagon>hexagon</A>
+    <TD><A NAME=d:septagon>septagon</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=octagon.gif>
@@ -87,10 +87,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=tripleoctagon.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=doctagon>octagon</A>
-    <TD><A NAME=ddoublecircle>doublecircle</A>
-    <TD><A NAME=ddoubleoctagon>doubleoctagon</A>
-    <TD><A NAME=dtripleoctagon>tripleoctagon</A>
+    <TD><A NAME=d:octagon>octagon</A>
+    <TD><A NAME=d:doublecircle>doublecircle</A>
+    <TD><A NAME=d:doubleoctagon>doubleoctagon</A>
+    <TD><A NAME=d:tripleoctagon>tripleoctagon</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=invtriangle.gif>
@@ -99,10 +99,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=Mdiamond.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dinvtriangle>invtriangle</A>
-    <TD><A NAME=dinvtrapezium>invtrapezium</A>
-    <TD><A NAME=dinvhouse>invhouse</A>
-    <TD><A NAME=dMdiamond>Mdiamond</A>
+    <TD><A NAME=d:invtriangle>invtriangle</A>
+    <TD><A NAME=d:invtrapezium>invtrapezium</A>
+    <TD><A NAME=d:invhouse>invhouse</A>
+    <TD><A NAME=d:Mdiamond>Mdiamond</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=Msquare.gif>
@@ -111,10 +111,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=rectangle.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dMsquare>Msquare</A>
-    <TD><A NAME=dMcircle>Mcircle</A>
-    <TD><A NAME=drect>rect</A>
-    <TD><A NAME=drectangle>rectangle</A>
+    <TD><A NAME=d:Msquare>Msquare</A>
+    <TD><A NAME=d:Mcircle>Mcircle</A>
+    <TD><A NAME=d:rect>rect</A>
+    <TD><A NAME=d:rectangle>rectangle</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=square.gif>
@@ -123,10 +123,10 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=tab.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dsquare>square</A>
-    <TD><A NAME=dnone>none</A>
-    <TD><A NAME=dnote>note</A>
-    <TD><A NAME=dtab>tab</A>
+    <TD><A NAME=d:square>square</A>
+    <TD><A NAME=d:none>none</A>
+    <TD><A NAME=d:note>note</A>
+    <TD><A NAME=d:tab>tab</A>
   </TR>
   <TR ALIGN=CENTER>
     <TD><IMG SRC=folder.gif>
@@ -134,9 +134,9 @@ The possible polygon-based shapes are displayed below.
     <TD><IMG SRC=component.gif>
   </TR>
   <TR ALIGN=CENTER>
-    <TD><A NAME=dfolder>folder</A>
-    <TD><A NAME=dbox3d>box3d</A>
-    <TD><A NAME=dcomponent>component</A>
+    <TD><A NAME=d:folder>folder</A>
+    <TD><A NAME=d:box3d>box3d</A>
+    <TD><A NAME=d:component>component</A>
   </TR>
 </TABLE>
 As the figures suggest, the shapes <TT>rect</TT> and <TT>rectangle</TT> are synonyms for <TT>box</TT>, and <TT>none</TT> is a synonym for <TT>plaintext</TT>.
@@ -147,23 +147,23 @@ appear in a filled rectangle.
 <P>
 The geometries of polygon-based shapes are also affected
 by the node attributes 
-<A HREF=/content/attrs#dregular><TT>regular</TT></A>, 
-<A HREF=/content/attrs#dperipheries><TT>peripheries</TT></A> and
-<A HREF=/content/attrs#dorientation><TT>orientation</TT></A>.
+<A HREF=attrs.html#d:regular><TT>regular</TT></A>, 
+<A HREF=attrs.html#d:peripheries><TT>peripheries</TT></A> and
+<A HREF=attrs.html#d:orientation><TT>orientation</TT></A>.
 If <TT>shape="polygon"</TT>, the attributes
-<A HREF=/content/attrs#dsides><TT>sides</TT></A>, 
-<A HREF=/content/attrs#dskew><TT>skew</TT></A> and
-<A HREF=/content/attrs#ddistortion><TT>distortion</TT></A> are also used.
+<A HREF=attrs.html#d:sides><TT>sides</TT></A>, 
+<A HREF=attrs.html#d:skew><TT>skew</TT></A> and
+<A HREF=attrs.html#d:distortion><TT>distortion</TT></A> are also used.
 If unset, they default to 4, 0.0 and 0.0, respectively.
 The point shape is special in that it is
-only affected by the <A HREF=/content/attrs#dperipheries><TT>peripheries</TT></A>, 
-<A HREF=/content/attrs#dwidth><TT>width</TT></A> and
-<A HREF=/content/attrs#dheight><TT>height</TT></A> attributes.
+only affected by the <A HREF=attrs.html#d:peripheries><TT>peripheries</TT></A>, 
+<A HREF=attrs.html#d:width><TT>width</TT></A> and
+<A HREF=attrs.html#d:height><TT>height</TT></A> attributes.
 
 <H2><A NAME=record>Record-based Nodes</A></H2>
 These are specified by shape values of "record" and "Mrecord".
 The structure of a record-based node is determined by 
-its <A HREF=/content/attrs#dlabel><TT>label</TT></A>,
+its <A HREF=attrs.html#d:label><TT>label</TT></A>,
 which has the following schema:
   <TABLE>
   <TR><TD ALIGN=right><I>rlabel</I><TD>=<TD><I>field</I> ( '|' <I>field</I> )*</TR>
@@ -176,9 +176,9 @@ so they must be escaped if you want spaces in the text.
 <P>
 The first string in <I>fieldId</I> assigns a portname to the field and can 
 be combined with the node name to indicate where to attach an edge
-to the node. (See <A HREF=/content/attrs#kportPos>portPos</A>.)
+to the node. (See <A HREF=attrs.html#k:portPos>portPos</A>.)
 The second string is used as the text for the field; it supports the usual
-<A HREF=/content/attrs#kescString>escape sequences</A> \n, \l and \r.
+<A HREF=attrs.html#k:escString>escape sequences</A> \n, \l and \r.
 <P>
 Visually, a record is a box, with fields represented by alternating
 rows of horizontal or vertical subboxes. The Mrecord shape is identical
@@ -191,7 +191,7 @@ from top to bottom and "A | { B | C } | D" will have "B" over "C", with
 "A" to the left and "D" to the right of "B" and "C".
 <P> 
 The initial orientation of a record node depends on the
-<A HREF="/content/attrs#drankdir">rankdir</A> attribute. If this attribute
+<A HREF="attrs.html#d:rankdir">rankdir</A> attribute. If this attribute
 is <TT>TB</TT> (the default) or <TT>TB</TT>, corresponding to vertical
 layouts, the top-level fields in a record are displayed horizontally.
 If, however, this attribute is <TT>LR</TT> or <TT>RL</TT>, 
@@ -224,18 +224,18 @@ If we change node <TT>struct1</TT> to have shape <TT>Mrecord</TT>,
 it then looks like:<BR>
 <IMG SRC=mrecord.gif>
 
-<H2><A NAME="dstyle">Styles for Nodes</A></H2>
-The <A HREF=/content/attrs#dstyle><TT>style</TT></A>
+<H2><A NAME="d:style">Styles for Nodes</A></H2>
+The <A HREF=attrs.html#d:style><TT>style</TT></A>
 attribute can be used to modify the appearance of a node.
 At present, there are 8 style values recognized:
 <TT>filled</TT>, <TT>invisible</TT>, <TT>diagonals</TT>, <TT>rounded</TT>.
 <TT>dashed</TT>, <TT>dotted</TT>, <TT>solid</TT> and <TT>bold</TT>.
-As usual, the value of the <A HREF=/content/attrs#dstyle><TT>style</TT></A>
+As usual, the value of the <A HREF=attrs.html#d:style><TT>style</TT></A>
 attribute can be a comma-separated list of any of these. If the
 style contains conflicts (e.g, <TT>style="dotted, solid"</TT>), the last
 attribute wins.
 <DL>
-<DT><A NAME=dfilled><TT>filled</TT>
+<DT><A NAME=d:filled><TT>filled</TT>
   <DD>This value indicates that the node's interior should be filled.
 The color used is the node's <TT>fillcolor</TT> or, if that's not defined, its
 <TT>color</TT>. For unfilled nodes, the interior of the node is transparent to
@@ -255,21 +255,21 @@ digraph G {
 yields the figure<BR>
 <IMG SRC=fill.gif>
 
-<DT><A NAME=dinvisible><TT>invisible</TT>
+<DT><A NAME=d:invisible><TT>invisible</TT>
   <DD>Setting this style causes the node not to be displayed at all.
 Note that the node is still used in laying out the graph.
 
-<DT><A NAME=ddiagonals><TT>diagonals</TT>
+<DT><A NAME=d:diagonals><TT>diagonals</TT>
   <DD>The diagonals style causes small chords to be drawn near the vertices
 of the node's polygon or, in case of circles and ellipses, two chords near
 the top and the bottom of the shape. The special node shapes
-<A HREF=#dMsquare><TT>Msquare</TT></A>,
-<A HREF=#dMcircle><TT>Mcircle</TT></A>, and
-<A HREF=#dMdiamond><TT>Mdiamond</TT></A>
+<A HREF=#d:Msquare><TT>Msquare</TT></A>,
+<A HREF=#d:Mcircle><TT>Mcircle</TT></A>, and
+<A HREF=#d:Mdiamond><TT>Mdiamond</TT></A>
 are simply an ordinary square, circle and
 diamond with the diagonals style set.
 
-<DT><A NAME=drounded><TT>rounded</TT>
+<DT><A NAME=d:rounded><TT>rounded</TT>
   <DD>The rounded style causes the polygonal corners to be smoothed.
 Note that this style also applies to record-based nodes. Indeed,
 the <TT>Mrecord</TT> shape is simply shorthand for setting this style.
@@ -290,16 +290,16 @@ digraph R {
 </XMP>
 to produce the figure<BR>
 <IMG SRC=round.gif>
-<DT><A NAME=ddashed><TT>dashed</TT>
+<DT><A NAME=d:dashed><TT>dashed</TT>
   <DD>This style causes the node's border to be drawn as a dashed line.
-<DT><A NAME=ddotted><TT>dotted</TT>
+<DT><A NAME=d:dotted><TT>dotted</TT>
   <DD>This style causes the node's border to be drawn as a dotted line.
-<DT><A NAME=dsolid><TT>solid</TT>
+<DT><A NAME=d:solid><TT>solid</TT>
   <DD>This style causes the node's border to be drawn as a solid line,
 which is the default.
-<DT><A NAME=dbold><TT>bold</TT>
+<DT><A NAME=d:bold><TT>bold</TT>
   <DD>This style causes the node's border to be drawn as a bold line.
-See also <A HREF=/content/attrs#dpenwidth>penwidth</A>.
+See also <A HREF=attrs.html#d:penwidth>penwidth</A>.
 
 </DL>
 
@@ -312,22 +312,22 @@ that are newer than mid-November 2003. In particular, it is not part
 of release 1.10.</EM>
 <P>
 If the value of a label attribute
-(<A HREF=/content/attrs#dlabel><TT>label</TT></A> for nodes, edges, clusters, and
+(<A HREF=attrs.html#d:label><TT>label</TT></A> for nodes, edges, clusters, and
 graphs, and the
-<A HREF=/content/attrs#dheadlabel><TT>headlabel</TT></A> and
-<A HREF=/content/attrs#dtaillabel><TT>taillabel</TT></A>
+<A HREF=attrs.html#d:headlabel><TT>headlabel</TT></A> and
+<A HREF=attrs.html#d:taillabel><TT>taillabel</TT></A>
 attributes of an edge) is given as an
-<A HREF=/content/dot-language#html>HTML string</A>, 
+<A HREF=lang.html#html>HTML string</A>, 
 that is, delimited by <TT>&lt;...&gt;</TT>
 rather than <TT>&quot;...&quot;</TT>,
 the label is interpreted as
 an HTML description. At their simplest, such labels
 can describe multiple lines of variously aligned text as provided by ordinary 
-<A HREF=/content/attrs#kescString>string labels</A>. More generally, the
+<A HREF=attrs.html#k:escString>string labels</A>. More generally, the
 label can specify a table similar to those provided by HTML,
 with different graphical attributes at each level.
 <P>
-As <A HREF=/content/dot-language#html>HTML strings</A> are processed like HTML input, any use of
+As <A HREF=lang.html#html>HTML strings</A> are processed like HTML input, any use of
 the &quot;, &amp;, &lt;, and &gt; characters in literal text or in attribute values
 need to be replaced by the corresponding escape sequence. For example, if you want to
 use  &amp; in an <TT>href</TT> value, this should be represented as  &amp;amp;.
@@ -343,7 +343,7 @@ HTML. The grammar below describes precisely what Graphviz will accept.
 Although HTML labels are not, strictly speaking, a shape, they can be
 viewed as a generalization of the record shapes described above. 
 In particular, if a node has set its 
-<A HREF=/content/attrs#kshape><TT>shape</TT></A>
+<A HREF=attrs.html#k:shape><TT>shape</TT></A>
 attribute to <TT>none</TT> or <TT>plaintext</TT>, the HTML label will be the node's
 shape. On the other hand, if the node has any other shape (except 
 <TT>point</TT>), the HTML label will be embedded within the node the
@@ -406,7 +406,17 @@ Note that, as in HTML, element and attribute names are case-insensitive.
 <TR>
   <TD ALIGN=RIGHT></TD>
   <TD ALIGN=LEFT>|</TD>
-  <TD ALIGN=LEFT><B>&lt;U&gt;</B> <I>text</I> <B>&lt;/U&gt;</B></TD>
+  <TD ALIGN=LEFT><B>&lt;U&gt;</B> <I>text</I> <B>&lt;/U&gt</B></TD>
+</TR>
+<TR>
+  <TD ALIGN=RIGHT></TD>
+  <TD ALIGN=LEFT>|</TD>
+  <TD ALIGN=LEFT><B>&lt;SUB&gt;</B> <I>text</I> <B>&lt;/SUB&gt</B></TD>
+</TR>
+<TR>
+  <TD ALIGN=RIGHT></TD>
+  <TD ALIGN=LEFT>|</TD>
+  <TD ALIGN=LEFT><B>&lt;SUP&gt;</B> <I>text</I> <B>&lt;/SUP&gt</B></TD>
 </TR>
 <TR>
   <TD ALIGN=RIGHT><I>table</I></TD>
@@ -471,7 +481,10 @@ easier reading.
 <P>
 Each of the HTML elements has a set of optional attributes.
 Attribute values must appear in double quotes.
-<PRE>&lt;TABLE
+<P>
+  &lt;!-- Table element --&gt;
+<PRE>
+&lt;TABLE
   ALIGN="CENTER|LEFT|RIGHT"
   BGCOLOR="<I>color</I>"
   BORDER="<I>value</I>"
@@ -493,11 +506,13 @@ Attribute values must appear in double quotes.
 &gt;
 </PRE>
 <P>
+  &lt;!-- Table row --&gt;
 <PRE>&lt;TR
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Table cell --&gt;
 <PRE>&lt;TD
   ALIGN="CENTER|LEFT|RIGHT|TEXT"
   BALIGN="CENTER|LEFT|RIGHT"
@@ -522,6 +537,7 @@ Attribute values must appear in double quotes.
 </PRE>
 
 <P>
+  &lt;!-- Font specification --&gt;
 <PRE>&lt;FONT
   COLOR="<I>color</I>"
   FACE="<I>fontname</I>"
@@ -530,32 +546,49 @@ Attribute values must appear in double quotes.
 </PRE>
 
 <P>
+  &lt;!-- Line break --&gt;
 <PRE>&lt;BR
   ALIGN="CENTER|LEFT|RIGHT"
 &gt;
 </PRE>
 
 <P>
+  &lt;!-- Image inclusion --&gt;
 <PRE>&lt;IMG
   SCALE="FALSE|TRUE|WIDTH|HEIGHT|BOTH"
   SRC="<I>value</I>"
 &gt;
 </PRE>
 <P>
+  &lt;!-- Italic style --&gt;
 <PRE>&lt;I
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Bold style --&gt;
 <PRE>&lt;B
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Underlined text --&gt;
 <PRE>&lt;U
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
+<P>
+  &lt;!-- Subscript text --&gt;
+<PRE>&lt;SUB
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
+<P>
+  &lt;!-- Superscript text --&gt;
+<PRE>&lt;SUP
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
 
 <P>
 <B><I><FONT SIZE=-1>ALIGN</FONT> </I></B>
@@ -638,10 +671,10 @@ or &lt;TD&gt;...&lt;/TD&gt;.
 This color can be 
 overridden by a <B><I>COLOR</I></B> attribute in descendents.
 By default, the font color is determined by the
-<A HREF="/content/attrs#dfontcolor">fontcolor</A> attribute of
+<A HREF="attrs.html#d:fontcolor">fontcolor</A> attribute of
 the corresponding node, edge or graph, and the border color
 is determined by the
-<A HREF="/content/attrs#dcolor">color</A> attribute of
+<A HREF="attrs.html#d:color">color</A> attribute of
 the corresponding node, edge or graph.
 </BLOCKQUOTE>
 
@@ -658,7 +691,7 @@ specifies the font to use within the scope of
 This can be 
 overridden by a <B><I>FACE</I></B> attribute in descendents.
 By default, the font name is determined by the
-<A HREF="/content/attrs#dfontname">fontname</A> attribute of the corresponding
+<A HREF="attrs.html#d:fontname">fontname</A> attribute of the corresponding
 node, edge or graph.
 </BLOCKQUOTE>
 
@@ -688,17 +721,17 @@ The maximum value is 65535.
 <BLOCKQUOTE>
 attaches a URL to the object.
 Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dURL>URL</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:URL>URL</A> attribute.
 </BLOCKQUOTE>
 
 <B><I><FONT SIZE=-1>ID="value"</FONT></I></B>
 <BLOCKQUOTE>
 allows the user to specify a unique ID for a table or cell. See
-the <A HREF=/content/attrs#did>id</A> attribute for more information.
+the <A HREF=attrs.html#d:id>id</A> attribute for more information.
 Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#did>id</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:id>id</A> attribute.
 </BLOCKQUOTE>
 
 <B><I><FONT SIZE=-1>POINT-SIZE="value"</FONT></I></B>
@@ -708,14 +741,14 @@ sets the size of the font, in points, used within the scope of
 This can be 
 overridden by a <B><I>POINT-SIZE</I></B> attribute in descendents.
 By default, the font size is determined by the
-<A HREF="/content/attrs#dfontsize">fontsize</A> attribute of the corresponding
+<A HREF="attrs.html#d:fontsize">fontsize</A> attribute of the corresponding
 node, edge or graph.
 </BLOCKQUOTE>
 
 <B><I><FONT SIZE=-1>PORT="value"</FONT></I></B>
 <BLOCKQUOTE>
 attaches a portname to the object.
-(See <A HREF=/content/attrs#kportPos>portPos</A>.)
+(See <A HREF=attrs.html#k:portPos>portPos</A>.)
 This can be used to modify the head
 or tail of an edge, so that the end attaches directly to the object.
 </BLOCKQUOTE>
@@ -738,9 +771,9 @@ Allowed values are
 <LI>BOTH : expand both image width height to fill  </LI>
 </ul>
 If this attribute is undefined, 
-the image inherits the <A HREF="/content/attrs#dimagescale">imagescale</A> 
+the image inherits the <A HREF="attrs.html#d:imagescale">imagescale</A> 
 attribute of the graph object being drawn.
-As with the <A HREF="/content/attrs#dimagescale">imagescale</A>
+As with the <A HREF="attrs.html#d:imagescale">imagescale</A>
 attribute, if the cell has a fixed size and the image is too large,
 any offending dimension will be shrunk to fit the space, the
 scaling being uniform in width and height if <I>SCALE=<TT>"true"</TT></I>.
@@ -753,8 +786,8 @@ an image's <B><I>SCALE</I></B> attribute.
 <BLOCKQUOTE>
 specifies the image file to be displayed in the cell.
 Note that if the software is used as a web server, file system access
-to images is more restricted. See <A HREF="/content/command-line-invocation#dGV_FILE_PATH">GV_FILE_PATH</A>
-and <A HREF="/content/command-line-invocation#dSERVER_NAME">SERVER_NAME</A>.
+to images is more restricted. See <A HREF="command.html#d:GV_FILE_PATH">GV_FILE_PATH</A>
+and <A HREF="command.html#d:SERVER_NAME">SERVER_NAME</A>.
 </BLOCKQUOTE>
 
 <P>
@@ -772,8 +805,8 @@ determines which window of the browser is used for the URL if the object
 has one. 
 See <A HREF="http://www.w3.org/TR/html401/present/frames.html#adef-target">W3C documentation</A>.
 Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dtarget>target</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:target>target</A> attribute.
 </BLOCKQUOTE>
 
 <B><I><FONT SIZE=-1>TITLE="value"</FONT></I></B>
@@ -781,8 +814,8 @@ Note that the <TT>"value"</TT> is treated as an
 sets the tooltip annotation attached to the element. 
 This is used only if the element has a HREF attribute.
 Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dtooltip>tooltip</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:tooltip>tooltip</A> attribute.
 </BLOCKQUOTE>
 
 <B><I><FONT SIZE=-1>TOOLTIP="value"</FONT></I></B>
index d9796b1d68e9b10a64ea92d61114e44d609f151b..33ce9766ca24a199c4b57d7058b0a16676551a60 100644 (file)
@@ -21,7 +21,10 @@ easier reading.
 <P>
 Each of the HTML elements has a set of optional attributes.
 Attribute values must appear in double quotes.
-<PRE>&lt;TABLE
+<P>
+  &lt;!-- Table element --&gt;
+<PRE>
+&lt;TABLE
   ALIGN="CENTER|LEFT|RIGHT"
   BGCOLOR="<I>color</I>"
   BORDER="<I>value</I>"
@@ -43,11 +46,13 @@ Attribute values must appear in double quotes.
 &gt;
 </PRE>
 <P>
+  &lt;!-- Table row --&gt;
 <PRE>&lt;TR
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Table cell --&gt;
 <PRE>&lt;TD
   ALIGN="CENTER|LEFT|RIGHT|TEXT"
   BALIGN="CENTER|LEFT|RIGHT"
@@ -72,6 +77,7 @@ Attribute values must appear in double quotes.
 </PRE>
 
 <P>
+  &lt;!-- Font specification --&gt;
 <PRE>&lt;FONT
   COLOR="<I>color</I>"
   FACE="<I>fontname</I>"
@@ -80,32 +86,49 @@ Attribute values must appear in double quotes.
 </PRE>
 
 <P>
+  &lt;!-- Line break --&gt;
 <PRE>&lt;BR
   ALIGN="CENTER|LEFT|RIGHT"
 &gt;
 </PRE>
 
 <P>
+  &lt;!-- Image inclusion --&gt;
 <PRE>&lt;IMG
   SCALE="FALSE|TRUE|WIDTH|HEIGHT|BOTH"
   SRC="<I>value</I>"
 &gt;
 </PRE>
 <P>
+  &lt;!-- Italic style --&gt;
 <PRE>&lt;I
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Bold style --&gt;
 <PRE>&lt;B
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
 <P>
+  &lt;!-- Underlined text --&gt;
 <PRE>&lt;U
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
+<P>
+  &lt;!-- Subscript text --&gt;
+<PRE>&lt;SUB
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
+<P>
+  &lt;!-- Superscript text --&gt;
+<PRE>&lt;SUP
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
 
 <P>
 <B><I><FONT SIZE=-1>ALIGN</FONT> </I></B>
index 674a72e5deadfae77a915951c880c6d9183f9848..96551f0123327362a6c05480cce1e370cb437373 100644 (file)
@@ -1,6 +1,6 @@
 label    =  text | table
 text     = textitem | text textitem
-textitem = string | T_&lt;BR/&gt; | T_&lt;FONT&gt; text T_&lt;/FONT&gt; | T_&lt;I&gt; text T_&lt;/I&gt; | T_&lt;B&gt; text T_&lt;/B&gt; | T_&lt;U&gt; text T_&lt;/U&gt;
+textitem = string | T_&lt;BR/&gt; | T_&lt;FONT&gt; text T_&lt;/FONT&gt; | T_&lt;I&gt; text T_&lt;/I&gt; | T_&lt;B&gt; text T_&lt;/B&gt; | T_&lt;U&gt; text T_&lt;/U&gt | T_&lt;SUB&gt; text T_&lt;/SUB&gt |T_&lt;SUP&gt; text T_&lt;/SUP&gt
 table =  [ T_&lt;FONT&gt; ] T_&lt;TABLE&gt; rows T_&lt;/TABLE&gt; [ T_&lt;/FONT&gt; ]
 rows = row | rows row
 row = T_&lt;TR&gt; cells T_&lt;/TR&gt;