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

Add description for the embedded file #739

Closed
Intelligent2013 opened this issue Sep 1, 2024 · 2 comments
Closed

Add description for the embedded file #739

Intelligent2013 opened this issue Sep 1, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link
Contributor

Source issue: metanorma/metanorma#407 (comment)

Note that it says "An optional description can also be added ..." --> MN should require this description as it is needed for accessibility and conformance with PDF/A and PDF/UA!

<pdf:embedded-file filename="image.jpg" src="url(file:///...)" description="My image"/>
@Intelligent2013 Intelligent2013 added the enhancement New feature or request label Sep 1, 2024
@Intelligent2013 Intelligent2013 self-assigned this Sep 1, 2024
@Intelligent2013 Intelligent2013 transferred this issue from metanorma/mn2pdf Sep 1, 2024
@Intelligent2013
Copy link
Contributor Author

The attachment description can be specified in the adoc as bibliography item title:

[bibliography]
== Bibliography

* [[[file1,attachment:(sources/program.c)]]], Description text for program.c

The Presentation XML:

<bibitem id="file1" hidden="true">
	<formattedref format="application/x-isodoc+xml">Description text for program.c</formattedref>
	<uri type="attachment">sources/program.c</uri>
	<uri type="citation">sources/program.c</uri>
	<docidentifier type="metanorma">[sources/program.c]</docidentifier>
</bibitem>

Resulted PDF:
image

Intelligent2013 added a commit to metanorma/metanorma.org that referenced this issue Sep 1, 2024
Intelligent2013 added a commit that referenced this issue Sep 1, 2024
common.xsl updated for attachment description, #739
@Intelligent2013
Copy link
Contributor Author

Documentation updated in metanorma/metanorma.org#816.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Metanorma Sep 1, 2024
ronaldtse pushed a commit to metanorma/metanorma.org that referenced this issue Sep 2, 2024
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

1 participant