1212# value must be a URL that ends with <status>-<shortname>-<YYYYMMDD>
1313# and an optional slash.
1414#
15+ # Audience
16+ # Must occur at most once. Set to "WG" (the default) for an HTML
17+ # output with the "Edit" fields included, or to "Director" for an
18+ # HTML output without those fields.
19+ #
1520# Issue
1621# The issue number. The colon is optional after "Issue". Typically a
1722# number, but may be anything. Must be unique.
2934# multiple times per issue. (Usually a pointer to a message on
3035# www-style.)
3136#
32- # Proposal
33- # A proposed answer for the WG to discuss. May occur multiple times
34- # per issue. This field is only printed if the issue is still open
35- # (i.e., has no "Closed" field.)
36- #
3737# Response
3838# Typically a URL pointing to an answer that the WG sent to the
3939# commenter. (Usually a pointer to a message on www-style.) May
5555# resolution. Should only occur multiple times if there are
5656# multiple From lines.
5757#
58- # "Summary:", "Comment:", "Response:", "From:" and "Proposal:" may
59- # have continuation lines (in the case of Comment and Response only if
60- # the first line contains text and not a URL), which are lines that
61- # start with white space.
58+ # Edit
59+ # Any text destined at the working group: edits to do or done,
60+ # actions for people or for the WG, other comments...
61+ #
62+ # "Summary:", "Comment:", "Response:", "From:" and "Edit:" may have
63+ # continuation lines (in the case of Comment and Response only if the
64+ # first line contains text and not a URL), which are lines that start
65+ # with white space.
6266#
6367# Author: Bert Bos <bert@w3.org>
6468# Created: 13 March 2012
@@ -75,6 +79,17 @@ BEGIN {nerrors = 0; n = 0; prev = ""; IGNORECASE = 1}
7579 prev = " " ;
7680 next ;
7781}
82+ /^ audience[ \t ]* :[ \t ]* wg\> / {
83+ next ;
84+ }
85+ /^ audience[ \t ]* :[ \t ]* director\> / {
86+ audience = " Director" ;
87+ next ;
88+ }
89+ /^ audience[ \t ]* : / {
90+ err(" Audience must be \" WG\" (default) or \" Director\" ." );
91+ next ;
92+ }
7893/^ issue\> / {
7994 h = val($0 );
8095 if (h in id) err(" Duplicate issue number: " h);
@@ -112,11 +127,6 @@ n && /^from[ \t]*:/ {
112127 prev = " from" ;
113128 next ;
114129}
115- n && /^ proposal[ \t ]* : / {
116- proposal[ n] = proposal[ n] " <p class=proposal>" val($0 );
117- prev = " proposal" ;
118- next ;
119- }
120130n && /^ closed[ \t ]* :[ \t ]* accepted\> / {
121131 status[ n] = " Accepted" ;
122132 prev = " " ;
@@ -162,6 +172,11 @@ n && /^objection[ \t]*:/ {
162172 prev = " " ;
163173 next ;
164174}
175+ n && /^ edit[ \t ]* : / {
176+ edit[ n] = edit[ n] " <p>" val($0 );
177+ prev = " edit" ;
178+ next ;
179+ }
165180
166181# Continuation lines start with white space:
167182
@@ -181,8 +196,8 @@ n && /^objection[ \t]*:/ {
181196 from[ n] = from[ n] val2($0 );
182197 next ;
183198}
184- /^ [ \t ]+ [^ \t ] / && prev == " proposal " {
185- proposal [ n] = proposal [ n] val2($0 );
199+ /^ [ \t ]+ [^ \t ] / && prev == " edit " {
200+ edit [ n] = edit [ n] val2($0 );
186201 next ;
187202}
188203
@@ -225,7 +240,6 @@ function generate( command, title, date, class, nobjections, i)
225240 print " <style type=\" text/css\" >" ;
226241 print " body {background: white; color: black}" ;
227242 print " .incomplete {background: lavender}" ;
228- print " .proposal {font-style: italic}" ;
229243 print " .proposal:before {content: \" Proposal: \" ; font-weight: bold}" ;
230244 print " table {border-collapse: collapse}" ;
231245 print " thead {background: gray; color: white}" ;
@@ -234,9 +248,10 @@ function generate( command, title, date, class, nobjections, i)
234248 print " td > *:first-child {margin-top: 0}" ;
235249 print " td > *:last-child {margin-bottom: 0}" ;
236250 print " .legend {font-size: smaller}" ;
237- print " .ok {background: lightgreen}" ;
238- print " .objection {background: red}" ;
239- print " .unverified {background: orange}" ;
251+ print " .ok {background: hsl(120,100%,85%)}" ;
252+ print " .objection {background: hsl(0,100%,40%); color: white}" ;
253+ print " .unverified {background: hsl(39,100%,70%)}" ;
254+ print " .edit {background: white; border-bottom: solid thin gray}" ;
240255 print " </style>\n " ;
241256 print " <h1>Disposition of comments</h1>\n " ;
242257 print " <dl>" ;
@@ -253,7 +268,12 @@ function generate( command, title, date, class, nobjections, i)
253268 print " <p class=objection>There are " i " objections.\n " ;
254269 print " <table>" ;
255270 print " <thead>" ;
256- print " <tr><th>#<th>Author<th>Summary and discussion<th>Result\n " ;
271+ print " <tr>" ;
272+ print " <th>#"
273+ print " <th>Author" ;
274+ print " <th>Summary and discussion" ;
275+ if (audience != " Director" ) print " <th>Actions for WG" ;
276+ print " <th>Result" ;
257277 print " <tbody>" ;
258278
259279 for (i = 1 ; i <= n; i++ ) {
@@ -266,8 +286,8 @@ function generate( command, title, date, class, nobjections, i)
266286 print " <td>" from[ i] ;
267287 print " <td>" summary[ i] ;
268288 if (link[ i] ) printf " <ol>\n %s</ol>\n " , link[ i] ;
289+ if (audience != " Director" ) printf " <td class=edit>%s\n " , edit[ i] ;
269290 if (status[ i] ) printf " <td>%s" , status[ i] ;
270- else if (proposal[ i] ) printf " <td>%s" , proposal[ i] ;
271291 else printf " <td><strong>[OPEN]</strong>" ;
272292 if (obj[ i] ) printf " but %s" , obj[ i] ;
273293 else if (verif[ i] ) printf " and %s" , verif[ i] ;
0 commit comments