Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF/UA-1 validation: Links shall be tagged according to ISO 32000-1:2008, 14.8.4.4.2, Link Element #291

Closed
Intelligent2013 opened this issue Sep 26, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link
Contributor

Source: #287

<rule specification="ISO 14289-1:2014" clause="7.18.5" testNumber="1" status="failed" failedChecks="29" tags="annotation">
	<description>Links shall be tagged according to ISO 32000-1:2008, 14.8.4.4.2, Link Element</description>
	<object>PDLinkAnnot</object>
	<test>structParentStandardType == 'Link' || isOutsideCropBox == true || (F &amp; 2) == 2</test>
	<check status="failed">
		<context>root/document[0]/pages[3](89 0 obj PDPage)/annots[0](93 0 obj PDLinkAnnot)</context>
	</check>
</rule>

PDF with errors:

  • un-ECE_TRADE_C_CEFACT_2018_6E.presentation.pdf
  • iec-rice-en.presentation.pdf
  • mpfa-standards.presentation.pdf
  • m3aawg-p-document.presentation.pdf
  • cc-18011.presentation.pdf
@Intelligent2013 Intelligent2013 added the bug Something isn't working label Sep 26, 2024
@Intelligent2013 Intelligent2013 self-assigned this Sep 26, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Sep 26, 2024
@Intelligent2013
Copy link
Contributor Author

This error relates to the link to the footnotes:

122 0 obj
<<
/Type /Annot
/Subtype /Link
/Rect [107.516 445.801 111.964 453.305]
/C [0 0 0]
/Border [0 0 0]
/A 3547 0 R
/H /I
/StructParent 79
/Contents (footnote 1)
/F 28
>>
endobj

XSL-FO fragment:

<fo:footnote keep-with-previous.within-line="always" role="SKIP">
	<fo:inline role="Reference" keep-with-previous.within-line="always" font-size="8pt" baseline-shift="15%">
		<fo:basic-link role="Lbl" fox:alt-text="footnote 1" internal-destination="footnote_en_f84cebf8-fd1c-481a-8b2e-dc13996d6416_1">1</fo:basic-link>
	</fo:inline>
	<fo:footnote-body role="Note">
		<fo:block-container text-indent="0" start-indent="0" role="SKIP">
			<fo:block font-weight="normal" font-style="normal" text-indent="0" start-indent="0" font-size="8pt" margin-bottom="5pt" role="SKIP">
				<fo:inline keep-with-next.within-line="always" baseline-shift="15%" padding-right="3mm" role="Lbl" id="footnote_en_f84cebf8-fd1c-481a-8b2e-dc13996d6416_1">1</fo:inline>
				<fo:inline role="P">Cancelled and replaced by <fo:inline role="SKIP" keep-together.within-line="always">ISO 712-1:2024</fo:inline>.</fo:inline>
			</fo:block>
		</fo:block-container>
	</fo:footnote-body>
</fo:footnote>

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Sep 30, 2024
@Intelligent2013
Copy link
Contributor Author

Issue fixed by removing role="Lbl" from fo:basic-link.

@Intelligent2013 Intelligent2013 moved this from 🆕 New to Pending release in Metanorma Sep 30, 2024
@Intelligent2013
Copy link
Contributor Author

Issue fixed by removing role="Lbl" from fo:basic-link.

It's wrong solution. Lbl added specially in metanorma/metanorma-iso#1003 (comment).

@Intelligent2013
Copy link
Contributor Author

Issue solved - added internal fo:inline with role Lbl:
<fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}">
<fo:inline role="Lbl">
...
</fo:inline>
</fo:basic-link>

Now the tags structure has Link element between Reference and Lbl:
image
I can't ignore (skip) the Link element.

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Oct 2, 2024
@github-project-automation github-project-automation bot moved this from Pending release to ✅ Done in Metanorma Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant