svg2-tools: Update for new pubrules requirements for {FP, LC, FPLC}WDs.

changeset: 69:63ff451f26c5
user:      Cameron McCormack <cam@mcc.id.au>
date:      Tue Apr 02 15:05:46 2013 +1100
description:
Update for new pubrules requirements for {FP,LC,FPLC}WDs.

diffstat:

 publish/config.js     |   4 ----
 publish/maturities.js |  22 +++++++++++-----------
 publish/processing.js |   5 -----
 3 files changed, 11 insertions(+), 20 deletions(-)

diffs (92 lines):

diff --git a/publish/config.js b/publish/config.js
--- a/publish/config.js
+++ b/publish/config.js
@@ -198,20 +198,16 @@ Config.prototype = {
   get shortMaturity() {
     return maturities[this.maturity].short;
   },
 
   get longMaturity() {
     return maturities[this.maturity].long;
   },
 
-  get longerMaturity() {
-    return maturities[this.maturity].longer;
-  },
-
   get publicationYear() {
     return this._publicationDate.getFullYear();
   },
 
   get publicationDate() {
     var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
     var d = this._publicationDate;
     return (d.getDate() < 10 ? '0' : '') + d.getDate() + ' ' + months[d.getMonth()] + ' ' + d.getFullYear();
diff --git a/publish/maturities.js b/publish/maturities.js
--- a/publish/maturities.js
+++ b/publish/maturities.js
@@ -1,11 +1,11 @@
-exports.ED = { short: 'ED', long: 'Editor’s Draft', longer: 'Editor’s Draft' };
-exports['WG-NOTE'] = { short: 'NOTE', long: 'Working Group Note', longer: 'Working Group Note' };
-exports.WD = { short: 'WD', long: 'Working Draft', longer: 'Working Draft' };
-exports.FPWD = { short: 'WD', long: 'Working Draft', longer: 'First Public Working Draft' };
-exports.LCWD = { short: 'WD', long: 'Working Draft', longer: 'Last Call Working Draft' };
-exports.FPLCWD = { short: 'WD', long: 'Working Draft', longer: 'First Public and Last Call Working Draft' };
-exports.CR = { short: 'CR', long: 'Candidate Recommendation', longer: 'Candidate Recommendation' };
-exports.PR = { short: 'PR', long: 'Proposed Recommendation', longer: 'Proposed Recommendation' };
-exports.PER = { short: 'PER', long: 'Proposed Edited Recommendation', longer: 'Proposed Edited Recommendation' };
-exports.REC = { short: 'REC', long: 'Recommendation', longer: 'Recommendation' };
-exports.RSCND = { short: 'RSCND', long: 'Rescinded Recommendation', longer: 'Rescinded Recommendation' };
+exports.ED = { short: 'ED', long: 'Editor’s Draft' };
+exports['WG-NOTE'] = { short: 'NOTE', long: 'Working Group Note' };
+exports.WD = { short: 'WD', long: 'Working Draft' };
+exports.FPWD = { short: 'WD', long: 'Working Draft' };
+exports.LCWD = { short: 'WD', long: 'Working Draft' };
+exports.FPLCWD = { short: 'WD', long: 'Working Draft' };
+exports.CR = { short: 'CR', long: 'Candidate Recommendation' };
+exports.PR = { short: 'PR', long: 'Proposed Recommendation' };
+exports.PER = { short: 'PER', long: 'Proposed Edited Recommendation' };
+exports.REC = { short: 'REC', long: 'Recommendation' };
+exports.RSCND = { short: 'RSCND', long: 'Rescinded Recommendation' };
diff --git a/publish/processing.js b/publish/processing.js
--- a/publish/processing.js
+++ b/publish/processing.js
@@ -502,20 +502,16 @@ function doElementSummary(conf, page, n)
                         interfaces: formatElementInterfaces(conf, element, n) || '' });
   utils.replace(n, e);
 }
 
 function doLongMaturity(conf, page, n) {
   utils.replace(n, n.ownerDocument.createTextNode(conf.longMaturity));
 }
 
-function doLongerMaturity(conf, page, n) {
-  utils.replace(n, n.ownerDocument.createTextNode(conf.longerMaturity));
-}
-
 function doDate(conf, page, n) {
   utils.replace(n, n.ownerDocument.createTextNode(conf.publicationDate));
 }
 
 function replaceWithURLLink(n, actual, visible) {
   utils.replace(n, utils.parse('<a href="{{actual}}" class="url">{{visible}}</a>',
                                { actual: actual,
                                  visible: visible || actual }));
@@ -661,17 +657,16 @@ exports.processReplacements = function(c
     minitoc: doMiniTOC,
     fulltoc: doFullTOC,
     completeidl: doCompleteIDL,
     interface: doInterface,
     example: doExample,
     includefile: doIncludeFile,
     elementsummary: doElementSummary,
     maturity: doLongMaturity,
-    longermaturity: doLongerMaturity,
     date: doDate,
     thisversion: doThisVersion,
     latestversion: doLatestVersion,
     includelatesteditorsdraft: doIncludeLatestEditorsDraft,
     previousversion: doPreviousVersion,
     copyright: doCopyright,
     locallink: doLocalLink,
     attributetable: doAttributeTable,

Received on Friday, 5 April 2013 07:34:19 UTC