ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Tagged PDF - Math
Date: Fri, 30 May 2014 11:43:37 +0200	[thread overview]
Message-ID: <538852C9.7050806@wxs.nl> (raw)
In-Reply-To: <CAO8LnPH_19Qyp=mhSxNaoHNMMH3ODbRS6muXomanVP+oa_rPEg@mail.gmail.com>

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
___________________________________________________________________________________


      reply	other threads:[~2014-05-30  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30  7:33 Christoph Reller
2014-05-30  9:43 ` Hans Hagen [this message]

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=538852C9.7050806@wxs.nl \
    --to=pragma@wxs.nl \
    --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).