10BC0 [css2] Fixed some broken anchors. Added sample style for bidi in HTML… · w3c/csswg-drafts@e56cad4 · GitHub
Skip to content

Commit e56cad4

Browse files
committed
[css2] Fixed some broken anchors. Added sample style for bidi in HTML back.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402061
1 parent 5f458dc commit e56cad4

7 files changed

Lines changed: 39 additions & 32 deletions

File tree

css2/aural.src

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'http://www.w3.org/TR/html4/strict.dtd'>
33

44
<html lang="en">
5-
<!-- $Id: aural.src,v 2.43 2003-01-24 19:41:39 bbos Exp $ -->
5+
<!-- $Id: aural.src,v 2.44 2003-01-27 22:30:55 bbos Exp $ -->
66
<HEAD>
77
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88
<TITLE>Aural style sheets</TITLE>
@@ -719,9 +719,9 @@ A lower value will produce a soft, mellifluous voice.
719719
and <span class="propinst-speak-numeral">'speak-numeral'</span>
720720
</h2>
721721

722-
<p>An additional speech property, <a
723-
href="tables.html#propdef-speak-header">speak-header</a>, is
724-
described in the chapter on <a href="tables.html">tables</a>
722+
<p>An additional speech property, <span
723+
class="propinst-speak-header">speak-header</span>, is
724+
described below.
725725

726726
<!-- #include src=properties/speak-punctuation.srb -->
727727

css2/bin/pextr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# <span class="propinst-name">&lt;'name'&gt;</span>
1414
#
1515
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
16-
# $Id: pextr,v 1.26 2003-01-17 21:27:31 bbos Exp $
16+
# $Id: pextr,v 1.27 2003-01-27 22:30:56 bbos Exp $
1717
#
1818

