Debian Codegraph @

en/refpages/elements/area/refentry.xml

raw symbols SCIP
1 <refentry id="area.element">
2 <?dbhtml filename="area.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>area</secondary></indexterm>
11 <refentrytitle>area</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>area</refname>
16 <refpurpose>&area.purpose;</refpurpose>
17 </refnamediv>
18
19 &area.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>
23 An <sgmltag>Area</sgmltag> is an empty element holding information about a
24 region in a graphic, program listing, or screen.
25 </para>
26
27 <para>
28 The region is generally decorated with a number, symbol, or other
29 distinctive mark. The mark is usually used as the label for the
30 <sgmltag>Callout</sgmltag> in a <sgmltag>CalloutList</sgmltag>, which allows the
31 reader to identify which callouts are associated with which regions.
32 The marks may be generated by the processing application from the
33 <sgmltag>Area</sgmltag>s, or it may be added by some other process. (This is
34 an interchange issue. See <xref linkend="app-interchange"/>.)
35 </para>
36
37 <para>
38 For a complete description of callouts, see <sgmltag>Callout</sgmltag>.
39 </para>
40
41 <refsect2><title>Processing expectations</title>
42 <para>
43 &format.suppress; This element provides data for processing but it
44 is not expected to be rendered directly.
45 </para>
46
47 <para>
48 The processing expectations of <sgmltag>Callout</sgmltag>s are likely to deserve
49 special consideration for interchange. See <xref linkend="app-interchange"/>.
50 </para>
51
52 <para>
53 The <sgmltag class='attribute'>Coords</sgmltag>, which are required, identify
54 the location of the region. The coordinates are <acronym>CDATA</acronym>;
55 how they are interpreted depends on the
56 <sgmltag class='attribute'>Units</sgmltag> specified:
57
58 <variablelist>
59 <varlistentry><term><sgmltag class='attvalue'>CALSPair</sgmltag></term>
60 <listitem>
61 <para>The coordinates are expressed using the semantics of the &CALS;
62 graphic attributes. The format of the coordinates is &ldquo;x1,y1 x2,y2&rdquo;.
63 This identifies a rectangle with the lower-left corner at (x1,y1) and
64 the upper-right corner at (x2,y2). The X and Y coordinates are
65 integers in the range 0 to 10000; they express a percentage of the
66 total distance from 0.00 to 100.00%. The lower-left corner is (0,0).
67 </para>
68 </listitem>
69 </varlistentry>
70 <varlistentry><term><sgmltag class='attvalue'>LineColumn</sgmltag></term>
71 <listitem>
72 <para>
73 The coordinates are expressed using lines and columns.
74 The format of the coordinates is &ldquo;line column.&rdquo;
75 In a graphic context, the meaning of this unit is unspecified.
76 </para>
77 </listitem>
78 </varlistentry>
79 <varlistentry><term><sgmltag class='attvalue'>LineRange</sgmltag></term>
80 <listitem>
81 <para>
82 The coordinates are expressed using lines.
83 The format of the coordinates is &ldquo;startingline endingline.&rdquo;
84 In a graphic context, the meaning of this unit is unspecified.
85 </para>
86 </listitem>
87 </varlistentry>
88 <varlistentry><term><sgmltag class='attvalue'>LineColumnPair</sgmltag></term>
89 <listitem>
90 <para>
91 The coordinates are expressed as a continuous flow of characters.
92 The format of the coordinates is &ldquo;line1 col1 line2 col2&rdquo;.
93 This identifies a flow of characters that begins at col1 of line1 and
94 extends to col2 of line2. If line1 and line2 are different, then the
95 region includes all of the intervening lines (including text that
96 occurs before col1 and after col2). In other words, this unit
97 does not specify a rectangle.
98 In a graphic context, the meaning of this unit is unspecified.
99 </para>
100 </listitem>
101 </varlistentry>
102 <varlistentry><term><sgmltag class='attvalue'>OtherUnits</sgmltag></term>
103 <listitem>
104 <para>
105 If specified, then the <sgmltag class='attribute'>OtherUnits</sgmltag>
106 attribute is expected to identify the units in some
107 implementation-specific way.
108 </para>
109 </listitem>
110 </varlistentry>
111 </variablelist>
112 The <sgmltag class='attribute'>Units</sgmltag> attribute is not required, if it
113 is not specified, the semantics of the coordinates must be inherited from
114 the surrounding <sgmltag>AreaSpec</sgmltag> or <sgmltag>AreaSet</sgmltag> element
115 or implied in
116 some implementation-specific manner.
117 </para>
118
119 <para>
120 In processing systems in which the mark is inserted automatically, the
121 <sgmltag class='attribute'>Label</sgmltag> attribute is provided as a mechanism
122 for specifying what the mark should be.
123 </para>
124
125 <para>
126 The author may point to any relevant information with <sgmltag
127 class='attribute'>Linkends</sgmltag>. DocBook does not specify a semantic for
128 these links. One possible use would be for providing a link back to
129 the appropriate <sgmltag>Callout</sgmltag> in an online environment.
130 </para>
131
132 </refsect2>
133
134
135 &area.parents.gen;
136 </refsect1>
137 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
138 <variablelist>
139 <varlistentry><term>coords</term>
140 <listitem>
141 <para>
142 <sgmltag class="attribute">Coords</sgmltag> provides the coordinates of the
143 <sgmltag>Area</sgmltag>. The coordinates should be interpreted using the
144 <sgmltag class="attribute">Units</sgmltag> (or <sgmltag class="attribute">OtherUnits</sgmltag>)
145 specified.
146 </para>
147 </listitem>
148 </varlistentry>
149 <varlistentry><term>label</term>
150 <listitem>
151 <para>
152 <sgmltag class='attribute'>Label</sgmltag> specifies an identifying number or string
153 that may be used in presentation. The <sgmltag>Area</sgmltag> label might be drawn
154 on top of the figure, for example, at the position indicated by
155 <sgmltag class='attribute'>Coords</sgmltag>.
156 </para>
157 </listitem>
158 </varlistentry>
159 <varlistentry><term>linkends</term>
160 <listitem>
161 <para>
162 <sgmltag class="attribute">Linkends</sgmltag> points to the <sgmltag>Callout</sgmltag>(s) which refer
163 to this <sgmltag>Area</sgmltag>. (This provides bidirectional linking, which
164 may be useful in online presentation.)
165 </para>
166 </listitem>
167 </varlistentry>
168 <varlistentry><term>otherunits</term>
169 <listitem>
170 <para>
171 If none of the <sgmltag class="attribute">Units</sgmltag> are applicable, set
172 <sgmltag class="attribute">Units</sgmltag> to <literal>Other</literal> and set
173 <sgmltag class="attribute">OtherUnits</sgmltag> to some application-specific
174 description of the desired units.
175 </para>
176 </listitem>
177 </varlistentry>
178 <varlistentry><term>units</term>
179 <listitem>
180 <para>
181 <sgmltag class="attribute">Units</sgmltag> indicate how the specified
182 <sgmltag class="attribute">Coords</sgmltag> are to be interpreted. The default
183 units vary according to the type of callout specified; <literal>CALSPair</literal>
184 for graphics and <literal>LineColumn</literal> for line-oriented elements.
185 </para>
186 </listitem>
187 </varlistentry>
188 </variablelist>
189 </refsect1>
190 <refsect1><title>Examples</title>
191
192 &area.example.seealso.gen;
193 </refsect1>
194 </refentry>
195