Skip to content

Commit

Permalink
PDF/UA-1. Update rules 7.18.1-1 - 7.18.1-3
Browse files Browse the repository at this point in the history
  • Loading branch information
bdoubrov authored and github-actions[bot] committed Apr 12, 2024
1 parent 9fe24a3 commit 8931c3a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions PDF_UA/PDFUA-1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,8 @@
</rule>
<rule object="PDAnnot" tags="annotation">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="1"/>
<description>An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<description>An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'PrinterMark' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<error>
<message>%1 annotation is an Artifact or is nested within %2 tag (standard type = %3) instead of Annot</message>
<arguments>
Expand All @@ -925,8 +925,8 @@
</rule>
<rule object="PDAnnot" tags="annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="2"/>
<description>An annotation (except annotations of type Link, Widget or Popup, or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<description>An annotation (except Widget annotations or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>%1 annotation whose hidden flag is not set and whose rectangle is not outside the crop-box has neither Contents key nor an Alt entry in the enclosing structure element</message>
<arguments>
Expand All @@ -937,10 +937,10 @@
</rule>
<rule object="PDWidgetAnnot" tags="annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="3"/>
<description>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<description>A form field shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<test>isOutsideCropBox == true || (F &amp; 2) == 2 || (TU != null &amp;&amp; TU != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<message>A form field neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<arguments/>
</error>
<references/>
Expand Down
12 changes: 6 additions & 6 deletions PDF_UA/WCAG-2-2-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@
</rule>
<rule object="PDAnnot" tags="major,machine,annotation">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="1"/>
<description>An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<description>An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'PrinterMark' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<error>
<message>%1 annotation is an Artifact or is nested within %2 tag (standard type = %3) instead of Annot</message>
<arguments>
Expand All @@ -911,8 +911,8 @@
</rule>
<rule object="PDAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="2"/>
<description>An annotation (except annotations of type Link, Widget or Popup, or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<description>An annotation (except Widget annotations or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>%1 annotation whose hidden flag is not set and whose rectangle is not outside the crop-box has neither Contents key nor an Alt entry in the enclosing structure element</message>
<arguments>
Expand All @@ -923,10 +923,10 @@
</rule>
<rule object="PDWidgetAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="3"/>
<description>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<description>A form field shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<test>isOutsideCropBox == true || (F &amp; 2) == 2 || (TU != null &amp;&amp; TU != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<message>A form field neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<arguments/>
</error>
<references/>
Expand Down
12 changes: 6 additions & 6 deletions PDF_UA/WCAG-2-2-Machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,8 @@
</rule>
<rule object="PDAnnot" tags="major,machine,annotation">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="1"/>
<description>An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<description>An annotation, excluding annotations of subtype Widget, PrinterMark or Link, shall be nested within an Annot tag</description>
<test>Subtype == 'Widget' || Subtype == 'PrinterMark' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || structParentStandardType == 'Annot'</test>
<error>
<message>%1 annotation is an Artifact or is nested within %2 tag (standard type = %3) instead of Annot</message>
<arguments>
Expand All @@ -911,8 +911,8 @@
</rule>
<rule object="PDAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="2"/>
<description>An annotation (except annotations of type Link, Widget or Popup, or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<description>An annotation (except Widget annotations or hidden annotations, or those having rectangle outside the crop-box) shall have either Contents key or an Alt entry in the enclosing structure element</description>
<test>Subtype == 'Widget' || isOutsideCropBox == true || (F &amp; 2) == 2 || (Contents != null &amp;&amp; Contents != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>%1 annotation whose hidden flag is not set and whose rectangle is not outside the crop-box has neither Contents key nor an Alt entry in the enclosing structure element</message>
<arguments>
Expand All @@ -923,10 +923,10 @@
</rule>
<rule object="PDWidgetAnnot" tags="major,machine,annotation,alt-text">
<id specification="ISO_14289_1" clause="7.18.1" testNumber="3"/>
<description>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<description>A form field shall have a TU key present or all its Widget annotations shall have alternative descriptions (in the form of an Alt entry in the enclosing structure elements)</description>
<test>isOutsideCropBox == true || (F &amp; 2) == 2 || (TU != null &amp;&amp; TU != '') || (Alt != null &amp;&amp; Alt != '')</test>
<error>
<message>A form field whose hidden flag is not set and whose rectangle is not outside the crop-box neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<message>A form field neither has TU key nor its Widget annotations have alternative descriptions (in the form of an Alt entry in the enclosing structure element)</message>
<arguments/>
</error>
<references/>
Expand Down

0 comments on commit 8931c3a

Please sign in to comment.