Skip to content

Commit

Permalink
PDF/UA. Add rules about struct tree root parent.
Browse files Browse the repository at this point in the history
PDF/UA-1(7.1-12),PDF/UA-2(8.2.1-2)
  • Loading branch information
bdoubrov authored and github-actions[bot] committed Dec 15, 2023
1 parent 16488d9 commit 5c998dc
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
12 changes: 12 additions & 0 deletions PDF_UA/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,18 @@
<reference specification="ISO 32000-1:2008" clause="14.7"/>
</references>
</rule>
<rule object="PDStructElem" tags="structure">
<id specification="ISO_14289_1" clause="7.1" testNumber="12"/>
<description>A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-1:2008" clause="14.7.2, Table 355"/>
</references>
</rule>
<rule object="PDOutline" tags="lang">
<id specification="ISO_14289_1" clause="7.2" testNumber="2"/>
<description>Natural language in the Outline entries shall be determined</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/PDFUA-2-ISO32005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
<reference specification="ISO 32000-2:2020" clause="14.7"/>
</references>
</rule>
<rule object="PDDocument">
<id specification="ISO_14289_2" clause="8.2.1" testNumber="2"/>
<description>Struct element shall contain the P 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>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.7.2, Table 323"/>
</references>
</rule>
<rule object="SESimpleContentItem">
<id specification="ISO_14289_2" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/PDFUA-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
<reference specification="ISO 32000-2:2020" clause="14.7"/>
</references>
</rule>
<rule object="PDDocument">
<id specification="ISO_14289_2" clause="8.2.1" testNumber="2"/>
<description>Struct element shall contain the P 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>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.7.2, Table 323"/>
</references>
</rule>
<rule object="SESimpleContentItem">
<id specification="ISO_14289_2" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/WCAG-22-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@
<reference specification="ISO 32000-1:2008" clause="14.7"/>
</references>
</rule>
<rule object="PDStructElem" tags="critical,machine,structure">
<id specification="ISO_14289_1" clause="7.1" testNumber="12"/>
<description>A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-1:2008" clause="14.7.2, Table 355"/>
</references>
</rule>
<rule object="PDOutline" tags="critical,machine,lang">
<id specification="ISO_14289_1" clause="7.2" testNumber="2"/>
<description>Natural language in the Outline entries shall be determined</description>
Expand Down
12 changes: 12 additions & 0 deletions PDF_UA/WCAG-22-Machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@
<reference specification="ISO 32000-1:2008" clause="14.7"/>
</references>
</rule>
<rule object="PDStructElem" tags="critical,machine,structure">
<id specification="ISO_14289_1" clause="7.1" testNumber="12"/>
<description>A struct element shall contain the P entry according to ISO 32000-1:2008, 14.7.2, Table 355</description>
<test>containsParent == true</test>
<error>
<message>A struct element does not contain the P entry</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-1:2008" clause="14.7.2, Table 355"/>
</references>
</rule>
<rule object="PDOutline" tags="critical,machine,lang">
<id specification="ISO_14289_1" clause="7.2" testNumber="2"/>
<description>Natural language in the Outline entries shall be determined</description>
Expand Down

0 comments on commit 5c998dc

Please sign in to comment.