Skip to content

Commit 666a8db

Browse files
committed
[css2] Incorporated Martins latest comments
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40877
1 parent db6f160 commit 666a8db

1 file changed

Lines changed: 35 additions & 37 deletions

File tree

css2/syndata.src

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.5 1998-02-11 14:24:11 ijacobs Exp $ -->
3+
<!-- $Id: syndata.src,v 2.6 1998-02-11 23:42:16 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -154,8 +154,8 @@ href="#escaped-characters">escaped characters.</a>
154154
clear. There are two ways to do that:
155155

156156
<ol>
157-
<li>with a space (or other whitespace character): "\26 B" ("&B")
158-
<li>by providing exactly 6 hexadecimal digits: "\000026B" ("&B")
157+
<li>with a space (or other whitespace character): "\26 B" ("&amp;B")
158+
<li>by providing exactly 6 hexadecimal digits: "\000026B" ("&amp;B")
159159
</ol>
160160

161161
<p>In fact, the two methods may be combined. Only one whitespace
@@ -560,10 +560,10 @@ In CSS, the em-height is equal to the <span class="index-inst"
560560
title="font size">font size</span> used when rendering an element's
561561
text. It may be used for vertical or horizontal measurement. The 'ex'
562562
unit is equal to the font's <span class="index-def"
563-
title="x-height"><dfn>x-height</dfn></span> (the height of the letter
564-
'x') of the element's font. A font need not contain the letter "M" to
565-
have an 'em' size or the letter "x" to have an x-height; the font
566-
should still define the two units.
563+
title="x-height"><a name="x-height"><dfn>x-height</dfn></a></span>
564+
(the height of the letter 'x') of the element's font. A font need not
565+
contain the letter "M" to have an 'em' size or the letter "x" to have
566+
an x-height; the font should still define the two units.
567567

568568
<!-- Incomplete -->
569569

@@ -946,22 +946,20 @@ Character Set, defined in <a rel="biblioentry"
946946
href="./refs.html#ref-ISO10646">[ISO10646]</a>. For transmission and
947947
storage, these characters must be <span class="index-def"
948948
title="character encoding">encoded</span> by a character encoding that
949-
supports the ASCII character set (e.g., ISO 8859-x, SHIFT JIS, etc.).
950-
For a good introduction to character sets and character encodings,
951-
please consult <a rel="biblioentry" href="./refs.html#ref-HTML40"
952-
class="informref">[HTML40]</a>, Chapter 5.
949+
supports the set of characters available in US-ASCII (e.g., ISO
950+
8859-x, SHIFT JIS, etc.). For a good introduction to character sets
951+
and character encodings, please consult <a rel="biblioentry"
952+
href="./refs.html#ref-HTML40" class="informref">[HTML40]</a>, Chapter
953+
5.
953954

954955
<P>When a style sheet is embedded in another document, the style sheet
955956
shares the character encoding of the whole document. ("Embedded" here
956957
means textual inclusion, not embedded byte sequences.) For
957-
example, in <a rel="biblioentry" href="./refs.html#ref-HTML40"
958-
class="informref">[HTML40]</a>, the "charset" attribute of many
959-
elements (META, LINK, A, etc.) designates the character encoding, as
960-
in:</p>
961-
962-
<pre>
963-
&lt;META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
964-
</pre>
958+
information on character encoding specifications in HTML and XML
959+
respectively, please consult <a rel="biblioentry"
960+
href="./refs.html#ref-HTML40" class="informref">[HTML40]</a>, Chapter
961+
5 and <a rel="biblioentry" href="./refs.html#ref-XML10"
962+
class="informref">[XML10]</a>, Sections 2.2 and 4.3.3, and Appendix F.
965963

966964
<P>When a style sheet resides in a separate file, user agents must
967965
observe the following <span class="index-inst" title="character
@@ -981,8 +979,8 @@ attribute of the LINK element).
981979

