From 35bcbfbf5b29df8c931294ed200a0f2efc577b86 Mon Sep 17 00:00:00 2001 From: Maxim Date: Fri, 3 Nov 2023 21:24:51 +0300 Subject: [PATCH] WCAG. Update tags --- PDF_UA/WCAG-21-Complete.xml | 70 ++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/PDF_UA/WCAG-21-Complete.xml b/PDF_UA/WCAG-21-Complete.xml index 37f70f77..772a75e9 100644 --- a/PDF_UA/WCAG-21-Complete.xml +++ b/PDF_UA/WCAG-21-Complete.xml @@ -50,7 +50,7 @@ - + Pages shall have the same orientation orientation == 'Square' || gMostCommonPageOrientation == orientation @@ -911,7 +911,7 @@ - + Content marked as Artifact should not present inside tagged content tag != 'Artifact' || (parentStructureTag == null || isArtifact == true) @@ -923,7 +923,7 @@ - + Tagged content should not present inside content marked as Artifact (parentStructureTag == null || isArtifact == true) || parentsTags.split('&').filter(elem => elem == 'Artifact').length == 0 @@ -935,7 +935,7 @@ - + Content shall be marked as Artifact or tagged as real content parentStructureTag != null || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 @@ -1054,7 +1054,7 @@ - + Natural language in the Outline entries shall be determined gSizeCatalogLang != 0 @@ -1455,7 +1455,7 @@ - + If the Lang entry is present in the document's Catalog dictionary or in a structure element dictionary or property list, its value shall be a language identifier as described in ISO 32000-1:2008, 14.9.2. @@ -1472,7 +1472,7 @@ - + Natural language for text in ActualText attribute in Span Marked Content shall be determined tag != 'Span' || ActualText == null || Lang_size != 0 || inheritedLang != null || gSizeCatalogLang != 0 @@ -1482,7 +1482,7 @@ - + Natural language for text in Alt attribute in Span Marked Content shall be determined tag != 'Span' || Alt == null || Lang_size != 0 || inheritedLang != null || gSizeCatalogLang != 0 @@ -1492,7 +1492,7 @@ - + Natural language for text in E attribute in Span Marked Content shall be determined tag != 'Span' || E == null || Lang_size != 0 || inheritedLang != null || gSizeCatalogLang != 0 @@ -1512,7 +1512,7 @@ - + Natural language for text in page content shall be determined gSizeCatalogLang != 0 || Lang != null @@ -1839,7 +1839,7 @@ - + An annotation, excluding annotations of subtype Widget, Popup or Link, shall be nested within an Annot tag Subtype == 'Widget' || Subtype == 'Popup' || Subtype == 'Link' || isOutsideCropBox == true || @@ -1854,7 +1854,7 @@ - + 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 @@ -1871,7 +1871,7 @@ - + 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 @@ -1885,7 +1885,7 @@ - + Annotations of subtype TrapNet shall not be permitted. isOutsideCropBox == true || (F & 2) == 2 @@ -1895,7 +1895,7 @@ - + Every page on which there is an annotation shall contain in its page dictionary the key Tabs, and its value shall be S. annots_size == 0 || Tabs == 'S' @@ -1907,7 +1907,7 @@ - + A Widget annotation shall be nested within a Form tag per ISO 32000-1:2008, 14.8.4.5, Table 340. structParentStandardType == 'Form' || isOutsideCropBox == true || (F & 2) == 2 @@ -1936,7 +1936,7 @@ - + Links shall be tagged according to ISO 32000-1:2008, 14.8.4.4.2, Link Element. structParentStandardType == 'Link' || structParentStandardType == 'Reference' || @@ -1980,7 +1980,7 @@ - + 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. @@ -2016,7 +2016,7 @@ - + For any given composite (Type 0) font within a conforming file, the CIDSystemInfo entry in its CIDFont dictionary and its Encoding dictionary shall have the following relationship: @@ -2042,7 +2042,7 @@ - + ISO 32000-1:2008, 9.7.4, Table 117 requires that all embedded Type 2 CIDFonts in the CIDFont dictionary shall contain a CIDToGIDMap entry that shall be a stream mapping from CIDs to glyph indices or the name Identity, as described in ISO 32000-1:2008, 9.7.4, Table 117. @@ -2055,7 +2055,7 @@ - + All CMaps used within a PDF/UA file, except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118, shall be embedded in that file as described in ISO 32000-1:2008, 9.7.5. @@ -2085,7 +2085,7 @@ - + For those CMaps that are embedded, the integer value of the WMode entry in the CMap dictionary shall be identical to the WMode value in the embedded CMap stream. @@ -2099,7 +2099,7 @@ - + A CMap shall not reference any other CMap except those listed in ISO 32000-1:2008, 9.7.5.2, Table 118. CMapName == "Identity-H" || CMapName == "Identity-V" || CMapName == "GB-EUC-H" || CMapName == "GB-EUC-V" || @@ -2128,7 +2128,7 @@ - + The font programs for all fonts used for rendering within a conforming file shall be embedded within that file, as defined in ISO 32000-1:2008, 9.9. Subtype == "Type3" || Subtype == "Type0" || renderingMode == 3 || fontFile_size == 1 @@ -2140,7 +2140,7 @@ - + Embedded fonts shall define all glyphs referenced for rendering within the conforming file. A font referenced solely in text rendering mode 3 is not rendered and is thus exempt from the requirements @@ -2157,7 +2157,7 @@ - + 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. @@ -2168,7 +2168,7 @@ - + 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. @@ -2179,7 +2179,7 @@ - + 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. @@ -2194,7 +2194,7 @@ - + For all non-symbolic TrueType fonts used for rendering, the embedded TrueType font program shall contain one or several non-symbolic cmap entries such that all necessary glyph lookups can be carried out. @@ -2205,7 +2205,7 @@ - + No non-symbolic TrueType font shall define a Differences array unless all of the glyph names in the Differences array are listed in the Adobe Glyph List and the embedded font program contains at least the @@ -2223,7 +2223,7 @@ - + Symbolic TrueType fonts shall not contain an Encoding entry in the font dictionary isSymbolic == false || Encoding == null @@ -2233,7 +2233,7 @@ - + The 'cmap' table in the embedded font program for a symbolic TrueType font shall contain either exactly one encoding or it shall contain, at least, the Microsoft Symbol (3,0 - Platform ID=3, @@ -2248,7 +2248,7 @@ - + The Font dictionary of all fonts shall define the map of all used character codes to Unicode values, either via a ToUnicode entry, or other mechanisms as defined in ISO 14289-1, 7.21.7. @@ -2261,7 +2261,7 @@ - + The Unicode values specified in the ToUnicode CMap shall all be greater than zero (0), but not equal to either U+FEFF or U+FFFE. toUnicode == null || (toUnicode.indexOf("\u0000") == -1 && toUnicode.indexOf("\uFFFE") == -1 && toUnicode.indexOf("\uFEFF") == -1) @@ -2271,7 +2271,7 @@ - + A PDF/UA compliant document shall not contain a reference to the .notdef glyph from any of the text showing operators, regardless of text rendering mode, in any content stream.