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

Publication Language #6

Open
gregoriopellegrino opened this issue Jun 29, 2022 · 1 comment
Open

Publication Language #6

gregoriopellegrino opened this issue Jun 29, 2022 · 1 comment

Comments

@gregoriopellegrino
Copy link
Collaborator

Knowledge base reference: http://kb.daisy.org/publishing/docs/epub/language.html

Issue

InDesign's export to EPUB 3 puts all the languages present in the document (even just a few characters tagged in a particular language) in the OPF file as metadata:

<dc:language>en-US</dc:language>
<dc:language>es-ES</dc:language>
<dc:language>fr-FR</dc:language>
<dc:language>it-IT</dc:language>

The knowledge base says:

[...] the dc:language elements should only list the primary languages that the content is written in. If a publication contains a few phrases in a foreign language, for example, that language is not listed.

How to fix it

We propose to add to the EPUB export wizard a field to select the main language of the ebook, in the same way as is handled for the export of Interactive PDFs:

Schermata 2022-06-29 alle 14 37 56

This metadata would be the only one to be included in the OPF file as <dc:language> and as the xml:lang attribute of the <package> tag.

gregoriopellegrino added a commit that referenced this issue Jun 29, 2022
@CircularKen CircularKen mentioned this issue Jun 30, 2022
Closed
@ways2read ways2read added help wanted Extra attention is needed good first issue Good for newcomers and removed help wanted Extra attention is needed good first issue Good for newcomers labels Jul 13, 2022
@ways2read ways2read added this to the For attention in 2022 milestone Jul 19, 2022
@gregoriopellegrino gregoriopellegrino changed the title #7 Publication Language Publication Language Jul 19, 2022
@LauraB7
Copy link
Collaborator

LauraB7 commented Mar 8, 2023

This is mostly about creating a correct and valid EPUB rather than presenting an accessibility barrier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants