Skip to content

Commit

Permalink
Update property types to Set/List of String
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and github-actions[bot] committed May 15, 2024
1 parent a4eca1b commit ca9bd6e
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 93 deletions.
4 changes: 2 additions & 2 deletions PDF_UA/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<rule object="SEMarkedContent" tags="artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>isTaggedContent == false || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>isTaggedContent == false || parentsTags.contains('Artifact') == false</test>
<error>
<message>Tagged content (parent struct element %1) is present inside content marked as Artifact</message>
<arguments>
Expand All @@ -91,7 +91,7 @@
<rule object="SESimpleContentItem" tags="artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="3"/>
<description>Content shall be marked as Artifact or tagged as real content</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/PDFUA-2-ISO32005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<rule object="SESimpleContentItem" tags="artifact">
<id specification="ISO_14289_2" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down
2 changes: 1 addition & 1 deletion PDF_UA/PDFUA-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<rule object="SESimpleContentItem" tags="artifact">
<id specification="ISO_14289_2" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down
80 changes: 38 additions & 42 deletions PDF_UA/WCAG-2-2-Complete.xml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions PDF_UA/WCAG-2-2-Machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<rule object="SEMarkedContent" tags="major,machine,artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="2"/>
<description>Tagged content should not present inside content marked as Artifact</description>
<test>(isTaggedContent == false || isArtifact == true) || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length == 0</test>
<test>(isTaggedContent == false || isArtifact == true) || parentsTags.contains('Artifact') == false</test>
<error>
<message>Tagged content (parent struct element %1) is present inside content marked as Artifact</message>
<arguments>
Expand All @@ -33,7 +33,7 @@
<rule object="SESimpleContentItem" tags="critical,machine,artifact">
<id specification="ISO_14289_1" clause="7.1" testNumber="3"/>
<description>Content shall be marked as Artifact or tagged as real content</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down Expand Up @@ -1420,7 +1420,7 @@
<rule object="SATOCI" tags="minor,machine,structure,toc">
<id specification="WCAG_2_2" clause="4.1.2" testNumber="29"/>
<description>TOCI shall contain one or more text lines</description>
<test>errorCodes.split(',').filter(elem =&gt; elem == 1000).length == 0</test>
<test>errorCodes.contains('1000') == false</test>
<error>
<message>TOCI doesn't have a text</message>
<arguments>
Expand Down
76 changes: 36 additions & 40 deletions PDF_UA/WCAG-2-2.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions PDF_UA/WTPDF-1-0-Accessibility.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<rule object="MainXMPPackage" tags="metadata">
<id specification="WTPDF_1_0" clause="6.1.3" testNumber="1"/>
<description>File conforming to the WTPDF 1.0 conformance level for accessibility shall include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#accessibility1.0" as its pdfd:conformsTo entry</description>
<test>declarations.split(',').filter(declarations =&gt; declarations == 'http://pdfa.org/declarations/wtpdf#accessibility1.0').length == 1</test>
<test>declarations.contains('http://pdfa.org/declarations/wtpdf#accessibility1.0') == true</test>
<error>
<message>File conforming to the WTPDF 1.0 conformance level for accessibility doesn't include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#accessibility1.0" as its pdfd:conformsTo entry</message>
<arguments/>
Expand Down Expand Up @@ -43,7 +43,7 @@
<rule object="SESimpleContentItem" tags="artifact">
<id specification="WTPDF_1_0" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down
4 changes: 2 additions & 2 deletions PDF_UA/WTPDF-1-0-Reuse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<rule object="MainXMPPackage" tags="metadata">
<id specification="WTPDF_1_0" clause="6.1.2" testNumber="1"/>
<description>File conforming to the WTPDF 1.0 conformance level for reuse shall include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#reuse1.0" as its pdfd:conformsTo entry</description>
<test>declarations.split(',').filter(declarations =&gt; declarations == 'http://pdfa.org/declarations/wtpdf#reuse1.0').length == 1</test>
<test>declarations.contains('http://pdfa.org/declarations/wtpdf#reuse1.0') == true</test>
<error>
<message>File conforming to the WTPDF 1.0 conformance level for reuse doesn't include a PDF Declaration with the URI identifier "http://pdfa.org/declarations/wtpdf#reuse1.0" as its pdfd:conformsTo entry</message>
<arguments/>
Expand Down Expand Up @@ -43,7 +43,7 @@
<rule object="SESimpleContentItem" tags="artifact">
<id specification="WTPDF_1_0" clause="8.2.2" testNumber="1"/>
<description>Content that is not considered real shall be an artifact</description>
<test>isTaggedContent == true || parentsTags.split('&amp;').filter(elem =&gt; elem == 'Artifact').length &gt; 0</test>
<test>isTaggedContent == true || parentsTags.contains('Artifact') == true</test>
<error>
<message>Content is neither marked as Artifact nor tagged as real content</message>
<arguments/>
Expand Down

0 comments on commit ca9bd6e

Please sign in to comment.