From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87630 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Tagged PDF - Math Date: Fri, 30 May 2014 09:33:32 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1654790467==" X-Trace: ger.gmane.org 1401435259 5383 80.91.229.3 (30 May 2014 07:34:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 07:34:19 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Fri May 30 09:34:12 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WqHKM-0001Xl-Ct for gctc-ntg-context-518@m.gmane.org; Fri, 30 May 2014 09:34:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC4D310227 for ; Fri, 30 May 2014 09:34:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Lx0kz3mtx5P5 for ; Fri, 30 May 2014 09:34:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 490DC101F7 for ; Fri, 30 May 2014 09:34:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D8B3101E8 for ; Fri, 30 May 2014 09:34:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x4Cuy2oy+Uro for ; Fri, 30 May 2014 09:33:59 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id D53A3101E2 for ; Fri, 30 May 2014 09:33:54 +0200 (CEST) Original-Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com [IPv6:2607:f8b0:4003:c01::229]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4U7v8Iw017434 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 30 May 2014 09:57:09 +0200 Original-Received: by mail-ob0-f169.google.com with SMTP id vb8so1433192obc.14 for ; Fri, 30 May 2014 00:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=6KxlfHIdJnk8wQsNHCX1RnyVNikzCd5Ap+stHN2XqDc=; b=zfKhFf5+EgjCxQ1swtHz6bRUaTuNoZ9ObadifzD4sL4/V/2Dj40SX26LjFVfgqW+fH ZrJ04XR+N+Fywfv7WAXJ7+/D4eejeACP1Ung/ozDXf0SwAgesgpHOURyb7raPZF1h/0Q uzTdRI3g7FgBxV4ZKw/6ik+yurCez7ZH4/jcAR5TpnoZ+0M9gK7C1ZnBaTZXtnmBngi9 7Zeb3oVR+nG9BpXPyaG+lz1zlOnvh0PKS6YQtmtNmNkEa6lv2j2i3kwtLaTpL7/F31v+ R9GHMoHuT7D/r3yK1Nt0NN+en4bR4c2fXBlnEy53pf0Ly290xJoVLEzgK2/5oLVec/wZ 9T7g== X-Received: by 10.60.161.6 with SMTP id xo6mr14764223oeb.78.1401435232134; Fri, 30 May 2014 00:33:52 -0700 (PDT) Original-Received: by 10.182.123.84 with HTTP; Fri, 30 May 2014 00:33:32 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01M87V9vI - b95d1c61da43 - 20140530 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87630 Archived-At: --===============1654790467== Content-Type: multipart/alternative; boundary=089e0117784d2feb6f04fa99118d --089e0117784d2feb6f04fa99118d Content-Type: text/plain; charset=UTF-8 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 --089e0117784d2feb6f04fa99118d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

ConTeXt can produce tagged PDF - th= is is really cool! (At the moment ConTeXt/luaTeX seems to be the only macro= package/TeX-engine that is able to do this.)

What = is the status of producing structure information for math? After a quick ev= aluation I observe two issues:

1. Empty entry in RoleMap:
ConTeXt wise= ly uses the RoleMap entry of the StructTreeRoot element in a PDF to map str= ucture 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 a= n empty dictionary key with corresponding value "\Span". A minima= l example is:

\setuptagging[state=3Dstart]
\starttext<= br>
\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 ele= ment dictionary's "K" entry can be an integer (e.g. "2&q= uot;) that denotes an index for a marked-content sequence. When tagging mat= h, ConTeXt sometimes produces a real value (e.g. "2.000") instead= . A minimal example is: (In this example the last element "B" rec= eives such a "real number" index)

\setuptagging[state=3Dstart]
\starttext<= br>
\startformula
A =3D B
\stopformula
<= div>\stoptext

I am using ConTeXt version=C2= =A02014.05.27 13:38.

Thanks in advance for any feedback.

Christoph

--089e0117784d2feb6f04fa99118d-- --===============1654790467== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1654790467==--