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

Differentiate File Annotation and Javascript link to the embedded file #283

Closed
Intelligent2013 opened this issue Sep 23, 2024 · 5 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Currently (#267), the link prefixed by url(embedded-file: process as File annotation (with PaperClip icon).
But BIPM brochure should allow to open the MathML file by just clicking on the math formula.
I.e. need to support both links to the embedded file:

  • current functionality by JavaScript function
  • File annotation link
@Intelligent2013 Intelligent2013 added the enhancement New feature or request label Sep 23, 2024
@Intelligent2013 Intelligent2013 self-assigned this Sep 23, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Metanorma Sep 23, 2024
@Intelligent2013 Intelligent2013 moved this from 🆕 New to 🏗 In progress in Metanorma Sep 23, 2024
@petervwyatt
Copy link

Just a comment / FYI: MathML can serve multiple purposes in PDF:

  • they may be needed for accessibility (e.g. supporting PDF/UA-1 conformance) - see this LaTeX discussion if you want some actual examples of PDF/UA-1 with MathML (or this different LaTeX discussion for PDF 2.0 and PDF/UA-2).

  • standards authors may also want to have the MathML as visible downloadable embedded files / attachments so all(!) users can then "do math stuff" with the semantically rich data.

  • reuse of the math (i.e. so that copy'n'paste from PDF back into MS Word, for example, retains all the math-ness and ends up in Word's equation editor) is best when the MathML is associated with the logical structure (but success very much depends on the PDF app being used). You can experiment with the LaTeX examples I referenced above.

Of course, the same embedded file stream data that is the MathML can be reused for all purposes (so only embed once and reference multiple times).

@Intelligent2013
Copy link
Contributor Author

@petervwyatt very interesting approach, thanks! I'll look at this.

@Intelligent2013
Copy link
Contributor Author

current functionality by JavaScript function

This functionality restored for BIPM brochure.
I have to review this feature after analyze the cases from #283 (comment).

@Intelligent2013
Copy link
Contributor Author

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Metanorma Sep 25, 2024
@ronaldtse
Copy link
Contributor

@petervwyatt we published a blog post about PDF math here if you recall, so we are always interested in new / better approaches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants