]> granicus.if.org Git - graphviz/commitdiff
Add documentation for using <O>..</O>
authorEmden R. Gansner <erg@alum.mit.edu>
Sun, 9 Mar 2014 20:23:21 +0000 (16:23 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Sun, 9 Mar 2014 20:23:21 +0000 (16:23 -0400)
doc/info/shapes.html
doc/infosrc/html.2
doc/infosrc/html_grammar

index 3e7d26853a431929d6d34fc940fd4a4be6c2e021..cc0ab2146b469bd2afad087d13c02da91ead0806 100644 (file)
@@ -545,6 +545,11 @@ Note that, as in HTML, element and attribute names are case-insensitive.
   <TD ALIGN=LEFT>|</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;O&gt;</B> <I>text</I> <B>&lt;/O&gt</B></TD>
+</TR>
 <TR>
   <TD ALIGN=RIGHT></TD>
   <TD ALIGN=LEFT>|</TD>
@@ -731,11 +736,17 @@ Attribute values must appear in double quotes.
 &gt;
 </PRE>
 <P>
-  &lt;!-- Underlined text --&gt;
+  &lt;!-- Underline text --&gt;
 <PRE>&lt;U
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
+<P>
+  &lt;!-- Overline text --&gt;
+<PRE>&lt;O
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
 <P>
   &lt;!-- Subscript text --&gt;
 <PRE>&lt;SUB
@@ -1150,7 +1161,28 @@ Here is an example using an &lt;IMG&gt; element
 <IMG SRC=html4.gif>
 <P>
 with the <A HREF=html4.gv>input graph</A>.
-
+<P>
+The <tt>sides</tt> attribute (version 2.37 and later) allows one to combine cells to form 
+various non-convex shapes. For example, a <tt>tee-shaped</tt> node
+<P>
+<IMG SRC=tee.gif>
+<P>
+can be produced using
+<XMP>
+  tee [shape=none margin=0 label=
+    <<table border="0" cellspacing="0" cellborder="1">
+     <tr>
+      <td width="9" height="9" fixedsize="true" style="invis"></td>
+      <td width="9" height="9" fixedsize="true" sides="ltr"></td>
+      <td width="9" height="9" fixedsize="true" style="invis"></td>
+     </tr>
+     <tr>
+      <td width="9" height="9" fixedsize="true" sides="tlb"></td>
+      <td width="9" height="9" fixedsize="true" sides="b"></td>
+      <td width="9" height="9" fixedsize="true" sides="brt"></td>
+     </tr>
+    </table>>]
+</XMP>
 <H2><A NAME=epsf>User-defined Nodes</A></H2>
 
 There is a third type of node shape which is specified by the user.
index 49bac1b15a061675a325ac4ddccc858b2ec69528..f48bfd8d8cf49f1a3619d0f509b528418eb6da41 100644 (file)
@@ -119,11 +119,17 @@ Attribute values must appear in double quotes.
 &gt;
 </PRE>
 <P>
-  &lt;!-- Underlined text --&gt;
+  &lt;!-- Underline text --&gt;
 <PRE>&lt;U
   &lt;!-- No attributes --&gt;
 &gt;
 </PRE>
+<P>
+  &lt;!-- Overline text --&gt;
+<PRE>&lt;O
+  &lt;!-- No attributes --&gt;
+&gt;
+</PRE>
 <P>
   &lt;!-- Subscript text --&gt;
 <PRE>&lt;SUB
index d1699c8e0a2904a84112e076cb915fbf99631820..e16f20024a9ec54953addc53ccec03f660c4c740 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 | T_&lt;SUB&gt; text T_&lt;/SUB&gt |T_&lt;SUP&gt; text T_&lt;/SUP&gt | T_&lt;S&gt; text T_&lt;/S&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;O&gt; text T_&lt;/O&gt | T_&lt;SUB&gt; text T_&lt;/SUB&gt |T_&lt;SUP&gt; text T_&lt;/SUP&gt | T_&lt;S&gt; text T_&lt;/S&gt
 table =  [ T_&lt;FONT&gt; ] T_&lt;TABLE&gt; rows T_&lt;/TABLE&gt; [ T_&lt;/FONT&gt; ]
 rows = row | rows row | rows T_&lt;HR/&gt; row
 row = T_&lt;TR&gt; cells T_&lt;/TR&gt;