Skip to content

Commit

Permalink
Update rules about non standard structure types
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 27, 2023
1 parent 91c03e7 commit e9ade88
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_19005_1" clause="6.8.3.4" testNumber="1"/>
<description>All non-standard structure types shall be mapped to the nearest functionally equivalent standard type, as
defined in PDF Reference 9.7.4, in the role map dictionary of the structure tree root</description>
<test>circularMappingExist == true</test>
<test>isNotMappedToStandardType == false</test>
<error>
<message>Non-standard structure type %1 is not mapped to a standard type</message>
<arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<id specification="ISO_19005_2" clause="6.7.3.4" testNumber="1"/>
<description>All non-standard structure types shall be mapped to the nearest functionally equivalent standard type, as
defined in ISO 32000-1:2008, 14.8.4, in the role map dictionary of the structure tree root</description>
<test>circularMappingExist == true</test>
<test>isNotMappedToStandardType == false</test>
<error>
<message>Non-standard structure type %1 is not mapped to a standard type</message>
<arguments>
Expand Down
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="PDFA_2_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:58:04.137+03:00">
<name>ISO 19005-2:2011 - 6.7.3 Artefacts - Remapped standard types</name>
<description>Standard tags shall not be remapped to a non-standard type</description>
</details>
<hash></hash>
<rules>
<rule object="SENonStandard">
<id specification="ISO_19005_2" clause="6.7.3.4" testNumber="3"/>
<description>Standard tags shall not be remapped to a non-standard type</description>
<test>remappedStandardType == null</test>
<error>
<message>The standard structure type %1 is remapped to a non-standard type</message>
<arguments>
<argument>remappedStandardType</argument>
</arguments>
</error>
<references>
<reference specification="ISO 32000-1:2008" clause="14.8.4"/>
</references>
</rule>
</rules>
<variables/>
</profile>
2 changes: 1 addition & 1 deletion PDF_UA/1/7.1 General/verapdf-profile-7-1-t05.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
as defined in ISO 32000-1:2008, 14.8.4, in the role map dictionary of the structure tree root.
This mapping may be indirect; within the role map a non-standard type can map directly to another
non-standard type, but eventually the mapping shall terminate at a standard type</description>
<test>circularMappingExist == true</test>
<test>isNotMappedToStandardType == false</test>
<error>
<message>Non-standard structure type %1 is not mapped to a standard type</message>
<arguments>
Expand Down
4 changes: 2 additions & 2 deletions PDF_UA/1/7.1 General/verapdf-profile-7-1-t07.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<rule object="PDStructElem" tags="major,machine,structure">
<id specification="ISO_14289_1" clause="7.1" testNumber="7"/>
<description>Standard tags defined in ISO 32000-1:2008, 14.8.4, shall not be remapped</description>
<test>isRemappedStandardType == false</test>
<test>remappedStandardType == null</test>
<error>
<message>Standard type %1 is remapped</message>
<arguments>
<argument>valueS</argument>
<argument>remappedStandardType</argument>
</arguments>
</error>
<references>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
— the PDF 1.7 namespace;
— the PDF 2.0 namespace;
— the MathML namespace</description>
<test>circularMappingExist == true</test>
<test>isNotMappedToStandardType == false</test>
<error>
<message>Non-standard structure type %1 is not mapped to a standard type</message>
<arguments>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2">
<details creator="veraPDF Consortium" created="2023-03-13T10:58:04.137+03:00">
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.4 Structure types - Remapped standard types</name>
<description>All structure elements shall belong to, or be role mapped to, at least one of the following
namespaces specified in ISO 32000-2:2020, 14.8.6:
— the PDF 1.7 namespace;
— the PDF 2.0 namespace;
— the MathML namespace</description>
</details>
<hash></hash>
<rules>
<rule object="SENonStandard">
<id specification="ISO_14289_2" clause="8.2.4" testNumber="4"/>
<description>All structure elements shall belong to, or be role mapped to, at least one of the following
namespaces specified in ISO 32000-2:2020, 14.8.6:
— the PDF 1.7 namespace;
— the PDF 2.0 namespace;
— the MathML namespace</description>
<test>remappedStandardType == null</test>
<error>
<message>The standard structure type %1 is remapped to a non-standard type</message>
<arguments>
<argument>remappedStandardType</argument>
</arguments>
</error>
<references>
<reference specification="ISO 32000-2:2020" clause="14.8.6"/>
</references>
</rule>
</rules>
<variables/>
</profile>

0 comments on commit e9ade88

Please sign in to comment.