1919
$PROGNAME = substr($0, rindex($0, "/") + 1);
@@ -133,7 +133,7 @@ print output "<td>$perc\n";
133133
sub format_media {
134134
$fmedia = $_[0];
135135
$fmedia =~ s/visual/<a href=\"media.html#visual-media-group\" class=\"noxref\">visual<\/a>/;
136-
$fmedia =~ s/aural/<a href=\"media.html#aural-media-group\" class=\"noxref\">aural<\/a>/;
136+
$fmedia =~ s/aural/<a href=\"aural.html#aural-media-group\" class=\"noxref\">aural<\/a>/;
137137
$fmedia =~ s/tactile/<a href=\"media.html#tactile-media-group\" class=\"noxref\">tactile<\/a>/;
138138
$fmedia =~ s/continuous/<a href=\"media.html#continuous-media-group\" class=\"noxref\">continuous<\/a>/;
139139
$fmedia =~ s/paged/<a href=\"media.html#paged-media-group\" class=\"noxref\">paged<\/a>/;

css2/changes.src

Lines changed: 5 additions & 5 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: changes.src,v 2.36 2003-01-27 21:02:24 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.37 2003-01-27 22:30:55 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Appendix B: Changes</TITLE>
@@ -322,7 +322,7 @@ below the top edge of the box's containing block."
322322
"Once a box has been laid out according to the normal flow"
323323
the words "or floated,".
324324

325-
<h3 id="s-9-7"><a href="visuren.html#q24">Section
325+
<h3 id="s-9-7"><a href="visuren.html#dis-pos-flo">Section
326326
9.7 Relationships between 'display', 'position', and 'float'</a></h3>
327327

328328
<p>If an element floats, the
@@ -331,7 +331,7 @@ the words "or floated,".
331331
than 'none', 'display' is set to 'block' and the box is floated" to a
332332
table with the proper computed values.
333333

334-
<h3 id="x14"><a href="visudet.html#q5">Section 10.3.2
334+
<h3 id="x14"><a href="visudet.html#inline-replaced-width">Section 10.3.2
335335
Inline, replaced elements</a> (and 10.3.4, 10.3.6, and 10.3.8)</h3>
336336

337337
<p>Changed:</p>
@@ -358,7 +358,7 @@ Inline, replaced elements</a> (and 10.3.4, 10.3.6, and 10.3.8)</h3>
358358
("If the value of 'direction' is 'ltr', this happens to
359359
'margin-left' instead") substituted 'rtl' for 'ltr'.
360360

361-
<h3 id="x16"><a href="visudet.html#q16">Section 10.6.2
361+
<h3 id="x16"><a href="visudet.html#inline-replaced-height">Section 10.6.2
362362
Inline, replaced elements ...</a> (and 10.6.5)</h3>
363363

364364
<p>Changed:</p>
@@ -533,7 +533,7 @@ href="bach.css"?&gt;</code>, but
533533

534534
<pre>&lt;?xml-stylesheet type="text/css" href="bach.css"?&gt;</pre>
535535

536-
<h3 id="x54"><a href="selector.html#syndata.html#tokenization">Section 4.1.1</a></h3>
536+
<h3 id="x54"><a href="syndata.html#tokenization">Section 4.1.1</a></h3>
537537

538538
<p>DELIM should not have included single or double quote. Refer also
539539
to section 4.1.6 on strings, which must have matching single or

css2/fonts.src

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
22
"http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
33
<html lang="en">
4-
<!-- $Id: fonts.src,v 2.72 2003-01-27 21:34:31 bbos Exp $ -->
4+
<!-- $Id: fonts.src,v 2.73 2003-01-27 22:30:55 bbos Exp $ -->
55
<head>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
77
<title>Fonts</title>
@@ -65,8 +65,7 @@ in the font set, then repeat step 2 with the next alternative
6565
<li>If there is a matching font face, but it doesn't contain a glyph
6666
for the current character, and if there is a next alternative
6767
'font-family' in the font sets, then repeat step 2 with the next
68-
alternative 'font-family'. See <a href="#appendix-c">appendix C</a>
69-
for a description of font and character encoding.
68+
alternative 'font-family'.
7069
</li>
7170
<li>If there is no font within the family selected in 2, then use a
7271
UA-dependent default 'font-family' and repeat step 2, using the best
@@ -86,22 +85,22 @@ the CSS&nbsp;2.1 properties for each character.)
8685
</p>
8786
<ol>
8887

89-
<li><a href="#font-style">'font-style'</a> is tried first. 'italic'
88+
<li><span class="propinst-font-style">'font-style'</span> is tried first. 'italic'
9089
will be satisfied if there is either a face in the UA's font database
9190
labeled with the CSS keyword 'italic' (preferred) or 'oblique'.
9291
Otherwise the values must be matched exactly or font-style will fail.
9392
</li>
94-
<li><a href="#font-variant">'font-variant'</a> is tried next. 'normal'
93+
<li><span class="propinst-font-variant">'font-variant'</span> is tried next. 'normal'
9594
matches a font not labeled as 'small-caps'; 'small-caps' matches (1) a
9695
font labeled as 'small-caps', (2) a font in which the small caps are
9796
synthesized, or (3) a font where all lowercase letters are replaced by
9897
upper case letters. A small-caps font may be synthesized by
9998
electronically scaling uppercase letters from a normal font.
10099
</li>
101-
<li><a href="#font-weight">'font-weight'</a> is matched next, it will
100+
<li><span class="propinst-font-weight">'font-weight'</span> is matched next, it will
102101
never fail. (See 'font-weight' below.)
103102
</li>
104-
<li><a href="#font-size">'font-size'</a> must be matched within a
103+
<li><span class="propinst-font-size">'font-size'</span> must be matched within a
105104
UA-dependent margin of tolerance. (Typically, sizes for scalable fonts
106105
are rounded to the nearest whole pixel, while the tolerance for
107106
bitmapped fonts could be as large as 20%.) Further computations, e.g.
@@ -248,8 +247,8 @@ fonts with old-style numerals, small-caps numerals, condensed or
248247
expanded letters, etc. CSS&nbsp;2.1 has no properties that select those.
249248
</p>
250249
<p><em>Note:</em> insofar as this property causes text to be
251-
transformed to uppercase, the same considerations as for <a
252-
href="#text-transform">'text-transform'</a> apply.
250+
transformed to uppercase, the same considerations as for <span
251+
class="propinst-text-transform">'text-transform'</span> apply.
253252
</p>
254253
<h2><a name="font-boldness">Font boldness</a>: the
255254
<span class="propinst-font-weight">'font-weight'</span> property</h2>
@@ -524,12 +523,13 @@ em { font-size: 1.5em }
524523
The <span class="propinst-font">'font'</span> property is,
525524
except as described <a href="#almost">below</a>, a shorthand property for
526525
setting
527-
<a href="#font-style">'font-style'</a>
528-
<a href="#font-variant">'font-variant'</a>
529-
<a href="#font-weight">'font-weight'</a>
530-
<a href="#font-size">'font-size'</a>,
531-
<a href="#line-height">'line-height'</a> and
532-
<a href="#font-family">'font-family'</a> at the same place in the style
526+
<span class="propinst-font-style">'font-style'</span>,
527+
<span class="propinst-font-variant">'font-variant'</span>,
528+
<span class="propinst-font-weight">'font-weight'</span>,
529+
<span class="propinst-font-size">'font-size'</span>,
530+
<span class="propinst-line-height">'line-height'</span> and
531+
<span class="propinst-font-family">'font-family'</span> at the same
532+
place in the style
533533
sheet. The syntax of this property is based on a traditional
534534
typographical shorthand notation to set multiple properties related to
535535
fonts.

css2/sample.src

Lines changed: 8 additions & 1 deletion
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: sample.src,v 2.28 2002-11-28 20:55:24 bbos Exp $ -->
3+
<!-- $Id: sample.src,v 2.29 2003-01-27 22:30:55 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>A sample style sheet for HTML 4.0</TITLE>
@@ -91,6 +91,13 @@ abbr, acronym { font-variant: small-caps; letter-spacing: 0.1em }
9191
:link, :visited { text-decoration: underline }
9292
:focus { outline: thin dotted invert }
9393

94+
<a name=bidi>/* Begin bidirectionality settings (do not change) */
95+
BDO[DIR="ltr"] { direction: ltr; unicode-bidi: bidi-override }
96+
BDO[DIR="rtl"] { direction: rtl; unicode-bidi: bidi-override }
97+
98+
*[DIR="ltr"] { direction: ltr; unicode-bidi: embed }
99+
*[DIR="rtl"] { direction: rtl; unicode-bidi: embed }</a>
100+
94101
@media print {
95102
h1 { page-break-before: always }
96103
h1, h2, h3,

css2/selector.src

Lines changed: 3 additions & 3 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: selector.src,v 2.67 2002-11-18 21:38:52 bbos Exp $ -->
3+
<!-- $Id: selector.src,v 2.68 2003-01-27 22:30:55 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Selectors</title>
@@ -1043,7 +1043,7 @@ a block-level element.</p>
10431043
<p>The <a name="first-line">:first-line</a> pseudo-element is similar
10441044
to an inline-level element, but with certain restrictions. Only the
10451045
following properties apply to a :first-line pseudo-element: <a
1046-
href="fonts.html#font-properties">font properties,</a> <a
1046+
href="fonts.html">font properties,</a> <a
10471047
href="colors.html">color properties,</a> <a
10481048
href="colors.html#background-properties">background properties,</a>
10491049
<span class="propinst-word-spacing">'word-spacing',</span> <span
@@ -1068,7 +1068,7 @@ class="propinst-float">'float'</span> property is 'none', otherwise it
10681068
is similar to a floated element.</p>
10691069

10701070
<p>These are the properties that apply to :first-letter
1071-
pseudo-elements: <a href="fonts.html#font-properties">font
1071+
pseudo-elements: <a href="fonts.html">font
10721072
properties,</a> <a href="colors.html">color properties,</a> <a
10731073
href="colors.html#background-properties">background properties,</a>
10741074
<span class="propinst-text-decoration">'text-decoration',</span> <span

css2/visuren.src

Lines changed: 2 additions & 2 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: visuren.src,v 2.94 2003-01-27 21:52:49 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.95 2003-01-27 22:30:55 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model</title>
@@ -297,7 +297,7 @@ in the source tree.
297297
</p>
298298

299299
<p>Please consult the section on
300-
<a href="generate.html#compact-run-in-gen">generated content</a>
300+
<a href="generate.html#run-in-gen">generated content</a>
301301
for information about how run-in boxes interact with generated
302302
content.
303303
</p>

0 commit comments

Comments
 (0)