From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112290 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Connor P. Jackson via ntg-context" Newsgroups: gmane.comp.tex.context Subject: Re: Adobe Acrobat accessibility criteria Date: Tue, 27 Jul 2021 20:05:08 -0700 Message-ID: References: <76c799fe-6ed3-03d7-5aae-a08dd78b36d7@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mimestream 0.25.0) Content-Type: multipart/mixed; boundary="===============5928037232195933719==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37724"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Connor P. Jackson" , mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 28 05:05:51 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8ZtH-0009Vj-Kx for gctc-ntg-context-518@m.gmane-mx.org; Wed, 28 Jul 2021 05:05:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 412F1286059; Wed, 28 Jul 2021 05:05:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UlSdXoBbKnZB; Wed, 28 Jul 2021 05:05:13 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B727228606F; Wed, 28 Jul 2021 05:05:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C664286059 for ; Wed, 28 Jul 2021 05:05:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LMQnRC9NQNPh for ; Wed, 28 Jul 2021 05:05:11 +0200 (CEST) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=209.85.208.177; helo=mail-lj1-f177.google.com; envelope-from=connor@connorp.com; receiver= Original-Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CBC91280224 for ; Wed, 28 Jul 2021 05:05:10 +0200 (CEST) Original-Received: by mail-lj1-f177.google.com with SMTP id a7so1275276ljq.11 for ; Tue, 27 Jul 2021 20:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cpjackson-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RizGF9ztkaaST1Swo7PihpY1aJuo7Eknc2upPCQ85t8=; b=TRsS+ItfPW3eBAMgPnCEWlCZCPvFkTLVSUG78AFbd2LErBCiE4z1wPJ7yGmGDfjFya NnI17sq5cS1iiCN60oWufVIhJpS8WMurnwvkpSiY2OguB/1fsiTjGAOmehIHIBygAocW SuZx/sHAHJXx8Xjbe+7YA0w2f0wHx52NyOXdJN+7mzqnBe/nZWhwzFv7oJ5Mf6yQMFQr mPOPel5dDOirbGKhJod0UO3y4xI25GU6sjxKGd/DYE3lC2VLbRD6R6xxE5wj2nH//P4o QUsZ1Jq5tLFWtE3vOmMVFQiKzdq36ALWFIi1kFzltsFEAgXStNUi8Hy1+demdL2ofxr9 QGuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RizGF9ztkaaST1Swo7PihpY1aJuo7Eknc2upPCQ85t8=; b=KdaoPeUNcDtJ4Q+M5HtmHVnuhomApmsJAtNIq/LoVjZklRGQ/yS56hKqsYL6kKimuR bsooUOnU660JSBmVhIFdigKVvLcjYyciQDHfNUDzzzy9mySUiLGIZzU6iqGfjpDjdSsx gG+V4pNBxv3I338uliUPIv7QZAz20NV+mXhAeSVRaQ9wLFUgQ2VBTnFme3JvV2EmAmyH F+18zgjYEecDF7f0HZvqUbLO1pJom+AQfs8AJoyZiSgctJaMpEkVI1JfXowpZcRqV89k eFgqsTyI0/yLrEqHRRP7+ETtzuIes5+GqHL9rRJwpCeqicDyRVe4+Q+41aEFvRalkqG+ h4Kg== X-Gm-Message-State: AOAM533orIJp7rqNRlDCc9wAMSkBr3MDjDz2Dnboqs2vxzpWn3JK/TPr yDffrzCz9ZFv+7QAQeSyhoe+5sua/h7nAmlZpmOqIw== X-Google-Smtp-Source: ABdhPJy9daqmFWoWOkjijy3nfuaF8FZ5a+e6iSToBUv20OK7rYbT3rbIuovShTu7uJXSWAgOM/LVbPcLYoE0a/ai35Q= X-Received: by 2002:a2e:950:: with SMTP id 77mr17271288ljj.438.1627441509502; Tue, 27 Jul 2021 20:05:09 -0700 (PDT) Original-Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Tue, 27 Jul 2021 20:05:08 -0700 Original-Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Tue, 27 Jul 2021 20:05:04 -0700 In-Reply-To: <76c799fe-6ed3-03d7-5aae-a08dd78b36d7@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:112290 Archived-At: --===============5928037232195933719== Content-Type: multipart/alternative; boundary="00000000000011296005c8264142" --00000000000011296005c8264142 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My prior message got stuck in Moderation Limbo because I attached a PDF, so resending without the attachments: Apologies, I realized about an hour after I hit send that I should have submitted an MRE! Here is an MRE adapted from the wiki page on PDF/A : --- \setupinteraction[title=3DMyTitle,state=3Dstart] \setupinteractionscreen[option=3D{title}] \setupbackend[ format=3D{pdf/a-1a:2005}, profile=3D{default_cmyk.icc,default_rgb.icc,default_gray.icc}, intent=3DISO coated v2 300\letterpercent\space (ECI)] %% Tagged PDF %% method=3Dauto =3D=3D> default tags by Adobe \setupbackend[export=3Dyes] \setupstructure[state=3Dstart,method=3Dauto] \starttext \chapter[chap:testing]{Testing} Here is some text \useURL[url1][https://xkcd.org][][Here is a link to xkcd]\from[url1] \stoptext --- Including \setupinteractionscreen[option=3D{title}] fixed the title issue (#1)! Thanks for that. I will add that to my default template. And to see #s 2 and 3, I can send a PDF where I have fixed those errors in Adobe Acrobat=E2=80=94adding a link-OBJR tag and setting the Tab Order. Is = there a preferred method since the listserv doesn=E2=80=99t seem to like large atta= chments? Thanks! Connor On Jul 27, 2021 at 12:35:28 AM, Hans Hagen wrote: > On 7/27/2021 3:11 AM, Connor P. Jackson via ntg-context wrote: > > Hello ConTeXt friends, > > > I am newly exploring ConTeXt in search of a better way to produce > > PDF/UA-1 accessible and PDF/A compliant documents programmatically. From > > my early experiments, ConTeXt docs appear to fully satisfy the veraPDF > > validator, but Adobe Acrobat=E2=80=99s Accessibility Checker has three qu= alms > > with ConTeXt-produced documents: > > > 1. The document is configured to display the file name rather than the > > title in the top of the window (DisplayDocTitle =3D=3D True is what I > > think is required). See here > > . > > > Does this work at your end? > > \setupinteraction > [title=3DMyTitle,state=3Dstart] > > \setupinteractionscreen > [option=3D{title}] > > \starttext > test > \stoptext > > > 2. "Tagged Annotations" fails, suggesting that the document=E2=80=99s li= nks are > > not properly tagged. I believe the issue is missing "Link - OBJR=E2= =80=9D > > (object reference) tags. See here > > < > https://amp.levelaccess.net/public/standards/view_best_practice.php?viola= tion_id=3D807 > >, > > here , and here > > . > > 3. "Tab Order" fails, I believe because ConTeXt does not specify that > > the tab order should follow the Document Structure, so Acrobat reads > > it as unspecified. See here > > . > > > > Is there something I could be doing to correct these issues in my > > ConTeXt documents? Or is this a change that would have to be made within > > ConTeXt itself? I know that Adobe is not the definitive arbiter of what > > an =E2=80=9Caccessible=E2=80=9D PDF looks like, but for many organization= s, passing the > > Acrobat accessibility checker is a prerequisite, so it seems worthwhile > > to me to make ConTeXt capable of it. > > Most fo this is rather trivial but we need examples (mwe) and expected > result (in only have an old acrobat x pro and the latest reader, so > maybe i can't check all the latest greatest fancy features). > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --00000000000011296005c8264142 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My prior message got stuck in Moderation Limbo= because I attached a PDF, so resending without the attachments:

