From: Christoph Reller <christoph.reller@gmail.com>
To: ntg-context <ntg-context@ntg.nl>
Subject: Tagged PDF - Math
Date: Fri, 30 May 2014 09:33:32 +0200 [thread overview]
Message-ID: <CAO8LnPH_19Qyp=mhSxNaoHNMMH3ODbRS6muXomanVP+oa_rPEg@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1372 bytes --]
Hi,
ConTeXt can produce tagged PDF - this is really cool! (At the moment
ConTeXt/luaTeX seems to be the only macropackage/TeX-engine that is able to
do this.)
What is the status of producing structure information for math? After a
quick evaluation I observe two issues:
1. Empty entry in RoleMap:
ConTeXt wisely uses the RoleMap entry of the StructTreeRoot element in a
PDF to map structure element names to standard element names. In PDF terms,
RoleMap is a dictionary with keys and values. Unfortunately, certain math
elements seem to lead to a corrupt RoleMap, e.g., the usage of a square
root results in an empty dictionary key with corresponding value "\Span". A
minimal example is:
\setuptagging[state=start]
\starttext
\startformula
\sqrt{A}
\stopformula
\stoptext
2. Structure element contains index of type "real number":
According to the PDF Reference V 1.7 (see Table 10.10) a structure element
dictionary's "K" entry can be an integer (e.g. "2") that denotes an index
for a marked-content sequence. When tagging math, ConTeXt sometimes
produces a real value (e.g. "2.000") instead. A minimal example is: (In
this example the last element "B" receives such a "real number" index)
\setuptagging[state=start]
\starttext
\startformula
A = B
\stopformula
\stoptext
I am using ConTeXt version 2014.05.27 13:38.
Thanks in advance for any feedback.
Christoph
[-- Attachment #1.2: Type: text/html, Size: 1874 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2014-05-30 7:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-30 7:33 Christoph Reller [this message]
2014-05-30 9:43 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO8LnPH_19Qyp=mhSxNaoHNMMH3ODbRS6muXomanVP+oa_rPEg@mail.gmail.com' \
--to=christoph.reller@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).