From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23452 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Accessibility of Generated Docx Date: Sat, 21 Sep 2019 10:54:13 -0700 Message-ID: References: <677959fb-29b8-4eaa-837f-c53e5ea5ab51@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="63395"; mail-complaints-to="usenet@blaine.gmane.org" To: Conrad Cunningham , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBU6HTHWAKGQE2ARWXTI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Sep 21 19:54:30 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pl1-f185.google.com ([209.85.214.185]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iBjaY-000GMd-3t for gtp-pandoc-discuss@m.gmane.org; Sat, 21 Sep 2019 19:54:30 +0200 Original-Received: by mail-pl1-f185.google.com with SMTP id x7sf6395164plr.17 for ; Sat, 21 Sep 2019 10:54:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569088468; cv=pass; d=google.com; s=arc-20160816; b=nsdaLmG7t89/qg/37638wyl6swGJYpQN2QlQt1Jc5PK5w2ByfNiCrimjJt/vWLe8S4 wZeeF+nUU5Bi7FFrAp+JCRKpqwqkrnAHzcO+0wlsVkdq/+Rz7e7/NIZ3cVNKcBIJC+jg C0JKKHYOV83VrQjyiw2McmhqEKI1OxcXUQH+My2/r5K73TDYRYDHgPyrnHqPggc4iGuE 7rJcXo9BPVKi7EmX1iL7LozRIsqDyA0EUJq1qDxT+pPEKXPU1Adw/qkmAT2yp1pv04up yfXhDFcPaGe3WHIyDAP7ubCJNRrq8nrNm2AczoFuT7mbG2GwxN6OwKvk0tJjUTts6I/b SMkg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=bhGKwYaF2Qp7N3+2AoWDaqGIijyeSy4lmTyowaLTkQs=; b=sS09kZ5cp52qrz7aR0QHN1Pr8g5N9TvQDJ975RTthEIPUha2XB9dgWI9OXlz9IuRGy ZdYgrgkCe5urs8ZVVadLvQjEN+zV7YSHHFZyVf0fWb3A05g89ZL3GSa19hxqzDxBBwQA l/Cl/Aidyao2yj2+5FE2Hi0xxvbZ9P5791xgjDriQ/KVm7yCtz+L6YE8By7D3CcaT3xf 6t4iDBf2Kw3DM7EYSaPvmHWEfFXCc7Kr2W+VQINAYrovrqfmOp3TESwhQd8Xx+bFxKe4 pl3jOzsbo2yu5BuTG6KTfckc5kaLSySQFKLbHRiLzAuamr7lMLtnl/9HBvr1Z2q9ORxt z4ug== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FOySP4sy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=bhGKwYaF2Qp7N3+2AoWDaqGIijyeSy4lmTyowaLTkQs=; b=VTqgrPcic/jFK9gLFWHUEjcISCBjFhOQzL5XB7J5EEjge9HaaIaURGd45cJxYYIdsE cnB5OlUI5R1jLqVU4xjeEPVm86jAgdpU7pQD8h2EsbQAmsRMZ2dBg+n4O/bEYAAcUO2L My013F0xRtjAIFAqF5j5GGAVRDjI7L/GI/hbcuKqySbd1i93zDn4VkquqCWgFQkOdYbN HuPVeKYIXXr7pTah0Wf2sTDxecwEZWU+7PMc/JFkNZOtbW9VQAGGpW3/oSAZo7JIp/CB eLBQNPiGr36i/F9UI1JpZHqGihUtsBZjy4+y04XQh3ep5p/6mgGe/9gPlxmMbg9ZKYW/ 0CcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=bhGKwYaF2Qp7N3+2AoWDaqGIijyeSy4lmTyowaLTkQs=; b=Cf+v2Bo/R7oXDhXxbfWqYI2kTzPP/Yj23a58iGVZetGgJIRkH1EXrjrZjcP7K7tWfH +yVbM5xqlwVjq7huj1Ra4YfZXARl7mGtusVKDzrWO6G8BKrH/ccCQZ9wMwks6iqV2umr NbxlZaHElFvJMEUkG/2wQGvum/q3wYKYX3PxU/YlcnUMbmk9s8R9W3xL3/N/wh1toU5e PMixKA3m4P1NSQHRI14Db79YJMRE4+KebcTd8NGkQo4pY5BZ6N7xblpjw6WmSQyZEyjf VGUWI8uL9nm2dMj/emb2xkEd/ObI+3T+3KXTSwKN95fV8Pr4QYX3EMc8VRxuSnghDzYZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXrwBoZ8Ok02DEtSOVMKUnGRrh9t32anx2MRUcL6ScIp6QFkeYB ZUG0Cs+uqqn9YTGp7r7CsZQ= X-Google-Smtp-Source: APXvYqzBUEkrz5FsGrC1nBSomUXlDN4FgTTP1OYnLUkKsu4BKXtDrn4xUlSFol8mcVHLZ8X586eKgQ== X-Received: by 2002:a17:90a:8990:: with SMTP id v16mr11578448pjn.131.1569088468136; Sat, 21 Sep 2019 10:54:28 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:2a06:: with SMTP id q6ls2862219pfq.14.gmail; Sat, 21 Sep 2019 10:54:27 -0700 (PDT) X-Received: by 2002:aa7:96cd:: with SMTP id h13mr24488590pfq.21.1569088467338; Sat, 21 Sep 2019 10:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569088467; cv=none; d=google.com; s=arc-20160816; b=glMCQWwcvaaRxXbLQV74F5FtpIyZm8QOyWRnfhKT8CdZQoTQr9O0LOFh9t1SyTdChI WXUhRIqdZamhBcdNYyX7S8dlxMOHvj6AwSrFMejLeb2zAk+2B85EgZw9UUrjKN/YLVrk IaaRKfun1Gc7HWP7Qj3DvfWxkGECTED33LiEcNxM3qcHb3NZgQ/Tn9BMrEdpH03kVF3Y nAzqcMp1Wt9u2fAieCcYNZAOyRqN28ewxhvUG0EmT1n1RSBnALyxO5UNN9iLgy8HewDw u5ufR6oI3TSb7oMfiT/MzjUlRZyEpxbMoiTTNku8IvZKMhGul5OU/gE5XaAgWgwaMLdN UGvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=6y2v0rldET1UjM2YFmDaCCCxU0UDGHB4KMGxPPB9Yyo=; b=bUWmYqc5XtsKwPUlZU300d+0SgZYUtJBZOEFc9zry20K+/fVd5pvhKyidrN3O8VA0e oEHcaszk4X59XvXAnGHpH+TgmpKf9/qIvpBr6mX8h5OymedTIY+X0IvCZ5cTFT0yj4bJ cOkks4/lwU4Fc8kv2SGHjvqQOrUFLuws6UygoNm2WRrbrxWSJk3Z2YFBBgDN5IOqNAi4 FwYsET6i3pil6Ai4j1XQFcqtYTtYeTaY1VyIMQZUUOsHdU0ALfXbcrCmncvukonm/qfo ka3SYGqe2/dgIWKbwR7gdZ59YtuVM+M2cnHkXu3T9pn2BrXouXZXPDe5AjFcpqUqL0J1 ANdg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FOySP4sy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com. [2607:f8b0:4864:20::534]) by gmr-mx.google.com with ESMTPS id v184si465060pgb.5.2019.09.21.10.54.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Sep 2019 10:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) client-ip=2607:f8b0:4864:20::534; Original-Received: by mail-pg1-x534.google.com with SMTP id n190so5635581pgn.0 for ; Sat, 21 Sep 2019 10:54:27 -0700 (PDT) X-Received: by 2002:aa7:9a48:: with SMTP id x8mr23527425pfj.201.1569088467038; Sat, 21 Sep 2019 10:54:27 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id w11sm10222854pfd.116.2019.09.21.10.54.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Sep 2019 10:54:26 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 45301A258; Sat, 21 Sep 2019 13:54:15 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=FOySP4sy; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:23452 Archived-At: You can try using alternative paths to pdf (--pdf-engine supports a number of options, some via HTML, and they may do better for accessibility, I'm not sure). Conrad Cunningham writes: > Thanks.=20 > > It is useful that Pandoc=E2=80=99s docx writer generates files in compati= bility mode and that the generated documents are accessible.=20 > > Given my institution=E2=80=99s push to make all public documents accessib= le, I am looking at convenient (automatable) ways to get my Pandoc-flavored= course documents into accessible PDFs and other accessible formats. Unfort= unately, mLaTeX-to-PDF support for PDF/UA seems =E2=80=9Cnot ready for prim= e time=E2=80=9D.=20 > >> On Sep 13, 2019, at 3:00 PM, BP Jonsson wrote: >>=20 >> I believe compatibility mode is helpful also when opening docx files in = LibreOffice. At least even quite large files produced by Pandoc open much f= aster than some DOCX files people send me. >>=20 >>=20 >> Den fre 13 sep. 2019 19:31John MacFarlane skrev: >>>=20 >>> We use compatibility mode so that the docx pandoc produces >>> will be readable by the widest variety of Word versions (even >>> quite old ones). >>>=20 >>> This isn't itself an issue with accessibility; it's just an >>> issue with the Mac's checker I guess, and I don't think we should >>> modify pandoc just to work around that. >>>=20 >>> We could change pandoc to avoid compatibility mode, but that >>> would mean our docxs can't be read by older Word versions. >>> At some point it may be worth having this conversation. >>>=20 >>> In principle we could have a flag to generate either >>> compatibility mode or not, but that adds a lot of complexity >>> for little gain. >>>=20 >>> > by using a custom reference document with modified styles. The warnin= gs=20 >>> > associated with code blocks, highlighting, etc., seem more problemati= c. >>>=20 >>> The code coloring is affected by the --highlight-style option. We >>> provide several styles out of the box, including a monochrome >>> style which is very high contrast. You can also create and use >>> your own style. See the docs. >>>=20 >>>=20 >>> Conrad Cunningham writes: >>>=20 >>> > I use pandoc to convert Pandoc-flavored Markdown documents to HTML=20 >>> > (primarily), Word docx, PDF (via LaTeX), etc. I am currently using pa= ndoc=20 >>> > 2.7.3. Microsoft Word for Mac 16.16.14, and MacTeX 2019 on MacOS 10.1= 4.6=20 >>> > (Mojave). >>> > >>> > According to the tests I have run using the WebAIM WAVE tool, the=20 >>> > accessibility of the generated HTML is reasonable. (I need to give so= me=20 >>> > attention to places in the Markdown input where I use tables and alt = text.) >>> > >>> > For the generated docx, I am using Word for Mac's builtin accessibili= ty=20 >>> > checker. I found that the generated docx is in compatibility mode. Wo= rd for=20 >>> > Mac's accessibility checker cannot process that kind of file. If I lo= ad the=20 >>> > file into Word and then save as a normal docx, the checker will run. >>> > >>> > Is there a less inconvenient way to get the generated output into the= =20 >>> > normal docx mode? I would like to get the final output by running a s= hell=20 >>> > script on the Markdown input. >>> > >>> > The issues I have found so far in my limited tests are warnings about= =20 >>> > insufficient color contrasts and sequences of blank characters. Some = of=20 >>> > these (e.g., colors in section headers and hyperlinks) seem to be fix= able=20 >>> > by using a custom reference document with modified styles. The warnin= gs=20 >>> > associated with code blocks, highlighting, etc., seem more problemati= c. >>> > >>> > --=20 >>> > You received this message because you are subscribed to the Google Gr= oups "pandoc-discuss" group. >>> > To unsubscribe from this group and stop receiving emails from it, sen= d an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> > To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/677959fb-29b8-4eaa-837f-c53e5ea5ab51%40googlegroups.co= m. >>>=20 >>> --=20 >>> You received this message because you are subscribed to the Google Grou= ps "pandoc-discuss" group. >>> To unsubscribe from this group and stop receiving emails from it, send = an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/yh480k1rwk6r2b.fsf%40johnmacfarlane.net. >>=20 >> --=20 >> You received this message because you are subscribed to a topic in the G= oogle Groups "pandoc-discuss" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/topic/= pandoc-discuss/Y8Q1z1mdgVM/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/pandoc-discuss/CAFC_yuTPDWN5yxYnSObFq3kiRp%2BZ%3DY3Kvd%2B67g16qz4D%2BEge= LA%40mail.gmail.com. > > --=20 > You received this message because you are subscribed to the Google Groups= "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/DF338AD1-4D4E-461B-8A66-F30986A9015E%40gmail.com. --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/m2lfuh358a.fsf%40johnmacfarlane.net.