Skip to content

Commit

Permalink
Update PDF/UA-2 and Tagged profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Feb 23, 2024
1 parent 90ad303 commit cb60c92
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>The value of &quot;pdfaid:rev&quot; shall be the four digit year</description>
<test>/^\d{4}$/.test(rev)</test>
<error>
<message>The value of &quot;pdfaid:rev&quot; (%1) not the four digit year</message>
<message>The value of &quot;pdfaid:rev&quot; (%1) is not the four digit year</message>
<arguments>
<argument>rev</argument>
</arguments>
Expand Down
4 changes: 2 additions & 2 deletions PDF_UA/1/7.2 Text/verapdf-profile-7-2-t15.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_1">
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00">
<name>ISO 14289-1:2014 - 7.2 Text - Intersections of cells</name>
<description>Table cell shall not have intersection with other cells</description>
<description>A table cell shall not have intersection with other cells</description>
</details>
<hash></hash>
<rules>
<rule object="SETableCell" tags="major,machine,structure,table">
<id specification="ISO_14289_1" clause="7.2" testNumber="15"/>
<description>Table cell shall not have intersection with other cells</description>
<description>A table cell shall not have intersection with other cells</description>
<test>hasIntersection != true</test>
<error>
<message>Table cell has intersection with other cells</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<description>The value of &quot;pdfuaid:rev&quot; shall be the four digit year</description>
<test>/^\d{4}$/.test(rev)</test>
<error>
<message>The value of &quot;pdfuaid:rev&quot; (%1) not the four digit year</message>
<message>The value of &quot;pdfuaid:rev&quot; (%1) is not the four digit year</message>
<arguments>
<argument>rev</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.137+03:00">
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.5.14 Footnotes and Endnotes (FENote) - NoteType</name>
<description>The value of the NoteType attribute of the FENote structure element shall be Footnote, Endnote or None</description>
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.5.14 Footnotes and Endnotes (FENote) - Ref entry</name>
<description>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</description>
</details>
<hash></hash>
<rules>
<rule object="SEFENote" tags="structure,note">
<rule object="SEFENote" deferred="true" tags="structure,note">
<id specification="ISO_14289_2" clause="8.2.5.14" testNumber="3"/>
<description>The value of the NoteType attribute of the FENote structure element shall be Footnote, Endnote or None</description>
<test>NoteType == 'Footnote' || NoteType == 'Endnote' || NoteType == 'None'</test>
<description>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</description>
<test>ghostRefs == null</test>
<error>
<message>NoteType attribute of the FENote structure element has value %1 instead of Footnote, Endnote or None</message>
<message>Ref entry in the FENote reference structure elements with object numbers %1, while
these structure elements do not reference this FENote</message>
<arguments>
<argument>NoteType</argument>
<argument>ghostRefs</argument>
</arguments>
</error>
<references/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.137+03:00">
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.5.14 Footnotes and Endnotes (FENote) - NoteType</name>
<description>The value of the NoteType attribute of the FENote structure element shall be Footnote, Endnote or None</description>
</details>
<hash></hash>
<rules>
<rule object="SEFENote" tags="structure,note">
<id specification="ISO_14289_2" clause="8.2.5.14" testNumber="4"/>
<description>The value of the NoteType attribute of the FENote structure element shall be Footnote, Endnote or None</description>
<test>NoteType == 'Footnote' || NoteType == 'Endnote' || NoteType == 'None'</test>
<error>
<message>NoteType attribute of the FENote structure element has value %1 instead of Footnote, Endnote or None</message>
<arguments>
<argument>NoteType</argument>
</arguments>
</error>
<references/>
</rule>
</rules>
<variables/>
</profile>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.098+03:00">
<name>ISO 14289-2:202x - 8.2 logical structure - 8.2.5.26 Table - Regular Table</name>
<description>Tables shall be regular. Table cell shall not have intersection with other cells</description>
<description>Tables shall be regular. A table cell shall not have intersection with other cells</description>
</details>
<hash></hash>
<rules>
<rule object="SETableCell" tags="structure,table">
<id specification="ISO_14289_2" clause="8.2.5.26" testNumber="1"/>
<description>Tables shall be regular. Table cell shall not have intersection with other cells</description>
<description>Tables shall be regular. A table cell shall not have intersection with other cells</description>
<test>hasIntersection != true</test>
<error>
<message>Table cell has intersection with other cells</message>
Expand Down
20 changes: 17 additions & 3 deletions PDF_UA/ISO-32005-Tagged.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_4">
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2022-05-23T21:45:28.872+03:00">
<name>Tagged PDF profile for ISO 32005 specification</name>
<description>Profile for validation of Tagged PDF structure tree relations for PDF 1.7 and PDF 2.0 standard structure types</description>
Expand Down Expand Up @@ -19910,16 +19910,30 @@
</rule>
<rule object="PDStructElem" tags="structure">
<id specification="ISO_32005" clause="6.2" testNumber="1659"/>
<description>Struct element shall contain the P entry according to ISO 32000-2:2020, 14.7.2, Table 323</description>
<description>A structure element dictionary shall contain the P (parent) entry according to ISO 32000-2:2020, 14.7.2, Table 323</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<message>A structure element dictionary does not contain the P (parent) entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO-32000-2" clause="Annex_L"/>
</references>
</rule>
<rule object="SEMathMLStructureElement" tags="structure">
<id specification="ISO_32005" clause="6.2" testNumber="1660"/>
<description>The math structure type shall occur only as a child of a Formula structure element</description>
<test>parentStandardType == 'Formula' || parentStandardType == 'MathML'</test>
<error>
<message>The math structure type is nested within %1 tag instead of Formula</message>
<arguments>
<argument>parentStandardType</argument>
</arguments>
</error>
<references>
<reference specification="ISO-32000-2" clause="Annex_L"/>
</references>
</rule>
</rules>
<variables/>
</profile>

0 comments on commit cb60c92

Please sign in to comment.