Hi, ConTeXt can produce tagged PDF  this is really cool! (At the moment ConTeXt/luaTeX seems to be the only macropackage/TeXengine 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 markedcontent 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
On 5/30/2014 9:33 AM, Christoph Reller wrote:
Hi,
ConTeXt can produce tagged PDF  this is really cool! (At the moment ConTeXt/luaTeX seems to be the only macropackage/TeXengine 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 markedcontent 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.
fixed in next beta  Hans Hagen  PRAGMA ADE Ridderstraat 27  8061 GH Hasselt  The Netherlands tel: 038 477 53 69  voip: 087 875 68 74  www.pragmaade.com  www.pragmapod.nl 
participants (2)

Christoph Reller

Hans Hagen