Skip to content

Commit c5e58ed

Browse files
committed
[css2] Bug fixes, new toc mechanism, new index mechanism, new CONVENTIONS, updated (pretty will ) with respect to HTML
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40490
1 parent 0837eb6 commit c5e58ed

29 files changed

Lines changed: 864 additions & 665 deletions

css2/DOC/CONVENTIONS

Lines changed: 111 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ Global structure
66

77

88
* The TOC and Indexes will be generated by the magic scripts of ALH.
9-
The DTD fragments that appear in the body of the specification will
10-
have links from attribute names to their definitions.
119

1210
* It's ok to use <TABLE>.
1311

1412
* It's ok to include GIF files in the spec.
1513

14+
************
15+
To suppress page numbers in generated PS:
16+
************
17+
18+
(1) Use Arnaud's patched html2ps
19+
(2) Add class="noxref" to your link.
20+
1621
************
1722
TABLE OF CONTENTS
1823
************
@@ -28,47 +33,28 @@ is "Margin properties" and a heading number.
2833
************
2934
Properties
3035
************
31-
In source file:
36+
The following line in the source file:
3237

3338
<!-- #include src=properties/propname.srb -->
3439

35-
The following will be generated:
40+
(1) Will generate a property definition based on the definition
41+
in properties/properties.db and the output of bin/pextr.
42+
[Analogous for descriptors].
3643

37-
<DIV class="propdef">
38-
<P><a name="propdef-propname" class="propdef-title"><strong>'propname'</strong></a></P>
39-
<TABLE class="propinfo">
40-
<TR><TH>Property name:<TD>
41-
<span title="propname" class="index-def">'propname'</span></TR>
42-
<TR><TH>Value:<TD>...</TR>
43-
<TR><TH>Initial:<TD>...</TR>
44-
<TR><TH>Applies to:<TD>...</TR>
45-
<TR><TH>Inherited:<TD>...</TR>
46-
<TR><TH>Percentage values:<TD>...</TR>
47-
</TABLE>
48-
</DIV>
44+
(2) Will generate an entry in the properties index [TO BE DONE].
4945

50-
Can we generated section numbers in front of 'propname' (printed
51-
and electronic): Arnaud says yes.
5246

53-
- An index will be generated from the property definitions.
54-
- Property names will also appear in the TOC. They may be
55-
abbreviated (e.g., "border-*" -> border properties). They may
56-
be listed in a paragraph (not a vertical list).
57-
- Therefore: Two links will be generated: one in the index, one in the TOC.
47+
Note: To get the property name in the TOC, it must be put in a
48+
header.
5849

59-
* To mark up property instances:
6050

61-
<span class="propinst-propname">'propname'</span>
51+
* To mark up a property instance so that it will generate
52+
a link to its definition, write:
6253

63-
(Can't use id since there are several instances)
64-
65-
This will generate:
66-
67-
<a href="..." class="propinst">
68-
<span class="propinst-propname">'propname'</span>
69-
</a>
54+
<span class="propinst-propname">'propname'</span>
7055

71-
- Property instances will link to the definitions.
56+
* You cannot put any <span>s inside the <span> around the property
57+
instance.
7258

7359
************
7460
Value types
@@ -81,19 +67,22 @@ There are three types of value types:
8167
Each Value specification in a property definition will include
8268
some combination of these three.
8369

84-
- Basic values will be delimited by single <'s. (E.g., <length>)
70+
- Basic values will be delimited by single < marks. (E.g., <length>)
8571
and will link to their definitions in syndata.src
8672

8773
- Other values will be defined below the property definition. They
88-
will be indicated by single "<'s" *and*
74+
will be indicated by single < marks *and*
8975
by <em>. They will link to their definitions.
9076

9177
MarkUp all value definitions with:
9278

9379
<span class="index-def" title="value, definition of">
94-
<a name="value-def-value" class="value-def">value</a>
80+
<a name="value-def-value" class="value-def"><b>value</b></a>
9581
</span>
9682

83+
* You cannot put any <span>s
84+
inside the <span> around the value definition.
85+
9786
Note that the name attribute is first.
9887

9988
MarkUp all value instances with:
@@ -102,6 +91,9 @@ MarkUp all value instances with:
10291
<span class="value-inst-value">value</span>
10392
</span>
10493

94+
* You cannot put any <span>s
95+
inside the <span> around the value instance.
96+
10597
The "value" in the text may be marked up (e.g., &lt;value&gt;)
10698

10799
This will generate the same thing with an A element around the inner
@@ -114,48 +106,71 @@ span:
114106
************
115107
Indexes
116108
************
117-
* <span> will be used to markup the source. Index entries will
118-
be generated from this markup.
109+
* Index markup appears within a <span> element or a <dfn> element.
110+
* Definitions are marked up with class="index-def"
111+
[Decided in NYC] The content of index definitions should be
112+
marked within <em>..</em>
113+
* Non-definitions are marked up with class="index-inst".
114+
* The title attribute determines the index keys:
115+
116+
a) title="keyword" produces in the index:
117+
118+
...
119+
keyword, n
120+
...
121+
122+
where n refers to the nth appearance of that keyword
123+
in the index. If keyword is a definition, n will be
124+
rendered specially
125+
126+
b) title="keyword::subkey" produces in the index:
127+
128+
...
129+
keyword
130+
subkey, n
131+
...
132+
133+
c) title="keyword1|keyword2" puts both keywords in the index.
134+
135+
136+
* You may have as many alternate entries in a span as you want,
137+
separating all of them with a "|".
119138

