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

Allow sentence markup for e.g. talking books #474

Open
5 tasks
martinpub opened this issue Jun 22, 2021 · 3 comments
Open
5 tasks

Allow sentence markup for e.g. talking books #474

martinpub opened this issue Jun 22, 2021 · 3 comments
Labels
Low priority validator-revision EPUB 3 / HTML Validator revision: 2020-1

Comments

@martinpub
Copy link
Collaborator

At MTM, we want to keep the Nordic Guidelines validity in our EPUB 3 talking book production. Therefore, we suggest adding flexibility in the validation rules to allow sentence markup where it's currently disallowed:

  • In heading elements, e.g. <h1 id="h1_1"><span id="st2-1" class="sentence">Chapter 1</span></h1> should be allowed (currently disallowed by RelaxNG). Note that a corresponding update must be made to the cross-check between nav.xhtml and content document headings. The cross-check should check integrity between the nav.xhtml toc item text and the corresponding heading text, even if this text node is contained in a parent <span>
  • In pagebreak elements, e.g. <div aria-label="2" role="doc-pagebreak" epub:type="pagebreak" id="page-2" class="page-normal"><span id="st2-3" class="sentence">2</span></div> should be allowed (currently disallowed in [nordic105])
  • We currently expand aria-label sections to "real" headings for talking book production, e.g. <section id="level1_1" epub:type="cover" aria-label="Omslag"> --> <section aria-labelledby="aria_label_1" epub:type="cover" id="level1_1"><h1 id="aria_label_1"><span id="st1-1" class="sentence">Omslag</span></h1>. There is currently no support for this kind of expansion, but we would like it to be allowed for talking books.
  • In verse contexts
  • etc ...

I think the general thing to update is to allow sentence span wherever element text content is allowed. We can discuss this at tomorrow's validation group meeting.

We are working in parallell with tweaking the sentence detection in Pipeline 2 for MTM, so this is partly connected to a moving target. But I think the overall flexibility is possible to discuss even at this point.

Ping @kalaspuffar @AndersEkl

@martinpub martinpub added the validator-revision EPUB 3 / HTML Validator revision: 2020-1 label Jun 22, 2021
@kalaspuffar
Copy link
Collaborator

Hi @martinpub

As usual, when we make this kind of broad changes to add elements of change elements where ever text occurs, it could lead to unforeseen consequences that might make it hard for reading systems to handle the format.

Best regards
Daniel

@martinpub
Copy link
Collaborator Author

Yes, indeed we have to be careful. The first question is, should sentence markup be within or outside the scope of Nordic Guidelines. The conclusion from last validation group meeting was that we should consider this. We will return to this after the summer break.

@martinpub
Copy link
Collaborator Author

Currently not prioritised from MTM's perspective. But we will have to return to this question when we move closer to using EPUB 3 fully throughout the talking book production line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low priority validator-revision EPUB 3 / HTML Validator revision: 2020-1
Projects
None yet
Development

No branches or pull requests

2 participants