982980
<P>When present, only one @charset rule may appear in an external
983981
style sheet -- it must <em>not</em> appear in an embedded style sheet
984-
-- and it must be the first line in the document (not preceded by any
985-
other characters). After "@charset", authors specify the name of a
982+
-- and it must appear at the very start of the document, not preceded
983+
by any characters. After "@charset", authors specify the name of a
986984
character encoding. The name must be a charset name as described in <a
987985
href="refs.html#ref-IANA" class="normref">[IANA]</a> registry (see <a
988986
rel="biblioentry" href="./refs.html#ref-CHARSETS"
@@ -996,15 +994,14 @@ example:</p>
996994
<P>This specification does not mandate which character encodings
997995
a user agent must support.
998996

999-
<P>What purpose does the @charset construct serve if user agents
1000-
cannot understand it before they know the character encoding? It acts
1001-
as a verification mechanism. In the case HTTP headers do not provide
1002-
character encoding information, user agents may attempt to guess the
1003-
character set, and should they succeed, the @charset allows them to
1004-
double check their guess. For this reason, character encodings in
1005-
which the ASCII characters are encoded as themselves are more likely
1006-
to help user agents determine the correct character encoding than
1007-
other encodings schemes.
997+
<P>Note that reliance on the @charset construct theoretically poses a
998+
problem since there is no <em>a priori</em> information on how it is
999+
encoded. In practice, however, the encodings in wide use on the
1000+
Internet are either based on ASCII, UTF-16, UCS-4, or (rarely) on
1001+
EBCDIC. This means that in general, the initial byte values of a
1002+
document enable a user agent to detect the encoding family reliably,
1003+
which provides enough information to decode the @charset rule, which
1004+
in turn determines the exact character encoding.
10081005

10091006
<!-- More examples of good encodings to use? -IJ -->
10101007

@@ -1016,15 +1013,15 @@ other encodings schemes.
10161013
represented in the current character encoding. These characters must
10171014
be written as <a href="#escaped-characters">escaped</a> references to
10181015
<a rel="biblioentry" href="./refs.html#ref-ISO10646">[ISO10646]</a>
1019-
characters. These escapes are the equivalent of numeric character
1016+
characters. These escapes serve the same purpose as numeric character
10201017
references in HTML or XML documents (see <a rel="biblioentry"
10211018
href="./refs.html#ref-HTML40">[HTML40], Chapters 5 and 25).</a>
10221019

10231020
<P>The character escape mechanism should be used when only a few
10241021
characters must be represented this way. If most of a document
10251022
requires escaping, authors should encode it with a more appropriate
10261023
encoding (e.g., if the document contains a lot of Greek characters,
1027-
authors might use ISO 8859-7 or UTF 8).
1024+
authors might use "ISO-8859-7" or "UTF-8").
10281025

10291026
<P>Intermediate processors using a different character encoding may
10301027
translate these escaped sequences into byte sequences of that
@@ -1046,20 +1043,21 @@ written as "\3BA\3BF\3C5\3C1\3BF\3C2".
10461043
<em><strong>Note.</strong>
10471044
In <a rel="biblioentry" href="./refs.html#ref-HTML40"
10481045
class="informref">[HTML40]</a>,
1049-
numeric character references may appear in "style" attribute
1046+
numeric character references are interpreted in "style" attribute
10501047
values but not in the content of the STYLE element. Because of this
10511048
asymmetry, we recommend that authors use the CSS character
1052-
escape mechanism rather than numeric character references.
1053-
For example, authors should write:</em></p>
1049+
escape mechanism rather than numeric character references
1050+
for both the "style" attribute and the STYLE element.
1051+
For example, we recommend:</em></p>
10541052

10551053
<pre class="html-example">
1056-
&lt;SPAN style="voice-family: D\FCrst"&gt;...&lt;/SPAN&gt;
1054+
&lt;SPAN style="voice-family: D\FC rst"&gt;...&lt;/SPAN&gt;
10571055
</pre>
10581056

10591057
<P><em>rather than:</em></p>
10601058

10611059
<pre class="html-example">
1062-
&lt;SPAN style="voice-family: D&amp;amp;#FC;rst"&gt;...&lt;/SPAN&gt;
1060+
&lt;SPAN style="voice-family: D&amp;#FC;rst"&gt;...&lt;/SPAN&gt;
10631061
</pre>
10641062
</div>
10651063

0 commit comments

Comments
 (0)