120-
* One class name will be used to specify which index the information
121-
is destined for and whether an entry is the defining instance.
122-
For the CSS2 spec:
139+
* You may only have one level of subkey (i.e., a::b::c is illegal).
123140

124-
index-def
125-
index-inst
141+
For example:
142+
143+
<span class="index-def" title="mydef">mydef text</span>
144+
<span class="index-def" title="mydef::subpart">mydef text</span>
145+
<span class="index-def"
146+
title="mydef::subpart|subpart of mydef">mydef text</span>
126147

127148
* If the title attribute is not set, the span content goes in the
128149
index (alphabetized) and links to the marked-up source. This
129150
practice is supported, but discouraged since markup may appear
130-
in the content. Markup cannot occur in a title attribute.
131-
132-
* If the title attribute is set, it becomes the index entry key. The
133-
attribute value is a "|" separated list of index entries. Each index
134-
entry may be either a single key or a primary key separated from
135-
a secondary key.
151+
in the content.
136152

137-
For example:
138-
--
139-
<span class="index-def"
140-
title="word-spacing, definition of|ian's second key">
141-
Word spacing is defined as ...</span>
142-
<span class="index-inst"
143-
title="word-spacing, use with blah">
144-
In the context of blah blah, word spacing ...</span>
153+
* This markup is converted into an anchor during processing. However,
154+
the processor looks to see whether an anchor has already been
155+
defined within the span and reuses it if it has. Thus,
145156

146-
Discussion of <span class="index-inst">foo bar</span>
147-
--
148-
* Generated anchors:
157+
<span class="index-def" title="mydef"><a name="foo">..</a></span>
158+
159+
will work, as will any markup that generates an anchor
160+
with "name" set. (the index is processed after the other stuff).
149161

150-
The "name" used for anchors and links may be generated numbers since
151-
each link only refers to one anchor.
162+
* You may not, however, embed index markup. You don't need to,
163+
however, since the "|" mechanism allows any number of index
164+
keys at the same place.
165+
166+
* [TODO] In the printed version, the links are printed as page
167+
numbers.
152168

153-
* For index keys that point to several locations in the spec, the
154-
formatting of the keys in the spec must be considered.
155169

156170
************
157171
Examples
158172
************
173+
159174
* In accordance with the HTML spec, use uppercase for
160175
HTML element names and lowercase for HTML attribute names.
161176

@@ -187,29 +202,53 @@ Illegal examples should be as follows:
187202
<em><strong>Note.</strong> ...</em>
188203
</div>
189204

205+
* Indentation of examples? [HAKON TODO]
206+
190207
**********
191208
References
192209
**********
193210
* References. *All* references to WWW pages, books, etc. will appear in
194-
a single file: ref/references.src. Each reference entry will contain
211+
a single file: refs.src. Each reference entry will contain
195212
an anchor whose name has the prefix "ref-". If the reference is to a
196213
document online, the URL of the document will be displayed as well
197214
as linked to (for printing).
198215

216+
References in refs.src should either be marked normative
217+
or informative and should be specified in the proper section.
218+
219+
A normative reference is marked as class="normref":
220+
221+
<dt><strong><a name="ref-FLEX" class="normref">[FLEX]</a></strong>
222+
<dd>"Flex: The Lexical Scanner Generator", Version 2.3.7, ISBN 1882114213.
223+
224+
An informative reference is marked as class="informref".
225+
226+
Please put the "name" attribute before the "class" attribute.
227+
199228
All references within the rest of the specification will point to
200229
the appropriate entry in references.src. These links should have the
201230
following syntax:
202231

203232
<a rel="biblioentry"
204-
href="<path>/ref/references.html#ref-SYMBOL"</a>[SYMBOL]</a>
233+
href="<path>/ref/references.html#ref-SYMBOL"
234+
class="informref"
235+
</a>[SYMBOL]</a>
236+
237+
Note the appearance of class="normref" | class="informref"
238+
at the end of the anchor start tag. It is possible to
239+
have an informative link to a normative reference, but you
240+
should not have a normative link to an informative reference.
241+
242+
You can check to see that links to refs.src are ok with respect
243+
to normref/informref by running "make checkrefs".
205244

206245
**********
207246
Document HEAD
208247
**********
209248

210249
<!DOCTYPE HTML SYSTEM "http://www.w3.org/TR/WD-html40/sgml/HTML4.dtd">
211250
<html lang="en">
212-
<!-- $Id: CONVENTIONS,v 1.11 1997-10-03 20:52:40 ian Exp $ -->
251+
<!-- $Id: CONVENTIONS,v 1.12 1997-12-09 00:08:30 ijacobs Exp $ -->
213252
<HEAD>
214253
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
215254
<TITLE>CSS2 Specification</TITLE>
@@ -222,13 +261,9 @@ Document HEAD
222261
</BODY>
223262
</HTML>
224263

225-
226264
**********
227265
Images
228266
**********
229-
The working group has deemed that images are better than ascii
230-
art for the spec.
231-
232267
Style guidelines from From Bert:
233268

234269
*Choose one font (Helvetica or Helvetica Narrow)
@@ -240,7 +275,11 @@ Style guidelines from From Bert:
240275

241276
*If one of us turns out to be a good cartoonist, we can liven up the
242277
pictures a bit with one human or animal figure per picture, and maybe
243-
even one or two free-hand curves, but better not force ourselves here.
278+
even one or two free-hand curves, but better not force ourselves
279+
here.
280+
281+
*Images should be centered (in a <P>)
282+
244283

245284
From Chris:
246285

0 commit comments

Comments
 (0)