@@ -195,8 +195,6 @@ function insertFrontMatter(docMetadata) {
195195 case smpte . ST_PUBTYPE :
196196 case smpte . RP_PUBTYPE :
197197 case smpte . EG_PUBTYPE :
198- case smpte . ER_PUBTYPE :
199- case smpte . RDD_PUBTYPE :
200198 if ( docMetadata . pubPart !== null )
201199 actualPubNumber += `-<span itemprop="doc-part" id="doc-part">${ docMetadata . pubPart } </span>` ;
202200 if ( docMetadata . pubStage === smpte . PUB_STAGE_PUB ) {
@@ -625,7 +623,7 @@ function insertConformance(docMetadata) {
625623 if ( ! ( docMetadata . pubType == smpte . RP_PUBTYPE || docMetadata . pubType == smpte . ST_PUBTYPE || docMetadata . pubType == smpte . AG_PUBTYPE ) ) {
626624 if ( sec !== null )
627625 logger_ . error ( `An ${ docMetadata . pubType } document must not contain a conformance section` ) ;
628- if ( ! ( docMetadata . pubType == smpte . EG_PUBTYPE || docMetadata . pubType == smpte . ER_PUBTYPE ) )
626+ if ( docMetadata . pubType != smpte . EG_PUBTYPE )
629627 return ;
630628 }
631629
@@ -702,14 +700,6 @@ function insertConformance(docMetadata) {
702700 interoperability information.</p>
703701 ` ;
704702
705- } else if ( docMetadata . pubType === smpte . ER_PUBTYPE ) {
706-
707- sec . innerHTML = `
708- <h2>Conformance</h2>
709- <p>This Engineering Report is meant to provide information to the
710- industry. It does not impose requirements.</p>
711- ` ;
712-
713703 } else {
714704 sec . innerHTML = `
715705 <h2>Conformance</h2>
@@ -730,7 +720,7 @@ function insertConformance(docMetadata) {
730720
731721const SMPTE_FOREWORD_ID = "sec-foreword" ;
732722
733- const SMPTE_GEN_FOREWORD_BOILERPLATE = `<h2>Foreword</h2>
723+ const SMPTE_AG_FOREWORD_BOILERPLATE = `<h2>Foreword</h2>
734724<p>The Society of Motion Picture and Television Engineers (SMPTE) is an
735725internationally-recognized standards developing organization. Headquartered
736726and incorporated in the United States of America, SMPTE has members in over
@@ -740,43 +730,26 @@ by SMPTE’s Technology Committees. Participation in these Committees is open
740730to all with a bona fide interest in their work. SMPTE cooperates closely
741731with other standards-developing organizations, including ISO, IEC and ITU.
742732SMPTE Engineering Documents are drafted in accordance with the rules given
743- in its Standards Operations Manual.</p>
744-
745- <p>For more information, please visit
733+ in its Standards Operations Manual. For more information, please visit
746734<a href="https://www.smpte.org">www.smpte.org</a>.</p>
747- `
748-
749- const SMPTE_AG_FOREWORD_BOILERPLATE = `${ SMPTE_GEN_FOREWORD_BOILERPLATE }
750735
751736<p>This Standards Administrative Guideline forms an adjunct to the use and
752737interpretation of the SMPTE Standards Operations Manual. In the event of a
753738conflict, the Operations Manual shall prevail.</p>
754739`
755- const SMPTE_RDD_FOREWORD_BOILERPLATE = `<h2>Foreword</h2>
756- <p>This document is a Registered Disclosure Document prepared by the sponsor(s) identified
757- below. It has been examined by the appropriate SMPTE Technology Committee and is believed to
758- contain adequate information to satisfy the objectives defined in the Scope, and to be
759- technically consistent.</p>
760- <p>This document is NOT a Standard, Recommended Practice or Engineering Guideline and does NOT
761- imply a finding or representation of the Society.</p>
762- <p>Every attempt has been made to ensure that the information contained in this document is
763- accurate. Errors in this document should be reported to the SMPTE Registered Disclosure
764- Document proponent(s) identified below with a copy to
765- 766-
767- <p>All other inquiries in respect of this document, including inquiries as to intellectual
768- property requirements, should be addressed to the SMPTE Registered Disclosure Document
769- proponent(s) identified below.</p>
770740
771- {{authorProse}}
772-
773- `
774- const SMPTE_ER_FOREWORD_BOILERPLATE = `${ SMPTE_GEN_FOREWORD_BOILERPLATE }
775-
776- {{authorProse}}
777- `
778-
779- const SMPTE_DOC_FOREWORD_BOILERPLATE = `${ SMPTE_GEN_FOREWORD_BOILERPLATE }
741+ const SMPTE_DOC_FOREWORD_BOILERPLATE = `<h2>Foreword</h2>
742+ <p>The Society of Motion Picture and Television Engineers (SMPTE) is an
743+ internationally-recognized standards developing organization. Headquartered
744+ and incorporated in the United States of America, SMPTE has members in over
745+ 80 countries on six continents. SMPTE’s Engineering Documents, including
746+ Standards, Recommended Practices, and Engineering Guidelines, are prepared
747+ by SMPTE’s Technology Committees. Participation in these Committees is open
748+ to all with a bona fide interest in their work. SMPTE cooperates closely
749+ with other standards-developing organizations, including ISO, IEC and ITU.
750+ SMPTE Engineering Documents are drafted in accordance with the rules given
751+ in its Standards Operations Manual.</p> For more information, please visit
752+ <a href="https://www.smpte.org">www.smpte.org</a>.</p>
780753
781754<p>At the time of publication no notice had been received by SMPTE claiming patent
782755rights essential to the implementation of this Engineering Document.
@@ -805,22 +778,6 @@ function insertForeword(docMetadata) {
805778 return ;
806779 }
807780
808- if ( docMetadata . pubType == smpte . RDD_PUBTYPE ) {
809- if ( sec === null )
810- logger_ . error ( "RDD must contain a Foreword section." ) ;
811-
812- }
813-
814- const SMPTE_PROPONENT_ID = document . getElementById ( "element-proponent" ) ;
815-
816- if ( SMPTE_PROPONENT_ID === null && docMetadata . pubType === smpte . RDD_PUBTYPE ) {
817- logger_ . error ( "Missing required proponents." ) ;
818- return ;
819- } if ( SMPTE_PROPONENT_ID !== null && docMetadata . pubType !== smpte . RDD_PUBTYPE ) {
820- logger_ . error ( "Proponents only allowed for RDD documents." ) ;
821- return ;
822- }
823-
824781 if ( sec === null && docMetadata . pubType != smpte . OM_PUBTYPE ) {
825782 sec = document . createElement ( "section" ) ;
826783 sec . id = SMPTE_FOREWORD_ID ;
@@ -831,27 +788,20 @@ function insertForeword(docMetadata) {
831788
832789 let authorProse = sec . innerHTML ;
833790
834- if ( smpte . ENGDOC_PUBTYPES . has ( docMetadata . pubType ) && docMetadata . pubType != smpte . RDD_PUBTYPE ) {
791+ if ( smpte . ENGDOC_PUBTYPES . has ( docMetadata . pubType ) ) {
835792 authorProse = `<p>This document was prepared by Technology Committee ${ docMetadata . pubTC } .</p>` + authorProse ;
836793 }
837794
838795 if ( docMetadata . pubType == smpte . AG_PUBTYPE ) {
839796 if ( authorProse . trim ( ) . length > 0 )
840797 logger_ . error ( "AGs cannot contain author-specified Foreword prose." )
841798 sec . innerHTML = fillTemplate ( SMPTE_AG_FOREWORD_BOILERPLATE , { copyrightYear : ( new Date ( ) ) . getFullYear ( ) } ) ;
842- } else if ( docMetadata . pubType == smpte . RDD_PUBTYPE ) {
843- sec . innerHTML = fillTemplate ( SMPTE_RDD_FOREWORD_BOILERPLATE , { authorProse : authorProse , copyrightYear : ( new Date ( ) ) . getFullYear ( ) } ) ;
844- } else if ( docMetadata . pubType == smpte . ER_PUBTYPE ) {
845- sec . innerHTML = fillTemplate ( SMPTE_ER_FOREWORD_BOILERPLATE , { authorProse : authorProse , copyrightYear : ( new Date ( ) ) . getFullYear ( ) } ) ;
846799 } else {
847800 sec . innerHTML = fillTemplate ( SMPTE_DOC_FOREWORD_BOILERPLATE , { authorProse : authorProse , copyrightYear : ( new Date ( ) ) . getFullYear ( ) } ) ;
848801 }
849802
850803}
851804
852-
853-
854-
855805function addHeadingLinks ( docMetadata ) {
856806 const headings = document . querySelectorAll ( "h2, h3, h4, h5, h6" ) ;
857807
@@ -958,7 +908,7 @@ function numberTables() {
958908
959909 headingLabel . appendChild ( document . createTextNode ( "Table " ) ) ;
960910 headingLabel . appendChild ( headingNumberElement ) ;
961- headingLabel . appendChild ( document . createTextNode ( " — " ) ) ;
911+ headingLabel . appendChild ( document . createTextNode ( " – " ) ) ;
962912
963913
964914 caption . insertBefore ( headingLabel , caption . firstChild ) ;
@@ -999,7 +949,7 @@ function numberFigures() {
999949
1000950 headingLabel . appendChild ( document . createTextNode ( "Figure " ) ) ;
1001951 headingLabel . appendChild ( headingNumberElement ) ;
1002- headingLabel . appendChild ( document . createTextNode ( " — " ) ) ;
952+ headingLabel . appendChild ( document . createTextNode ( " – " ) ) ;
1003953
1004954
1005955 figcaption . insertBefore ( headingLabel , figcaption . firstChild ) ;
@@ -1336,7 +1286,7 @@ function resolveLinks(docMetadata) {
13361286const CONFORMANCE_RE = / \s * ( s h a l l ) | ( s h o u l d ) | ( m a y ) \s / i;
13371287
13381288function checkConformanceNotation ( docMetadata ) {
1339- if ( ! ( docMetadata . pubType == smpte . EG_PUBTYPE || docMetadata . pubType == smpte . ER_PUBTYPE ) )
1289+ if ( docMetadata . pubType ! == smpte . EG_PUBTYPE )
13401290 return ;
13411291
13421292 for ( let section of document . querySelectorAll ( "section:not(:has(section))" ) ) {
@@ -1349,7 +1299,7 @@ function checkConformanceNotation(docMetadata) {
13491299 const r = CONFORMANCE_RE . exec ( section . innerText ) ;
13501300
13511301 if ( r !== null )
1352- logger_ . error ( `An ${ docMetadata . pubType } must not contain the conformance notation ${ r [ 1 ] } ` , section ) ;
1302+ logger_ . error ( `An EG must not contain the conformance notation ${ r [ 1 ] } ` , section ) ;
13531303
13541304 } ;
13551305}
0 commit comments