From 3ade8d97ac208e175e7528b64152aacf363508f6 Mon Sep 17 00:00:00 2001 From: Steve LLamb <38917682+SteveLLamb@users.noreply.github.com> Date: Tue, 29 Sep 2026 10:46:27 -0700 Subject: [PATCH] Name the RDD in the Introduction's informative statement RDDs are not Engineering Documents, so the generated Introduction statement now reads "this Registered Disclosure Document" for RDDs. ST, RP, EG and ER are unchanged; AG and OM still get no statement. Document the generated statement in the Introduction section of doc/main.html. --- doc/main.html | 4 ++++ smpte.js | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/main.html b/doc/main.html index 1fcee5c..87a70cd 100644 --- a/doc/main.html +++ b/doc/main.html @@ -558,6 +558,10 @@

Introduction section

The heading shall not be present.

+

When pubType is ST, RP, EG, ER or + RDD, a statement that the clause is entirely informative is generated automatically at the start of + the clause. This statement shall not be supplied by the author.

+
<section id="sec-introduction">
   <p>This is the introduction.</p>
diff --git a/smpte.js b/smpte.js
index abe16ce..cf802a4 100644
--- a/smpte.js
+++ b/smpte.js
@@ -375,9 +375,17 @@ function insertIntroduction(docMetadata) {
 
   h2.innerText = "Introduction";
 
-  if (smpte.ENGDOC_PUBTYPES.has(docMetadata.pubType)) {
+  /* RDDs are not Engineering Documents, even though RDD is in ENGDOC_PUBTYPES */
+  let docNoun = null;
+  if (docMetadata.pubType === smpte.RDD_PUBTYPE) {
+    docNoun = "Registered Disclosure Document";
+  } else if (smpte.ENGDOC_PUBTYPES.has(docMetadata.pubType)) {
+    docNoun = "Engineering Document";
+  }
+
+  if (docNoun !== null) {
     let b = document.createElement("p");
-    b.innerHTML = "This clause is entirely informative and does not form an integral part of this Engineering Document.";
+    b.innerHTML = `This clause is entirely informative and does not form an integral part of this ${docNoun}.`;
     sec.insertBefore(b, h2.nextSibling)
   }
 }