Apologies, I realiz= ed about an hour after I hit send that I should have submitted an MRE! Here= is an MRE adapted from the=C2=A0wiki page on PDF/A:

---

\setupinteraction[title=3DMyTitle,state=3Dstart]


\setupinteractionscreen[opti= on=3D{title}]


\setupbackend[

format=3D{pdf/a-1a:2005},

profile=3D{default_cmyk.icc,default_rgb.icc,default_g= ray.icc},

intent=3DISO coated v2 300\letterpercent\= space (ECI)]


%% Tagged PDF

%% method=3Dauto =3D=3D> de= fault tags by Adobe

\setupbackend[export=3Dyes]

=

\setupstructure[state=3Dstart,method=3Dauto]


\starttext

<= p style=3D"margin:0px;font-stretch:normal;font-size:12px;line-height:normal= ;font-family:Menlo;min-height:14px">

\chapter[c= hap:testing]{Testing}


Here is some text

<= br>

\useURL[url1][https://xkcd.org][][Here=C2= =A0is a link to xkcd]\from[url1]

\stoptext


---=

Including=C2=A0\setupinteractionscreen[option=3D{ti= tle}]=C2=A0fixed the title issue (#1)! Thanks for that. I will add t= hat to my default template.=C2=A0


And to see #s 2 and 3, I can send a PDF= where I have fixed those errors in Adobe Acrobat=E2=80=94adding a link-OBJ= R tag and setting the Tab Order. Is there a preferred method since the list= serv doesn=E2=80=99t seem to like large attachments?=C2=A0

Thanks!

Connor

On Jul 27, 2021 at 12:35:28 A= M, Hans Hagen <j.hagen@xs4all.nl> wrote:
=20
On 7/27/2021 3:11 AM, Connor P. Jackson via ntg-context wrote:
Hello ConTeXt friends,

I am newly explori= ng ConTeXt in search of a better way to produce
PDF/UA-1 accessible and PDF/A compliant documents programm= atically. From
my early experim= ents, ConTeXt docs appear to fully satisfy the veraPDF
validator, but Adobe Acrobat=E2=80=99s Accessibilit= y Checker has three qualms
with= ConTeXt-produced documents:
=C2=A01. The document is configure= d to display the file name rather than the
=C2=A0=C2=A0=C2=A0=C2=A0title in the top of the window (DisplayD= ocTitle =3D=3D True is what I
= =C2=A0=C2=A0=C2=A0=C2=A0think is required). See here
=C2=A0=C2=A0=C2=A0=C2=A0<
https://www.w3.org/TR/WCAG20-TECHS/PDF18.ht= ml>.

Does this work at your end?

\setupin= teraction
=C2=A0=C2=A0[title=3DMyTitle,state=3Dstart]

\setupinte= ractionscreen
=C2=A0=C2=A0[option=3D{title}]

\starttext
=C2= =A0=C2=A0=C2=A0=C2=A0test
\stoptext


=C2=A02. "Tagged Annotations" fails, suggesting that the docume= nt=E2=80=99s links are
=C2=A0=C2= =A0=C2=A0=C2=A0not properly tagged. I believe the issue is missing "Li= nk - OBJR=E2=80=9D
=C2=A0=C2=A0= =C2=A0=C2=A0(object reference) tags. See here
=C2=A0=C2=A0=C2=A0=C2=A0<https://a= mp.levelaccess.net/public/standards/view_best_practice.php?violation_id=3D8= 07>,
=C2=A0=C2=A0=C2=A0= =C2=A0here <ht= tps://www.w3.org/TR/WCAG20-TECHS/PDF11.html>,=C2=A0and here
=C2=A0=C2=A0=C2=A0=C2=A0<http://verapdf.org>.
=C2=A03. "Tab Order" fails, I believe because ConT= eXt does not specify that
=C2=A0= =C2=A0=C2=A0=C2=A0the tab order should follow the Document Structure, so Ac= robat reads
=C2=A0=C2=A0=C2=A0= =C2=A0it as unspecified. See here
=C2=A0=C2=A0=C2=A0=C2=A0<https://www.w3.org/TR/WCAG20-TECHS/PDF3.html>.


Is there something I could = be doing to correct these issues in my
ConTeXt documents? Or is this a change that would have to be made w= ithin
ConTeXt=C2=A0itself? I kn= ow that Adobe is not the definitive arbiter of what
an =E2=80=9Caccessible=E2=80=9D PDF looks like, but fo= r many organizations, passing the
Acrobat accessibility checker is a prerequisite, so it seems worthwhile =
to me to make ConTeXt capable o= f it.
Most fo this is rather trivial but we need examples (= mwe) and expected
result (in only have an old acrobat x pro and the lat= est reader, so
maybe i can't check all the latest greatest fancy fe= atures).

Hans

-----------------------------------------------= ------------------
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Hans Hagen | PRAGMA ADE<= br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
------------------------------------------= -----------------------
--00000000000011296005c8264142-- --===============5928037232195933719== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5928037232195933719==--