Skip to content

Commit

Permalink
[e] (0) Define 'Unicode code point'.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13676

git-svn-id: http://svn.whatwg.org/webapps@6650 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 6, 2011
1 parent 4351227 commit a95d026
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
20 changes: 12 additions & 8 deletions complete.html
Expand Up @@ -3370,14 +3370,18 @@ <h4 id=character-encodings><span class=secno>2.1.6 </span>Character encodings</h
<p>The term <dfn id=unicode-character>Unicode character</dfn> is used to mean a <i title="">Unicode scalar value</i> (i.e. any Unicode code point that
is not a surrogate code point). <a href=#refsUNICODE>[UNICODE]</a></p>

<p>The term <dfn id=character>character</dfn>, when not qualified as
<em>Unicode</em> character, means a <a href=#unicode-character>Unicode character</a>
where possible, or a surrogate code point when not: when an
algorithm that processes strings is defined in terms of characters,
a pair of <a href=#code-unit title="code unit">code units</a> consisting of a
high surrogate followed by a low surrogate must be treated as a
single character, but isolated surrogates must each be treated as a
single character also.</p>
<p>The term <dfn id=unicode-code-point>Unicode code point</dfn> means a <a href=#unicode-character>Unicode
character</a> where possible, and an isolated surrogate code
point when not. When a conformance requirement is defined in terms
of characters or Unicode code points, a pair of <a href=#code-unit title="code
unit">code units</a> consisting of a high surrogate followed by a
low surrogate must be treated as the single code point represented
by the surrogate pair, but isolated surrogates must each be treated
as the single code point with the value of the surrogate.</p>

<p>In this specification, the term <dfn id=character>character</dfn>, when not
qualified as <em>Unicode</em> character, is synonymous with the term
<a href=#unicode-code-point>Unicode code point</a>.</p>

<p>The <dfn id=code-point-length>code-point length</dfn> of a string is the number of
<a href=#code-unit title="code unit">code units</a> in that string.</p>
Expand Down
20 changes: 12 additions & 8 deletions index
Expand Up @@ -3370,14 +3370,18 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<p>The term <dfn id=unicode-character>Unicode character</dfn> is used to mean a <i title="">Unicode scalar value</i> (i.e. any Unicode code point that
is not a surrogate code point). <a href=#refsUNICODE>[UNICODE]</a></p>

<p>The term <dfn id=character>character</dfn>, when not qualified as
<em>Unicode</em> character, means a <a href=#unicode-character>Unicode character</a>
where possible, or a surrogate code point when not: when an
algorithm that processes strings is defined in terms of characters,
a pair of <a href=#code-unit title="code unit">code units</a> consisting of a
high surrogate followed by a low surrogate must be treated as a
single character, but isolated surrogates must each be treated as a
single character also.</p>
<p>The term <dfn id=unicode-code-point>Unicode code point</dfn> means a <a href=#unicode-character>Unicode
character</a> where possible, and an isolated surrogate code
point when not. When a conformance requirement is defined in terms
of characters or Unicode code points, a pair of <a href=#code-unit title="code
unit">code units</a> consisting of a high surrogate followed by a
low surrogate must be treated as the single code point represented
by the surrogate pair, but isolated surrogates must each be treated
as the single code point with the value of the surrogate.</p>

<p>In this specification, the term <dfn id=character>character</dfn>, when not
qualified as <em>Unicode</em> character, is synonymous with the term
<a href=#unicode-code-point>Unicode code point</a>.</p>

<p>The <dfn id=code-point-length>code-point length</dfn> of a string is the number of
<a href=#code-unit title="code unit">code units</a> in that string.</p>
Expand Down
20 changes: 12 additions & 8 deletions source
Expand Up @@ -2248,14 +2248,18 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
is not a surrogate code point). <a
href="#refsUNICODE">[UNICODE]</a></p>

<p>The term <dfn>character</dfn>, when not qualified as
<em>Unicode</em> character, means a <span>Unicode character</span>
where possible, or a surrogate code point when not: when an
algorithm that processes strings is defined in terms of characters,
a pair of <span title="code unit">code units</span> consisting of a
high surrogate followed by a low surrogate must be treated as a
single character, but isolated surrogates must each be treated as a
single character also.</p>
<p>The term <dfn>Unicode code point</dfn> means a <span>Unicode
character</span> where possible, and an isolated surrogate code
point when not. When a conformance requirement is defined in terms
of characters or Unicode code points, a pair of <span title="code
unit">code units</span> consisting of a high surrogate followed by a
low surrogate must be treated as the single code point represented
by the surrogate pair, but isolated surrogates must each be treated
as the single code point with the value of the surrogate.</p>

<p>In this specification, the term <dfn>character</dfn>, when not
qualified as <em>Unicode</em> character, is synonymous with the term
<span>Unicode code point</span>.</p>

<p>The <dfn>code-point length</dfn> of a string is the number of
<span title="code unit">code units</span> in that string.</p>
Expand Down

0 comments on commit a95d026

Please sign in to comment.