* Tagged PDF - Math
@ 2014-05-30 7:33 Christoph Reller
2014-05-30 9:43 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Reller @ 2014-05-30 7:33 UTC (permalink / raw)
To: ntg-context
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tagged PDF - Math
2014-05-30 7:33 Tagged PDF - Math Christoph Reller
@ 2014-05-30 9:43 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2014-05-30 9:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
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/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.
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.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-30 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30 7:33 Tagged PDF - Math Christoph Reller
2014-05-30 9:43 ` Hans Hagen
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).