-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
ConTeXt writer: tag paragraphs #7885
Conversation
Demonstrating the difference (extracted from the PDF with before
after
I'm just not sure if the additional verbosity is worth it. CC: @denismaier @klpn |
Sounds like a win to me, but let's see what the ConTeXt experts say. |
In general that's a useful addition, especially when going directly to PDF. Maybe, if you convert to context sources, some might the less verbose alternative. Maybe a new command line option could be useful? |
I suppose we could add an extension like
Interested in more feedback on this from ConTeXt users... |
Actually, the ConTeXt writer has access to variables, so why don't we just activate this feature if the |
Checking the It seems that there are number of additional cases where we could improve tagging, e.g., in lists or for emphasized text: the ConTeXt wiki recommends to define |
Checking the |
I'm tempted to leave things as they are, but to use tagging as motivation for the new writer style and |
I just found out about the effect of |
I think having a separate tagging extension might be more principled. It wouldn't really be obvious why Or maybe it wouldn't it be that bad just to do the paragraph tagging by default for ConTeXt? It's the way of the future, presumably. |
I see, that's true. If we merge this, would it make sense to let the |
Agreed. I guess that would mean that we're only targeting ConTeXt IV, since older versions don't support the The question @denismaier raised above is about the increased verbosity. I don't know how much of an issue that is for ConTeXt user. |
I was informed on the ConTeXt mailing list that using |
311a7a7
to
e6b94df
Compare
e6b94df
to
422ffa1
Compare
I went ahead with the additional extension: if Docs haven't been updated yet. |
Paragraphs are enclosed by `\bpar` and `\epar` commands, and `highlight` commands are used for emphasis. This results in much better tagging in PDF output.
422ffa1
to
22e5cd4
Compare
emphasized text. The `emphasis-command` template variable is set | ||
if the extension is enabled. Combine this with the `pdfa` variable | ||
to generate accessible PDFs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: maybe we should have a section of the manual (near the end I guess) about producing accessible PDFs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I realize now that the last sentence should be dropped here, as the pdfa
variable only affects the metadata, not tagging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My tests indicate that context
will always produce tagged PDF, but there are small errors in the tags unless the tagging
extension is enabled. I will clean that up.
Paragraphs are enclosed by
\startparagraph
and\stopparagraph
commands. This ensures better tagging results in PDF output.