-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30e3071
commit 2a06e8b
Showing
64 changed files
with
2,661 additions
and
1,446 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
....1/1 Perceivable/1.3 Adaptable/1.3.1 Info and Relationships/verapdf-profile-1-3-1-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.3 Adaptable - 1.3.1 Info and Relationships - Repeated non space characters</name> | ||
<description>Text should not contain repeated non space characters</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SARepeatedCharacters" tags="cosmetic,machine,text"> | ||
<id specification="WCAG_2_1" clause="1.3.1" testNumber="1"/> | ||
<description>Text should not contain repeated non space characters</description> | ||
<test>isNonSpace == false || numberOfRepeatedCharacters < 5</test> | ||
<error> | ||
<message>Text contains %1 repeated non space characters</message> | ||
<arguments> | ||
<argument>numberOfRepeatedCharacters</argument> | ||
</arguments> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
23 changes: 23 additions & 0 deletions
23
....1/1 Perceivable/1.3 Adaptable/1.3.1 Info and Relationships/verapdf-profile-1-3-1-t02.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.3 Adaptable - 1.3.1 Info and Relationships - Repeated space characters</name> | ||
<description>Text should not contain repeated space characters</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SARepeatedCharacters" tags="cosmetic,machine,text"> | ||
<id specification="WCAG_2_1" clause="1.3.1" testNumber="2"/> | ||
<description>Text should not contain repeated space characters</description> | ||
<test>isNonSpace == true || numberOfRepeatedCharacters < 3</test> | ||
<error> | ||
<message>Text contains %1 repeated space characters</message> | ||
<arguments> | ||
<argument>numberOfRepeatedCharacters</argument> | ||
</arguments> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
21 changes: 21 additions & 0 deletions
21
....1/1 Perceivable/1.3 Adaptable/1.3.1 Info and Relationships/verapdf-profile-1-3-1-t03.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.3 Adaptable - 1.3.1 Info and Relationships - Underlined text</name> | ||
<description>Underlined text</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SATextChunk" tags="cosmetic,human,text"> | ||
<id specification="WCAG_2_1" clause="1.3.1" testNumber="3"/> | ||
<description>Underlined text</description> | ||
<test>isUnderlined == false || parentsStandardTypes.split('&').filter(elem => (elem == 'Link' || elem == 'Reference')).length > 0</test> | ||
<error> | ||
<message>Underlined text is detected</message> | ||
<arguments/> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
21 changes: 21 additions & 0 deletions
21
....1/1 Perceivable/1.3 Adaptable/1.3.1 Info and Relationships/verapdf-profile-1-3-1-t04.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2020-03-13T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.3 Adaptable - 1.3.1 Info and Relationships - Different text style</name> | ||
<description>If text has a different style, it shall be tagged as Span, Em, Strong or other appropriate inline element</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SATextChunk" tags="minor,human,text,structure"> | ||
<id specification="WCAG_2_1" clause="1.3.1" testNumber="4"/> | ||
<description>If text has a different style, it shall be tagged as Span, Em, Strong or other appropriate inline element</description> | ||
<test>hasSpecialStyle == false || parentsStandardTypes.split('&').filter(elem => elem == 'Figure').length > 0</test> | ||
<error> | ||
<message>Text has a different style and not tagged as Span, Em, Strong or other appropriate inline element</message> | ||
<arguments/> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
8 changes: 4 additions & 4 deletions
8
PDF_UA/WCAG/2.1/1 Perceivable/1.3 Adaptable/1.3.4 Orientation/verapdf-profile-1-3-4-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...A/WCAG/2.1/1 Perceivable/1.4 Distinguishable/1.4.10 Reflow/verapdf-profile-1-4-10-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.4 Distinguishable - 1.4.10 Reflow - Bounding box of figure</name> | ||
<description>Bounding box should be present for a figure appearing in its entirety on a single page to indicate the area of the figure on the page</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SAFigure" tags="minor,machine,structure,figure"> | ||
<id specification="WCAG_2_1" clause="1.4.10" testNumber="1"/> | ||
<description>Bounding box should be present for a figure appearing in its entirety on a single page to indicate the area of the figure on the page</description> | ||
<test>page != lastPage || hasBBox == true</test> | ||
<error> | ||
<message>"Figure" structure element on a single page with no bounding box</message> | ||
<arguments/> | ||
</error> | ||
<references> | ||
<reference specification="ISO 32000-1:2008" clause="14.8.5.4.3"/> | ||
</references> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
9 changes: 5 additions & 4 deletions
9
.../1 Perceivable/1.4 Distinguishable/1.4.3 Contrast (Minimum)/verapdf-profile-1-4-3-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...CAG/2.1/1 Perceivable/1.4 Distinguishable/1.4.4 Resize Text/verapdf-profile-1-4-4-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.4 Distinguishable - 1.4.4 Resize Text - Small text</name> | ||
<description>Font size is too small: text may not be resized without assistive technology | ||
up to 200 percent without loss of content or functionality</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SATextChunk" tags="major,machine,text"> | ||
<id specification="WCAG_2_1" clause="1.4.4" testNumber="1"/> | ||
<description>Font size is too small: text may not be resized without assistive technology | ||
up to 200 percent without loss of content or functionality</description> | ||
<test>textSize >= 4.5 || isWhiteSpaceChunk == true || parentsStandardTypes.split('&').filter(elem => elem == 'Figure').length > 0</test> | ||
<error> | ||
<message>textSize = %1</message> | ||
<arguments> | ||
<argument>textSize</argument> | ||
</arguments> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
42 changes: 42 additions & 0 deletions
42
...1 Perceivable/1.4 Distinguishable/1.4.8 Visual Presentation/verapdf-profile-1-4-8-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 1.4 Distinguishable - 1.4.8 Visual Presentation - Illegible font</name> | ||
<description>Document should not contain illegible font</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="PDFont" tags="cosmetic,human,text"> | ||
<id specification="WCAG_2_1" clause="1.4.8" testNumber="1"/> | ||
<description>Document should not contain illegible font</description> | ||
<test>fontName != null && fontName.indexOf('AdobeDevanagari') == -1 && fontName.indexOf('AgencyFB') == -1 && | ||
fontName.indexOf('BlackadderITC') == -1 && fontName.indexOf('BodoniMTPosterCompressed') == -1 && | ||
fontName.indexOf('BradleyHandITC') == -1 && fontName.indexOf('BrushScriptMT') == -1 && | ||
fontName.indexOf('Chiller') == -1 && fontName.indexOf('ColonnaMT') == -1 && | ||
fontName.indexOf('CurlzMT') == -1 && fontName.indexOf('EdwardianScriptITC') == -1 && | ||
fontName.indexOf('ESRIArcGISTDN') == -1 && fontName.indexOf('FreestyleScript') == -1 && | ||
fontName.indexOf('FrenchScriptMT') == -1 && fontName.indexOf('Gabriola') == -1 && | ||
fontName.indexOf('Gigi') == -1 && fontName.indexOf('GillSansMT-ExtraCondensedBold') == -1 && | ||
fontName.indexOf('HarlowSolidItalic') == -1 && fontName.indexOf('Harrington') == -1 && | ||
fontName.indexOf('InformalRoman') == -1 && fontName.indexOf('Jokerman') == -1 && | ||
fontName.indexOf('FrenchScriptMT') == -1 && fontName.indexOf('Gabriola') == -1 && | ||
fontName.indexOf('JuiceITC') == -1 && fontName.indexOf('KunstlerScript') == -1 && | ||
fontName.indexOf('Magneto') == -1 && fontName.indexOf('MaturaMTScriptCapitals') == -1 && | ||
fontName.indexOf('MicrosoftUighur') == -1 && fontName.indexOf('Mistral') == -1 && | ||
fontName.indexOf('OldEnglishTextMT') == -1 && fontName.indexOf('Onyx') == -1 && | ||
fontName.indexOf('PalaceScriptMT') == -1 && fontName.indexOf('Parchment') == -1 && | ||
fontName.indexOf('Playbill') == -1 && fontName.indexOf('Pristina') == -1 && | ||
fontName.indexOf('RageItalic') == -1 && fontName.indexOf('Ravie') == -1 && | ||
fontName.indexOf('SegoeScript') == -1 && fontName.indexOf('ShowcardGothic') == -1 && | ||
fontName.indexOf('SnapITC') == -1 && fontName.indexOf('Vivaldi') == -1 && | ||
fontName.indexOf('VladimirScript') == -1 && | ||
(fontName.indexOf('HarlowSolid') == -1 || isItalic != true)</test> | ||
<error> | ||
<message>Document contains illegible font</message> | ||
<arguments/> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
25 changes: 25 additions & 0 deletions
25
....1/2. Operable/2.4 Navigable/2.4.9 Link Purpose (Link Only)/verapdf-profile-2-4-9-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 2.4 Navigable - 2.4.9 Link Purpose (Link Only) - Alternate description of Link</name> | ||
<description>Links shall contain an alternate description via their Contents or Alt keys or in the text value</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SALinkAnnotation" tags="major,machine,alt-text,structure,annotation"> | ||
<id specification="WCAG_2_1" clause="2.4.9" testNumber="1"/> | ||
<description>Links shall contain an alternate description via their Contents or Alt keys or in the text value</description> | ||
<test>(Contents != null && Contents != '' && contentsIsLink == false) || isOutsideCropBox == true || | ||
(F & 2) == 2 || (textValue != null && textValue != '' && textValueIsLink == false) || | ||
(Alt != null && Alt != '' && altIsLink == false)</test> | ||
<error> | ||
<message>A link annotation does not include an alternate description in the Contents or Alt Keys or in the text value</message> | ||
<arguments/> | ||
</error> | ||
<references> | ||
<reference specification="ISO 32000-1:2008" clause="14.9.3"/> | ||
</references> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
21 changes: 21 additions & 0 deletions
21
PDF_UA/WCAG/2.1/4 Robust/4.1 Compatible/4.1.1 Parsing/verapdf-profile-4-1-1-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 4.1 Compatible - 4.1.1 Parsing - Merged table cells</name> | ||
<description>Table shouldn't have merged cells</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SETD" tags="cosmetic,machine,structure,table"> | ||
<id specification="WCAG_2_1" clause="4.1.1" testNumber="1"/> | ||
<description>Table shouldn't have merged cells</description> | ||
<test>ColSpan == 1 && RowSpan == 1</test> | ||
<error> | ||
<message>Table has merged cells</message> | ||
<arguments/> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
21 changes: 21 additions & 0 deletions
21
PDF_UA/WCAG/2.1/4 Robust/4.1 Compatible/4.1.1 Parsing/verapdf-profile-4-1-1-t02.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 4.1 Compatible - 4.1.1 Parsing - Merged table cells</name> | ||
<description>Table shouldn't have merged cells</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SETH" tags="cosmetic,machine,structure,table"> | ||
<id specification="WCAG_2_1" clause="4.1.1" testNumber="2"/> | ||
<description>Table shouldn't have merged cells</description> | ||
<test>ColSpan == 1 && RowSpan == 1</test> | ||
<error> | ||
<message>Table has merged cells</message> | ||
<arguments/> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
25 changes: 25 additions & 0 deletions
25
PDF_UA/WCAG/2.1/4 Robust/4.1 Compatible/4.1.1 Parsing/verapdf-profile-4-1-1-t03.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="WCAG2_1"> | ||
<details creator="veraPDF Consortium" created="2021-03-03T10:58:04.098+03:00"> | ||
<name>WCAG 2.1 - 4.1 Compatible - 4.1.1 Parsing - Merged table cells</name> | ||
<description>Table shouldn't have merged cells</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="SATableBorderCell" tags="cosmetic,human,structure,table"> | ||
<id specification="WCAG_2_1" clause="4.1.1" testNumber="3"/> | ||
<description>Table shouldn't have merged cells</description> | ||
<test>colSpan == 1 && rowSpan == 1</test> | ||
<error> | ||
<message>Table has merged cells</message> | ||
<arguments> | ||
<argument></argument> | ||
<argument></argument> | ||
<argument name="structureID">structureID</argument> | ||
</arguments> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |
12 changes: 6 additions & 6 deletions
12
...UA/WCAG/2.1/4 Robust/4.1 Compatible/4.1.2 Name, Role, Value/verapdf-profile-4-1-2-t01.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.