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

/Link allows /Formula as a child, but /Reference does not. #488

Open
faceless2 opened this issue Nov 4, 2024 · 3 comments
Open

/Link allows /Formula as a child, but /Reference does not. #488

faceless2 opened this issue Nov 4, 2024 · 3 comments
Assignees
Labels
bug Something isn't correct ISO/TS 32005 ISO/TS 32005 PDF 1.7 and PDF 2.0 structure namespace inclusion proposed solution Proposed solution is ready for review

Comments

@faceless2
Copy link

A recent MathML examples from David had this sample

<math>
  <mfrac>
    <mrow id="numerator">
      <mi>x</mi><mo>+</mo>
      <mtext style="display:inline">
        <b>bold </b> <a href="#denominator">link to <math><mi>x</mi></math></a>
      </mtext>
    </mrow>
    <mrow id="denominator">
      <mi>y</mi><mo>+</mo>
      <mtext style="display:inline">
        <i>italic </i> <a href="#numerator">link to <math><mi>y</mi></math></a>
      </mtext>
    </mrow>
  </mfrac>
</math>

When converting to PDF/UA-2 the <a href='#denominator'> is tagged using a /Reference, because in PDF/UA-2 9.2.5.20:

the Reference structure type should be used for intra-document targets

However this leads to invalid content because /Formula is not a valid child of /Reference according to ISO32005.

It is a valid child in /Link, which means - according to the above suggestion - if the href had not been an intra-document target, it would have been valid. /Reference can also contain /Figure.

I'm pretty sure this isn't intentional. Suggestion: Add /Formula as an allowed child of /Reference

@faceless2 faceless2 added bug Something isn't correct ISO/TS 32005 ISO/TS 32005 PDF 1.7 and PDF 2.0 structure namespace inclusion labels Nov 4, 2024
@u-fischer
Copy link

shouldn't the title say Formula instead of Figure?

@petervwyatt petervwyatt added this to the Tagged PDF related milestone Nov 4, 2024
@faceless2 faceless2 changed the title /Link allows /Figure as a child, but /Reference does not. /Link allows /Formula as a child, but /Reference does not. Nov 4, 2024
@faceless2
Copy link
Author

@u-fischer Thank you, fixed.

@mrbhardy
Copy link

mrbhardy commented Nov 5, 2024

Proposed Solution: Resolve the Reference child relationships to match Link (Matthew to check if there's anything that would not make sense). Reuse TWG agrees.

32005

@mrbhardy mrbhardy added the proposed solution Proposed solution is ready for review label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't correct ISO/TS 32005 ISO/TS 32005 PDF 1.7 and PDF 2.0 structure namespace inclusion proposed solution Proposed solution is ready for review
Projects
None yet
Development

No branches or pull requests

5 participants