|
2 | 2 | # Extract entries from the CSS properties database |
3 | 3 | # The database has the following format: |
4 | 4 | # name;; values;; initial-value;; applies-to;; |
5 | | -# inherited;; percentages;; media;; |
| 5 | +# inherited;; percentages;; media;; CSS-level |
6 | 6 | # Special characters: |
7 | 7 | # 1) Translate "*" into the words "all elements" |
8 | 8 | # 1.a) Translate "XX" into "not defined for shorthand properties" |
|
13 | 13 | # <span class="propinst-name"><'name'></span> |
14 | 14 | # |
15 | 15 | # Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors) |
16 | | -# $Id: pextr,v 1.19 2002-04-23 15:13:19 bbos Exp $ |
| 16 | +# $Id: pextr,v 1.20 2002-07-30 18:02:07 bbos Exp $ |
17 | 17 | # |
18 | 18 |
|
19 | 19 | $PROGNAME = substr($0, rindex($0, "/") + 1); |
@@ -60,6 +60,7 @@ my $applies = $_[3]; |
60 | 60 | my $inherited = $_[4]; |
61 | 61 | my $percentages = $_[5]; |
62 | 62 | my $media = $_[6]; |
| 63 | +my $level = $_[7]; |
63 | 64 | #Do next three lines in src files to get headings right. |
64 | 65 | print output "<div class=\"propdef\">\n"; |
65 | 66 | print output "<dl><dt>\n"; |
@@ -158,15 +159,15 @@ sub format_media { |
158 | 159 |
|
159 | 160 | # extract every possible block |
160 | 161 | $_ = $buf; |
161 | | -while (/$blockst$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt$blocket/s) { |
| 162 | +while (/$blockst$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt$blocket/s) { |
162 | 163 | # Set parameters first (before any modifications) |
163 | 164 | $placeholder = $'; |
164 | 165 | my @names = split(/[, \t\n]+/, $1); |
165 | 166 | my $name = $names[0]; |
166 | 167 | $output = "$path$name.srb"; |
167 | 168 | print "\textracting $output\n"; |
168 | 169 | open(output, "> $output"); |
169 | | - &format_property($1, $2, $3, $4, $5, $6, $7); |
| 170 | + &format_property($1, $2, $3, $4, $5, $6, $7, $8); |
170 | 171 | close(output); |
171 | 172 | $_ = $placeholder; |
172 | 173 | } |
0 commit comments