Skip to content

Commit e3a8d27

Browse files
committed
[css2] Properties/descriptors in second column in property and descriptor
index now have a "noxref", so that html2ps doesn't add a page number. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401634
1 parent 907e566 commit e3a8d27

6 files changed

Lines changed: 22 additions & 16 deletions

File tree

css2/bin/Attic/addlinks

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# Arnaud Le Hors - lehors@w3.org
1313
# Modifications by Bert Bos <bert@w3.org>
14-
# $Id: addlinks,v 2.4 1998-04-06 23:51:25 ijacobs Exp $
14+
# $Id: addlinks,v 2.5 1998-05-04 20:16:00 bbos Exp $
1515

1616
use DB_File;
1717
use Getopt::Std;
@@ -49,7 +49,10 @@ sub rpath {
4949
sub gen_anch {
5050
my ($key, $stag, $content, $etag, $xrefon) = @_;
5151
my $anch = $anchors{$key};
52+
# Make html2ps add page numbers if $xrefon is true,
53+
# unless there is an explicit "noxref" specified on the element.
5254
if ($xrefon) {$class = "";} else {$class = " class=\"noxref\"";}
55+
if ($stag =~ /\bnoxref\b/) {$class = " class=\"noxref\"";}
5356
if (! defined $anch) {
5457
warn "$PROG: index $_[0] not found\n";
5558
$anch = "";

css2/bin/Attic/mkdescidx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/local/bin/perl
22
# Index of descriptor names.
33
# Arnaud Le Hors lehors@w3.org/Ian Jacobs ij@w3.org
4-
# $Id: mkdescidx,v 2.0 1998-02-02 18:53:01 bbos Exp $
4+
# $Id: mkdescidx,v 2.1 1998-05-04 20:16:04 bbos Exp $
55
use English;
66

77

@@ -86,8 +86,8 @@ sub format_val {
8686
$value = $_[0];
8787
$value =~ s/^[ \t\n]+//gs;
8888
$value =~ s/[ \t\n]+$//gs;
89-
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1\">\&lt\;\1\&gt\;<\/span>/sgi;
90-
$value =~ s/\<\'(.+?)\'\>/<span class=\"descinst-\1\">\'\1\'<\/span>/sgi;
89+
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1 noxref\">\&lt\;\1\&gt\;<\/span>/sgi;
90+
$value =~ s/\<\'(.+?)\'\>/<span class=\"descinst-\1 noxref\">\'\1\'<\/span>/sgi;
9191
print OUTPUT "<td>$value\n";
9292
}
9393

css2/bin/Attic/mkpropidx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/local/bin/perl
22
# Index of property names.
33
# Arnaud Le Hors lehors@w3.org/Ian Jacobs ij@w3.org
4-
# $Id: mkpropidx,v 2.4 1998-04-30 19:27:07 howcome Exp $
4+
# $Id: mkpropidx,v 2.5 1998-05-04 20:16:09 bbos Exp $
55
use English;
66

77

@@ -87,9 +87,9 @@ sub format_val {
8787
$value = $_[0];
8888
$value =~ s/^[ \t\n]+//gs;
8989
$value =~ s/[ \t\n]+$//gs;
90-
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1\">\&lt\;\1\&gt\;<\/span>/sgi;
91-
$value =~ s/\<\'(.+?)\'\>/<span class=\"propinst-\1\">\'\1\'<\/span>/sgi;
92-
$value =~ s/inherit/<span class=\"value-inst-inherit\">inherit<\/span>/g;
90+
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1 noxref\">\&lt\;\1\&gt\;<\/span>/sgi;
91+
$value =~ s/\<\'(.+?)\'\>/<span class=\"propinst-\1 noxref\">\'\1\'<\/span>/sgi;
92+
$value =~ s/inherit/<span class=\"value-inst-inherit noxref\">inherit<\/span>/g;
9393
print OUTPUT "<td>$value\n";
9494
}
9595

css2/bin/addlinks

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# Arnaud Le Hors - lehors@w3.org
1313
# Modifications by Bert Bos <bert@w3.org>
14-
# $Id: addlinks,v 2.4 1998-04-06 23:51:25 ijacobs Exp $
14+
# $Id: addlinks,v 2.5 1998-05-04 20:16:00 bbos Exp $
1515

1616
use DB_File;
1717
use Getopt::Std;
@@ -49,7 +49,10 @@ sub rpath {
4949
sub gen_anch {
5050
my ($key, $stag, $content, $etag, $xrefon) = @_;
5151
my $anch = $anchors{$key};
52+
# Make html2ps add page numbers if $xrefon is true,
53+
# unless there is an explicit "noxref" specified on the element.
5254
if ($xrefon) {$class = "";} else {$class = " class=\"noxref\"";}
55+
if ($stag =~ /\bnoxref\b/) {$class = " class=\"noxref\"";}
5356
if (! defined $anch) {
5457
warn "$PROG: index $_[0] not found\n";
5558
$anch = "";

css2/bin/mkdescidx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/local/bin/perl
22
# Index of descriptor names.
33
# Arnaud Le Hors lehors@w3.org/Ian Jacobs ij@w3.org
4-
# $Id: mkdescidx,v 2.0 1998-02-02 18:53:01 bbos Exp $
4+
# $Id: mkdescidx,v 2.1 1998-05-04 20:16:04 bbos Exp $
55
use English;
66

77

@@ -86,8 +86,8 @@ sub format_val {
8686
$value = $_[0];
8787
$value =~ s/^[ \t\n]+//gs;
8888
$value =~ s/[ \t\n]+$//gs;
89-
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1\">\&lt\;\1\&gt\;<\/span>/sgi;
90-
$value =~ s/\<\'(.+?)\'\>/<span class=\"descinst-\1\">\'\1\'<\/span>/sgi;
89+
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1 noxref\">\&lt\;\1\&gt\;<\/span>/sgi;
90+
$value =~ s/\<\'(.+?)\'\>/<span class=\"descinst-\1 noxref\">\'\1\'<\/span>/sgi;
9191
print OUTPUT "<td>$value\n";
9292
}
9393

css2/bin/mkpropidx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/local/bin/perl
22
# Index of property names.
33
# Arnaud Le Hors lehors@w3.org/Ian Jacobs ij@w3.org
4-
# $Id: mkpropidx,v 2.4 1998-04-30 19:27:07 howcome Exp $
4+
# $Id: mkpropidx,v 2.5 1998-05-04 20:16:09 bbos Exp $
55
use English;
66

77

@@ -87,9 +87,9 @@ sub format_val {
8787
$value = $_[0];
8888
$value =~ s/^[ \t\n]+//gs;
8989
$value =~ s/[ \t\n]+$//gs;
90-
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1\">\&lt\;\1\&gt\;<\/span>/sgi;
91-
$value =~ s/\<\'(.+?)\'\>/<span class=\"propinst-\1\">\'\1\'<\/span>/sgi;
92-
$value =~ s/inherit/<span class=\"value-inst-inherit\">inherit<\/span>/g;
90+
$value =~ s/\<([^']+?)\>/<span class=\"value-inst-\1 noxref\">\&lt\;\1\&gt\;<\/span>/sgi;
91+
$value =~ s/\<\'(.+?)\'\>/<span class=\"propinst-\1 noxref\">\'\1\'<\/span>/sgi;
92+
$value =~ s/inherit/<span class=\"value-inst-inherit noxref\">inherit<\/span>/g;
9393
print OUTPUT "<td>$value\n";
9494
}
9595

0 commit comments

Comments
 (0)