Skip to content

Commit

Permalink
WCAG. Support Artifact tag
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Nov 3, 2023
1 parent 8dda4f0 commit ec6dfaa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions PDF_UA/1/7.1 General/verapdf-profile-7-1-t02.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<rule object="SEMarkedContent">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>structureTag == null || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>parentStructureTag == null || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<error>
<message>Tagged content (tag %1) is present inside content marked as Artifact</message>
<arguments>
<argument>structureTag</argument>
<argument>parentStructureTag</argument>
</arguments>
</error>
<references/>
Expand Down
4 changes: 2 additions & 2 deletions PDF_UA/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@
<rule object="SEMarkedContent">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>structureTag == null || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>parentStructureTag == null || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<error>
<message>Tagged content (tag %1) is present inside content marked as Artifact</message>
<arguments>
<argument>structureTag</argument>
<argument>parentStructureTag</argument>
</arguments>
</error>
<references/>
Expand Down
10 changes: 5 additions & 5 deletions PDF_UA/WCAG-21-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@
<rule object="SEMarkedContent" tags="major,machine,syntax,content">
<id specification="ISO_14289_1" clause="7.1" testNumber="1"/>
<description>Content marked as Artifact should not present inside tagged content</description>
<test>tag != 'Artifact' || parentStructureTag == null</test>
<test>tag != 'Artifact' || (parentStructureTag == null || isArtifact == true)</test>
<error>
<message>Content marked as Artifact is present inside tagged content (tag %1)</message>
<arguments>
Expand All @@ -926,11 +926,11 @@
<rule object="SEMarkedContent" tags="major,machine,syntax,content">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>structureTag == null || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>(parentStructureTag == null || isArtifact == true) || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<error>
<message>Tagged content (tag %1) is present inside content marked as Artifact</message>
<arguments>
<argument>structureTag</argument>
<argument>parentStructureTag</argument>
</arguments>
</error>
<references/>
Expand Down Expand Up @@ -1984,7 +1984,7 @@
<id specification="ISO_14289_1" clause="7.18.8" testNumber="1"/>
<description>PrinterMark annotations, if present, shall be considered Incidental Artifacts, as if they are hidden page
elements as defined in ISO 32000-1:2008, 14.8.2.2.3.</description>
<test>structParentType == null || isOutsideCropBox == true || (F &amp; 2) == 2</test>
<test>(structParentType == null || isArtifact == true) || isOutsideCropBox == true || (F &amp; 2) == 2</test>
<error>
<message>A PrinterMark annotation is included in logical structure</message>
<arguments/>
Expand Down Expand Up @@ -2298,7 +2298,7 @@
</variable>
<variable name="gStructureTag" object="SEMarkedContent">
<defaultValue>null</defaultValue>
<value>structureTag</value>
<value>parentStructureTag</value>
</variable>
<variable name="gMostCommonPageOrientation" object="PDDocument">
<defaultValue>null</defaultValue>
Expand Down

0 comments on commit ec6dfaa

Please sign in to comment.