/usr/share/mozart/doc/wp/node46.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>A Data and Program Fragments</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node41.html#chapter.tools"><< Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label347">Next >></A></TD></TR></TABLE><DIV id="appendix.data"><H1><A name="appendix.data">A Data and Program Fragments</A></H1><P> The following appendix features some program fragments and data specifications omitted in the chapters' text. </P><DIV id="section.data.started"><H2><A name="section.data.started">A.1 Getting Started</A></H2><P></P><DL><DT><SPAN class="chunktitle"><SPAN class="chunkborder"><</SPAN><A name="label344">Change capitalization</A><SPAN class="chunkborder">>=</SPAN></SPAN></DT><DD class="code"><CODE><SPAN class="keyword">fun</SPAN><SPAN class="variablename"> </SPAN>{<SPAN class="functionname">$</SPAN> I}<BR> <SPAN class="keyword">case</SPAN> {Char<SPAN class="keyword">.</SPAN>type I}<BR> <SPAN class="keyword">of</SPAN> lower <SPAN class="keyword">then</SPAN> {Char<SPAN class="keyword">.</SPAN>toUpper I}<BR> <SPAN class="keyword">[]</SPAN> upper <SPAN class="keyword">then</SPAN> {Char<SPAN class="keyword">.</SPAN>toLower I}<BR> <SPAN class="keyword">else</SPAN> I<BR> <SPAN class="keyword">end</SPAN> <BR><SPAN class="keyword">end</SPAN></CODE></DD></DL><P> </P></DIV><DIV id="section.data.widgets-2"><H2><A name="section.data.widgets-2">A.2 More on Widgets</A></H2><P></P><DL><DT><SPAN class="chunktitle"><SPAN class="chunkborder"><</SPAN><A name="label345">Color names</A><SPAN class="chunkborder">>=</SPAN></SPAN></DT><DD class="code"><CODE>[aliceblue antiquewhite aquamarine <BR> azure beige bisque <BR> black blanchedalmond blue <BR> blueviolet brown burlywood <BR> cadetblue chartreuse chocolate <BR> coral cornflowerblue cornsilk <BR> cyan darkblue darkcyan <BR> darkgoldenrod darkgray darkgreen <BR> darkgrey darkkhaki darkmagenta <BR> darkolivegreen darkorange darkorchid <BR> darkred darksalmon darkseagreen <BR> darkslateblue darkslategray darkslategrey <BR> darkturquoise darkviolet deeppink <BR> deepskyblue dimgray dimgrey <BR> dodgerblue firebrick floralwhite <BR> forestgreen gainsboro ghostwhite <BR> gold goldenrod gray <BR> green greenyellow grey <BR> honeydew hotpink indianred <BR> ivory khaki lavender <BR> lavenderblush lawngreen lemonchiffon <BR> lightblue lightcoral lightcyan <BR> lightgoldenrod lightgoldenrodyellow lightgray <BR> lightgreen lightgrey lightpink <BR> lightsalmon lightseagreen lightskyblue <BR> lightslateblue lightslategray lightslategrey <BR> lightsteelblue lightyellow limegreen <BR> linen magenta maroon <BR> mediumaquamarine mediumblue mediumorchid <BR> mediumpurple mediumseagreen mediumslateblue <BR> mediumspringgreen mediumturquoise mediumvioletred <BR> midnightblue mintcream mistyrose <BR> moccasin navajowhite navy <BR> navyblue oldlace olivedrab <BR> orange orangered orchid <BR> palegoldenrod palegreen paleturquoise <BR> palevioletred papayawhip peachpuff <BR> peru pink plum <BR> powderblue purple red <BR> rosybrown royalblue saddlebrown <BR> salmon sandybrown seagreen <BR> seashell sienna skyblue <BR> slateblue slategray slategrey <BR> snow springgreen steelblue <BR> tan thistle tomato <BR> turquoise violet violetred <BR> wheat white whitesmoke <BR> yellow yellowgreen] </CODE></DD></DL><P> </P></DIV><DIV id="section.data.text"><H2><A name="section.data.text">A.3 Text Widgets</A></H2><P></P><DL id="data.text.toy"><DT><SPAN class="chunktitle"><SPAN class="chunkborder"><</SPAN><A name="label346">Sample ToyText</A><SPAN class="chunkborder">>=</SPAN></SPAN></DT><DD class="code"><CODE>hyper(canvas: <BR> e(head:<SPAN class="string">'Canvas'</SPAN> <BR> body:[<SPAN class="string">'A canvas widget displays items. '</SPAN> <BR> <SPAN class="string">'An item is of one the following types: '</SPAN> <BR> a(ref:arc [<SPAN class="string">'arc'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:bitmap [<SPAN class="string">'bitmap'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:image [<SPAN class="string">'image'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:line [<SPAN class="string">'line'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:oval [<SPAN class="string">'oval'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:polygon [<SPAN class="string">'polygon'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:rectangle [<SPAN class="string">'rectangle'</SPAN>]) <SPAN class="string">', '</SPAN> <BR> a(ref:text [<SPAN class="string">'text'</SPAN>]) <SPAN class="string">', and '</SPAN> <BR> a(ref:window [<SPAN class="string">'window'</SPAN>]) <SPAN class="string">'.'</SPAN>])<BR> arc:<BR> e(head:<SPAN class="string">'Arc'</SPAN> <BR> body:[<SPAN class="string">'An arc item displays a piece of a '</SPAN> <BR> <SPAN class="string">'circle.'</SPAN>])<BR> bitmap:<BR> e(head:<SPAN class="string">'Bitmap'</SPAN> <BR> body:[<SPAN class="string">'A bitmap item displays a bitmap '</SPAN> <BR> <SPAN class="string">'with a given name.'</SPAN>])<BR> image:<BR> e(head:<SPAN class="string">'Image'</SPAN> <BR> body:[<SPAN class="string">'Displays an image.'</SPAN>])<BR> line:<BR> e(head:<SPAN class="string">'Line'</SPAN> <BR> body:[<SPAN class="string">'A line item consists of several '</SPAN> <BR> <SPAN class="string">'connected segments.'</SPAN>])<BR> oval:<BR> e(head:<SPAN class="string">'Oval'</SPAN> <BR> body:[<SPAN class="string">'An oval can either be a circle or '</SPAN> <BR> <SPAN class="string">'an ellipsis.'</SPAN>])<BR> polygon:<BR> e(head:<SPAN class="string">'Polygon'</SPAN> <BR> body:[<SPAN class="string">'A polygon is described by three or '</SPAN> <BR> <SPAN class="string">'more '</SPAN> a(ref:line [<SPAN class="string">'line'</SPAN>]) <BR> <SPAN class="string">' segments.'</SPAN>])<BR> rectangle:<BR> e(head:<SPAN class="string">'Rectangle'</SPAN> <BR> body:[<SPAN class="string">'Displays a rectangle.'</SPAN>])<BR> text:<BR> e(head:<SPAN class="string">'Text'</SPAN> <BR> body:[<SPAN class="string">'Displays text consisting of a single '</SPAN> <BR> <SPAN class="string">'or several lines.'</SPAN>])<BR> window:<BR> e(head:<SPAN class="string">'Window'</SPAN> <BR> body:[<SPAN class="string">'Displays a widget in the canvas where '</SPAN> <BR> <SPAN class="string">'the canvas widget serves as geometry '</SPAN> <BR> <SPAN class="string">'manager for the widget. '</SPAN> <BR> <SPAN class="string">'See also '</SPAN> <BR> a(ref:canvas [<SPAN class="string">'the canvas widget'</SPAN>]) <SPAN class="string">'.'</SPAN>]))</CODE></DD></DL><P> </P></DIV></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node41.html#chapter.tools"><< Prev</A></TD><TD><A href="index.html">- Up -</A></TD><TD><A href="bib.html#label347">Next >></A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian Schulte</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|