Skip to content

Commit

Permalink
WCAG. Remove rules about table merged cells
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and github-actions[bot] committed Nov 8, 2024
1 parent 778d94c commit d8e7d1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 128 deletions.
54 changes: 0 additions & 54 deletions PDF_UA/WCAG-2-2-Complete.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,26 +1150,6 @@
<reference specification="ISO 32000-1:2008" clause="9.6.6.4"/>
</references>
</rule>
<rule object="PDType1Font" tags="minor,machine,font">
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="1"/>
<description>If the FontDescriptor dictionary of an embedded Type 1 font contains a CharSet string, then it shall list the character names of all glyphs present in the font program, regardless of whether a glyph in the font is referenced or used by the PDF or not</description>
<test>containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true</test>
<error>
<message>A CharSet entry in the Descriptor dictionary of a Type1 font incorrectly lists glyphs present in the font program</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="PDCIDFont" tags="minor,machine,font">
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not</description>
<test>containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="Glyph" tags="major,machine,font">
<id specification="ISO_14289_1" clause="7.21.5" testNumber="1"/>
<description>For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and in the embedded font program shall be consistent</description>
Expand Down Expand Up @@ -1375,40 +1355,6 @@
<reference specification="ISO 32000-1:2008" clause="14.9.3"/>
</references>
</rule>
<rule object="SETD" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="1"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SETH" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="2"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SATableBorderCell" tags="cosmetic,human,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="3"/>
<description>Table shouldn't have merged cells</description>
<test>colSpan == 1 &amp;&amp; rowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments>
<argument></argument>
<argument></argument>
<argument name="structureID">structureID</argument>
</arguments>
</error>
<references/>
</rule>
<rule object="SAP" tags="minor,human,structure,paragraph">
<id specification="WCAG_2_2" clause="4.1.2" testNumber="1"/>
<description>Incorrect use of a paragraph</description>
Expand Down
40 changes: 0 additions & 40 deletions PDF_UA/WCAG-2-2-Machine.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,26 +1150,6 @@
<reference specification="ISO 32000-1:2008" clause="9.6.6.4"/>
</references>
</rule>
<rule object="PDType1Font" tags="minor,machine,font">
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="1"/>
<description>If the FontDescriptor dictionary of an embedded Type 1 font contains a CharSet string, then it shall list the character names of all glyphs present in the font program, regardless of whether a glyph in the font is referenced or used by the PDF or not</description>
<test>containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || CharSet == null || charSetListsAllGlyphs == true</test>
<error>
<message>A CharSet entry in the Descriptor dictionary of a Type1 font incorrectly lists glyphs present in the font program</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="PDCIDFont" tags="minor,machine,font">
<id specification="ISO_14289_1" clause="7.21.4.2" testNumber="2"/>
<description>If the FontDescriptor dictionary of an embedded CID font contains a CIDSet stream, then it shall identify all CIDs which are present in the font program, regardless of whether a CID in the font is referenced or used by the PDF or not</description>
<test>containsFontFile == false || fontName.search(/[A-Z]{6}\+/) != 0 || containsCIDSet == false || cidSetListsAllGlyphs == true</test>
<error>
<message>A CIDSet entry in the Font descriptor does not correctly identify all glyphs present in the embedded font subset</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="Glyph" tags="major,machine,font">
<id specification="ISO_14289_1" clause="7.21.5" testNumber="1"/>
<description>For every font embedded in a conforming file and used for rendering, the glyph width information in the font dictionary and in the embedded font program shall be consistent</description>
Expand Down Expand Up @@ -1345,26 +1325,6 @@
<reference specification="ISO 32000-1:2008" clause="14.9.3"/>
</references>
</rule>
<rule object="SETD" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="1"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SETH" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="2"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SAP" tags="minor,machine,structure,paragraph">
<id specification="WCAG_2_2" clause="4.1.2" testNumber="16"/>
<description>Redundant paragraph</description>
Expand Down
34 changes: 0 additions & 34 deletions PDF_UA/WCAG-2-2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,40 +120,6 @@
<reference specification="ISO 32000-1:2008" clause="14.9.3"/>
</references>
</rule>
<rule object="SETD" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="1"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SETH" tags="cosmetic,machine,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="2"/>
<description>Table shouldn't have merged cells</description>
<test>ColSpan == 1 &amp;&amp; RowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments/>
</error>
<references/>
</rule>
<rule object="SATableBorderCell" tags="cosmetic,human,structure,table">
<id specification="WCAG_2_2" clause="4.1.1" testNumber="3"/>
<description>Table shouldn't have merged cells</description>
<test>colSpan == 1 &amp;&amp; rowSpan == 1</test>
<error>
<message>Table has merged cells</message>
<arguments>
<argument></argument>
<argument></argument>
<argument name="structureID">structureID</argument>
</arguments>
</error>
<references/>
</rule>
<rule object="SAP" tags="minor,human,structure,paragraph">
<id specification="WCAG_2_2" clause="4.1.2" testNumber="1"/>
<description>Incorrect use of a paragraph</description>
Expand Down

0 comments on commit d8e7d1f

Please sign in to comment.