From d5ec3d080f5e1e0d980bb8822f254abb2344d65e Mon Sep 17 00:00:00 2001 From: bdoubrov Date: Fri, 26 Jan 2024 10:07:24 +0000 Subject: [PATCH] Update rules descriptions and error messages --- PDF_UA/PDFUA-1.xml | 18 +++++++++--------- PDF_UA/PDFUA-2-ISO32005.xml | 22 +++++++++++----------- PDF_UA/PDFUA-2.xml | 22 +++++++++++----------- PDF_UA/WCAG-2-2-Complete.xml | 4 ++-- PDF_UA/WCAG-2-2-Machine.xml | 4 ++-- 5 files changed, 35 insertions(+), 35 deletions(-) diff --git a/PDF_UA/PDFUA-1.xml b/PDF_UA/PDFUA-1.xml index e1f769ff..37726e0e 100644 --- a/PDF_UA/PDFUA-1.xml +++ b/PDF_UA/PDFUA-1.xml @@ -18,7 +18,7 @@ - The value of pdfuaid:part shall be the part number of the International Standard to which the file conforms + The value of "pdfuaid:part" shall be the part number of the International Standard to which the file conforms part == 1 The "part" property of the PDF/UA Identification Schema is %1 instead of 1 for PDF/UA-1 conforming file @@ -30,10 +30,10 @@ - Property part of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "part" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" partPrefix == null || partPrefix == "pdfuaid" - Property part of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "part" of the PDF/UA Identification Schema has invalid namespace prefix %1 partPrefix @@ -42,10 +42,10 @@ - Property amd of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "amd" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" amdPrefix == null || amdPrefix == "pdfuaid" - Property amd of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "amd" of the PDF/UA Identification Schema has invalid namespace prefix %1 amdPrefix @@ -54,10 +54,10 @@ - Property corr of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "corr" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" corrPrefix == null || corrPrefix == "pdfuaid" - Property corr of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "corr" of the PDF/UA Identification Schema has invalid namespace prefix %1 corrPrefix @@ -199,10 +199,10 @@ - A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355 + A structure element dictionary shall contain the P (parent) entry according to ISO 32000-1:2008, 14.7.2, Table 355 containsParent == true - A struct element does not contain the P entry + A structure element dictionary does not contain the P (parent) entry diff --git a/PDF_UA/PDFUA-2-ISO32005.xml b/PDF_UA/PDFUA-2-ISO32005.xml index 3b62f27f..6ce98a32 100644 --- a/PDF_UA/PDFUA-2-ISO32005.xml +++ b/PDF_UA/PDFUA-2-ISO32005.xml @@ -18,7 +18,7 @@ - The value of pdfuaid:part shall be the part number of the International Standard to which the file conforms + The value of "pdfuaid:part" shall be the part number of the International Standard to which the file conforms part == 2 The "part" property of the PDF/UA Identification Schema is %1 instead of 2 for PDF/UA-2 conforming file @@ -30,10 +30,10 @@ - Property part of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "part" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" partPrefix == null || partPrefix == "pdfuaid" - Property part of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "part" of the PDF/UA Identification Schema has invalid namespace prefix %1 partPrefix @@ -42,10 +42,10 @@ - Property rev of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "rev" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" revPrefix == null || revPrefix == "pdfuaid" - Property rev of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "rev" of the PDF/UA Identification Schema has invalid namespace prefix %1 revPrefix @@ -54,10 +54,10 @@ - The value of pdfuaid:rev shall be the four digit year + The value of "pdfuaid:rev" shall be the four digit year /^\d{4}$/.test(rev) - The value of pdfuaid:rev (%1) not the four digit year + The value of "pdfuaid:rev" (%1) not the four digit year rev @@ -78,10 +78,10 @@ - Struct element shall contain the P entry according to ISO 32000-2:2020, 14.7.2, Table 323 + A structure element dictionary shall contain the P (parent) entry according to ISO 32000-2:2020, 14.7.2, Table 323 containsParent == true - A struct element does not contain the P entry + A structure element dictionary does not contain the P (parent) entry @@ -186,7 +186,7 @@ - Each TOCI in the table of contents shall identify the target of the reference using the Ref entry, either directly on the TOCI structure element itself or on a child structure element contained within + Each TOCI in the table of contents shall identify the target of the reference using the Ref entry, either directly on the TOCI structure element itself or on one of its child structure elements containsRef == true TOCI in the TOC does not contain the Ref entry, neither directly on the TOCI structure element itself nor on its descendant structure elements @@ -216,7 +216,7 @@ - Real content that refers to footnotes or endnotes (real content enclosed in FENote structure elements) shall use the Ref entry as specified in 8.8 on the referring structure element to reference the FENote. The corresponding FENote shall also use the Ref entry to identify all citations that reference it + Real content that refers to footnotes or endnotes (real content enclosed in FENote structure elements) shall use the Ref entry on the referring structure element to reference the FENote. The corresponding FENote shall also use the Ref entry to identify all citations that reference it orphanRefs == null Ref entry in the FENote does not reference structure elements with object numbers %1, while these structure elements reference this FENote diff --git a/PDF_UA/PDFUA-2.xml b/PDF_UA/PDFUA-2.xml index e2f97663..c5cb3a1d 100644 --- a/PDF_UA/PDFUA-2.xml +++ b/PDF_UA/PDFUA-2.xml @@ -18,7 +18,7 @@ - The value of pdfuaid:part shall be the part number of the International Standard to which the file conforms + The value of "pdfuaid:part" shall be the part number of the International Standard to which the file conforms part == 2 The "part" property of the PDF/UA Identification Schema is %1 instead of 2 for PDF/UA-2 conforming file @@ -30,10 +30,10 @@ - Property part of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "part" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" partPrefix == null || partPrefix == "pdfuaid" - Property part of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "part" of the PDF/UA Identification Schema has invalid namespace prefix %1 partPrefix @@ -42,10 +42,10 @@ - Property rev of the PDF/UA Identification Schema shall have namespace prefix pdfuaid + Property "rev" of the PDF/UA Identification Schema shall have namespace prefix "pdfuaid" revPrefix == null || revPrefix == "pdfuaid" - Property rev of the PDF/UA Identification Schema has invalid namespace prefix %1 + Property "rev" of the PDF/UA Identification Schema has invalid namespace prefix %1 revPrefix @@ -54,10 +54,10 @@ - The value of pdfuaid:rev shall be the four digit year + The value of "pdfuaid:rev" shall be the four digit year /^\d{4}$/.test(rev) - The value of pdfuaid:rev (%1) not the four digit year + The value of "pdfuaid:rev" (%1) not the four digit year rev @@ -78,10 +78,10 @@ - Struct element shall contain the P entry according to ISO 32000-2:2020, 14.7.2, Table 323 + A structure element dictionary shall contain the P (parent) entry according to ISO 32000-2:2020, 14.7.2, Table 323 containsParent == true - A struct element does not contain the P entry + A structure element dictionary does not contain the P (parent) entry @@ -186,7 +186,7 @@ - Each TOCI in the table of contents shall identify the target of the reference using the Ref entry, either directly on the TOCI structure element itself or on a child structure element contained within + Each TOCI in the table of contents shall identify the target of the reference using the Ref entry, either directly on the TOCI structure element itself or on one of its child structure elements containsRef == true TOCI in the TOC does not contain the Ref entry, neither directly on the TOCI structure element itself nor on its descendant structure elements @@ -216,7 +216,7 @@ - Real content that refers to footnotes or endnotes (real content enclosed in FENote structure elements) shall use the Ref entry as specified in 8.8 on the referring structure element to reference the FENote. The corresponding FENote shall also use the Ref entry to identify all citations that reference it + Real content that refers to footnotes or endnotes (real content enclosed in FENote structure elements) shall use the Ref entry on the referring structure element to reference the FENote. The corresponding FENote shall also use the Ref entry to identify all citations that reference it orphanRefs == null Ref entry in the FENote does not reference structure elements with object numbers %1, while these structure elements reference this FENote diff --git a/PDF_UA/WCAG-2-2-Complete.xml b/PDF_UA/WCAG-2-2-Complete.xml index 30d4bfcb..0795c5a8 100644 --- a/PDF_UA/WCAG-2-2-Complete.xml +++ b/PDF_UA/WCAG-2-2-Complete.xml @@ -141,10 +141,10 @@ - A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355 + A structure element dictionary shall contain the P (parent) entry according to ISO 32000-1:2008, 14.7.2, Table 355 containsParent == true - A struct element does not contain the P entry + A structure element dictionary does not contain the P (parent) entry diff --git a/PDF_UA/WCAG-2-2-Machine.xml b/PDF_UA/WCAG-2-2-Machine.xml index 8456e9de..a2f81762 100644 --- a/PDF_UA/WCAG-2-2-Machine.xml +++ b/PDF_UA/WCAG-2-2-Machine.xml @@ -141,10 +141,10 @@ - A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355 + A structure element dictionary shall contain the P (parent) entry according to ISO 32000-1:2008, 14.7.2, Table 355 containsParent == true - A struct element does not contain the P entry + A structure element dictionary does not contain the P (parent) entry