Skip to content

Commit

Permalink
Add WCAG2.2 Machine profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and github-actions[bot] committed Dec 13, 2023
1 parent 9821404 commit 628d68d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
11 changes: 6 additions & 5 deletions PDF_UA/PDFUA-2-ISO32005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,17 @@
<reference specification="ISO 32000-2:2020" clause="14.8.4.8.6"/>
</references>
</rule>
<rule object="CosTextString">
<rule object="PDOCConfig">
<id specification="ISO_14289_2" clause="8.7" testNumber="1"/>
<description>Text strings intended to be human readable shall not use the Unicode PUA</description>
<test>containsPUA == false</test>
<description>All optional content configuration dictionaries in the document, including the default optional content configuration dictionary, shall contain a Name entry (see ISO 32000-2:2020, Table 96) whose value is a non-empty text string when: a) a document contains a Configs entry in the OCProperties entry of the catalog dictionary (see ISO 32000-2:2020, Table 29), and b) the Configs entry contains at least one optional content configuration dictionary</description>
<test>gContainsConfigs == false || (Name != null &amp;&amp; Name.length() &gt; 0)</test>
<error>
<message>Text string intended to be human readable uses Unicode PUA</message>
<message>Missing or empty Name entry of the optional content configuration dictionary</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="7.9.2.2"/>
<reference specification="ISO 32000-2:2020" clause="7.7.2, Table 29"/>
<reference specification="ISO 32000-2:2020" clause="8.11.2.1, Table 96"/>
</references>
</rule>
<rule object="PDOCConfig">
Expand Down
11 changes: 6 additions & 5 deletions PDF_UA/PDFUA-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,17 @@
<reference specification="ISO 32000-2:2020" clause="14.8.4.8.6"/>
</references>
</rule>
<rule object="CosTextString">
<rule object="PDOCConfig">
<id specification="ISO_14289_2" clause="8.7" testNumber="1"/>
<description>Text strings intended to be human readable shall not use the Unicode PUA</description>
<test>containsPUA == false</test>
<description>All optional content configuration dictionaries in the document, including the default optional content configuration dictionary, shall contain a Name entry (see ISO 32000-2:2020, Table 96) whose value is a non-empty text string when: a) a document contains a Configs entry in the OCProperties entry of the catalog dictionary (see ISO 32000-2:2020, Table 29), and b) the Configs entry contains at least one optional content configuration dictionary</description>
<test>gContainsConfigs == false || (Name != null &amp;&amp; Name.length() &gt; 0)</test>
<error>
<message>Text string intended to be human readable uses Unicode PUA</message>
<message>Missing or empty Name entry of the optional content configuration dictionary</message>
<arguments/>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="7.9.2.2"/>
<reference specification="ISO 32000-2:2020" clause="7.7.2, Table 29"/>
<reference specification="ISO 32000-2:2020" clause="8.11.2.1, Table 96"/>
</references>
</rule>
<rule object="PDOCConfig">
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/WCAG-22-Complete.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_2">
<details creator="veraPDF Consortium" created="2020-04-07T14:37:52.486+03:00">
<details creator="veraPDF Consortium" created="2020-04-07T11:37:52.486Z">
<name>WCAG-2.2-Complete validation profile</name>
<description>Validation rules against WCAG 2.2 and ISO 14289-1:2014</description>
</details>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/WCAG-22-Machine.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_2">
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00">
<details creator="veraPDF Consortium" created="2020-03-13T07:58:04.098Z">
<name>WCAG 2.2 machine validation profile</name>
<description>Machine rules for WCAG 2.2 validation</description>
</details>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/WCAG-22.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_2">
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00">
<details creator="veraPDF Consortium" created="2020-03-13T07:58:04.098Z">
<name>WCAG 2.2 validation profile</name>
<description>Extra rules for WCAG 2.2 validation in addition to PDF/UA-1</description>
</details>
Expand Down

0 comments on commit 628d68d

Please sign in to comment.