texlive[48179] Master: axessibility (10jul18)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 10 23:07:15 CEST 2018


Revision: 48179
          http://tug.org/svn/texlive?view=revision&revision=48179
Author:   karl
Date:     2018-07-10 23:07:14 +0200 (Tue, 10 Jul 2018)
Log Message:
-----------
axessibility (10jul18)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/axessibility/
    trunk/Master/texmf-dist/doc/latex/axessibility/README
    trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf
    trunk/Master/texmf-dist/doc/latex/axessibility/axessibilityExampleGoldenMean.tex
    trunk/Master/texmf-dist/source/latex/axessibility/
    trunk/Master/texmf-dist/source/latex/axessibility/axessibility.dtx
    trunk/Master/texmf-dist/source/latex/axessibility/axessibility.ins
    trunk/Master/texmf-dist/tex/latex/axessibility/
    trunk/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
    trunk/Master/tlpkg/tlpsrc/axessibility.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/axessibility/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/axessibility/README	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/axessibility/README	2018-07-10 21:07:14 UTC (rev 48179)
@@ -0,0 +1,38 @@
+% axessibility - create pdf files with mathematical formulae accessible by assistive 
+%                technologies for visually impaired people with LaTeX
+%
+% Copyright (C) 2018 by 
+% Anna Capietto, Sandro Coriasco, Tiziana Armano, 
+% Nadir Murru, Alice Ruighi, Eugenia Taranto,
+% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra
+% 
+% Based on accsupp.sty
+%
+% This work consists of the main source file axessibility.dtx
+% and the derived files
+%   axessibility.ins, axessibility.sty, axessibility.pdf, README,
+%   axessibilityExampleGoldenMean.tex
+% 
+% The Current Maintainer of this work is 
+%               Sandro Coriasco
+%
+% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+% http://creativecommons.org/licenses/by-nc/4.0/
+%
+This is version 1.0 of axessibility, a package which allows LaTeX to create 
+pdf files with mathematical formulae accessible by assistive technologies 
+for visually impaired people.
+
+The following files are enclosed.
+
+  README                          - This file.
+  axessibility.dtx                - Documented tex file of the axessibility package. Run pdfLaTeX
+                                    on this file to obtain the package documentation.
+  axessibility.ins                - Run LaTeX on this file to extract the axessibility.sty file  
+                                    from axessibility.dtx.
+  axessibilityExampleGoldenMean   - A sample LaTeX file which uses the axessibility package.
+
+Installation notes:
+The package is supplied in `.ins`&`.dtx` format. Running `latex axessibility.ins` 
+will extract the package, whereas `pdflatex axessibility.dtx` will typeset the 
+documentation. Move `axessibility.sty` to your local `texmf` directory.


Property changes on: trunk/Master/texmf-dist/doc/latex/axessibility/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf	2018-07-10 21:05:49 UTC (rev 48178)
+++ trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf	2018-07-10 21:07:14 UTC (rev 48179)

Property changes on: trunk/Master/texmf-dist/doc/latex/axessibility/axessibility.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/axessibility/axessibilityExampleGoldenMean.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/axessibility/axessibilityExampleGoldenMean.tex	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/axessibility/axessibilityExampleGoldenMean.tex	2018-07-10 21:07:14 UTC (rev 48179)
@@ -0,0 +1,42 @@
+% 
+% Copyright (C) 2018 by 
+% Anna Capietto, Sandro Coriasco, Tiziana Armano, 
+% Nadir Murru, Alice Ruighi, Eugenia Taranto,
+% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra
+%
+% Based on accsupp.sty
+%
+% This work consists of the main source file axessibility.dtx
+% and the derived files
+%   axessibility.ins, axessibility.sty, axessibility.pdf, README,
+%   axessibilityExampleGoldenMean.tex
+% 
+% The Current Maintainer of this work is 
+%               Sandro Coriasco
+% 
+% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+% http://creativecommons.org/licenses/by-nc/4.0/
+%
+
+\documentclass[a4paper,11pt]{article}
+
+\usepackage{axessibility}
+
+\title{The golden mean}
+\author{}
+\date{}
+
+\begin{document}
+
+\maketitle
+
+The golden mean is the number
+\[\frac{1 + \sqrt{5}}{2},\] 
+that is the root larger in modulus of
+\begin{equation} x^2 - x - 1. \end{equation}
+It is usually defined as the ratio of two lengths \(a\) and \(b\) such that 
+\begin{equation*} (a+b) : a = a : b. \end{equation*} 
+Let \(x\) be the ratio \( \frac{a}{b} \), we have \( \frac{a+b}{a} = 1 + \frac{1}{x} \), from which we get the equation \(x^2 = x + 1\).
+
+
+\end{document}
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/axessibility/axessibilityExampleGoldenMean.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/axessibility/axessibility.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/axessibility/axessibility.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/axessibility/axessibility.dtx	2018-07-10 21:07:14 UTC (rev 48179)
@@ -0,0 +1,324 @@
+%
+% \iffalse meta-comment 
+% 
+% Copyright (C) 2018 by 
+% Anna Capietto, Sandro Coriasco, Tiziana Armano, 
+% Nadir Murru, Alice Ruighi, Eugenia Taranto,
+% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra
+%
+% Based on accsupp.sty
+% 
+% This work consists of the main source file axessibility.dtx
+% and the derived files
+%   axessibility.ins, axessibility.sty, axessibility.pdf, README,
+%   axessibilityExampleGoldenMean.tex
+% 
+% The Current Maintainer of this work is 
+%               Sandro Coriasco
+% 
+% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+% http://creativecommons.org/licenses/by-nc/4.0/
+%
+% \fi
+%
+%\iffalse
+%<*driver>
+\documentclass{ltxdoc}
+\usepackage{axessibility}
+\EnableCrossrefs
+\CodelineIndex
+\RecordChanges\begin{document}
+\title{The \textsf{axessibility} package}
+\date{July 9, 2018}
+ \author{Dragan Ahmetovic, Tiziana Armano, Cristian Bernareggi, \\
+ Michele Berra, Anna Capietto, Sandro Coriasco, Nadir Murru,\\
+ Alice Ruighi, Eugenia Taranto \\ 
+ Dipartimento di Matematica ``G. Peano''\\Universit\`a degli Studi di Torino \\
+ \texttt{<anna.capietto at unito.it>,<sandro.coriasco at unito.it>}}
+%
+\DocInput{axessibility.dtx}
+\end{document}
+%</driver>
+%\fi
+%
+% \changes{v1.0}{2018/07/09}{Initial version} 
+%
+% \maketitle
+%
+%\begin{abstract}
+%PDF documents containing formulae generated by \LaTeX\
+% are usually not accessible by assistive technologies for visually impaired people 
+% (i.e., by screen readers and braille displays). The package manages this issue, allowing to create a PDF document where the formulae are read by these assistive technologies, since it automatically generates hidden comments in the PDF document (by means of the /ActualText attribute) in correspondence to each formula. The package does not generate PDF/UA.
+%\end{abstract}
+%
+%\tableofcontents
+%
+%\section{Introduction}
+%This package focuses on the specific problem of the accessibility of PDF documents generated by \LaTeX\ for visually impaired people.
+%When a PDF document is generated starting from \LaTeX, formulae are not accessible by screen readers and braille displays. 
+% They can be made accessible by inserting a hidden comment, i.e., an actual text, similarly to the case of web pages. 
+% This can be made, e.g., by using the \LaTeX\ package pdfcomment.sty. In any case, this task must be manually performed by the author and it is surely inefficient, 
+% since the author should write the formulae and, in addition, insert a description for each formula. 
+% Note also that the package pdfcomment.sty does not allow to insert special characters like `backslash', `brace', etc, in the comment. 
+% Moreover, with these solutions, the reading is bothered since the screen reader reads incorrectly the formula and then the correct comment of the formula. 
+% There are also some \LaTeX\ packages that try to improve the accessibility of PDF documents produced by \LaTeX. 
+% In particular, the packages accsupp.sty and accessibility$\_$meta.sty have been developed in order to obtain tagged PDF documents. 
+% However, both packages do not solve the problem of the accessibility of formulae. The package accsupp.sty develops some interesting tools for commenting formulae 
+% using also special characters (possibility that is not available in the pdfcomment.sty package). Moreover, this is not an automatized method, 
+% since the comment must be manually inserted by the author. The package accessibility$\_$meta.sty is an improved version of the package accessibility.sty. 
+% This package allows the possibility of inserting several tags for sections, links, figures and tables. 
+% However, even if these tags are recognized by the tool for checking tags of Acrobat Reader Pro, they are not always recognized by the screen readers. 
+% Moreover, this package does not manage formulae. Our package automatically produces an actual text corresponding to the \LaTeX\ commands that generate the formulae. 
+% This actual text is hidden in the PDF document, but the screen reader reads it without reading  any incorrect sequence before. 
+%
+%\section{License}
+%
+% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+% \url{http://creativecommons.org/licenses/by-nc/4.0/}.
+%
+%\section{Prerequisites}
+%
+%The package \textbf{axessibility} requires the following packages: \textbf{accsupp, amsmath, amssymb}.
+%
+%\section{Package specification}
+%
+%If you use \LaTeX$2_\epsilon$ simply add the following line in the preamble:\\ \\
+%\indent $\backslash$\textbf{usepackage}$\{$\textbf{axessibility}$\}$
+%\\ \\
+%The package includes the following features:
+%\begin{itemize}
+%\item The commands \\ \\
+%\indent $\backslash$\textbf{pdfcompresslevel=0} \\
+%\indent $\backslash$\textbf{pdfoptionpdfminorversion=6} \\ \\
+%that produce an uncompressed PDF document. 
+%\item The command \\ \\
+%\indent $\backslash$\textbf{BeginAccSupp} 
+%\\ \\
+%contained in the package \textbf{accsupp} has been redefined so that the screen readers access the actual text created by this command. 
+%\item The new command \\ \\
+%\indent $\backslash$\textbf{wrap$\#$1}
+%\\ \\
+%allows to store its input into an actual text in the PDF document (e.g., the \LaTeX\ commands for generating a formula).
+%
+%\item The environments \\ \\
+%\indent $\backslash$\textbf{begin}$\{$\textbf{equation}$\}$ \dots $\backslash$\textbf{end}$\{$\textbf{equation}$\}$ \\
+%\indent $\backslash$\textbf{begin}$\{$\textbf{equation*}$\}$ \dots $\backslash$\textbf{end}$\{$\textbf{equation*}$\}$ \\
+%\indent $\backslash$[ \dots $\backslash$]\\
+%\indent $\backslash$( \dots $\backslash$)\\ 
+%
+%have been redefined. In each environment listed above, the command \cs{wrap} is inserted together with
+%the command \cs{collect at body}, so that all the content of the environment is automatically stored into an ActualText in the PDF document.
+%\end{itemize}
+%
+%\section{Usage}
+%
+%An author that wants to create an accessible PDF document for visually impaired people can add this package using the above environments for inserting the formulae. The \LaTeX\ code of the inserted formulae will be added as hidden comments in correspondence to the location of the formulae in the text. This will allow the user to access the formula code with the screen reader and with the braille refreshable display. Additionally, the package enables to copy the formula \LaTeX\ code from the PDF reader and paste it elsewhere.
+%
+%Note that, to preserve the compatibility with Acrobat Reader, our package discourages the use of the underscore character ($\_$), which is not correctly read using screen readers in combination with this PDF reader. Alternatively, we suggest to use the equivalent command \cs{sb}.
+%
+%Inline and displayed mathematical modes encoded by means of $\$$ and $\$\$$ are not supported by the package. However, external scripts, provided as companion 
+% software and described in the following section, can also address these cases. \\
+%
+%While multiline environments like \\ \\
+%\indent \textbf{align}, \textbf{multline}, \dots
+%\\ \\
+%are, at present, not directly supported, it is of course possible to use \\ \\
+%\indent $\backslash$\textbf{begin}$\{$\textbf{equation}$\}$ $\backslash$\textbf{begin}$\{$\textbf{aligned}$\}$ \dots
+% $\backslash$\textbf{end}$\{$\textbf{aligned}$\}$ $\backslash$\textbf{end}$\{$\textbf{equation}$\}$ 
+%\\ \\
+%for typesetting multiline formulae. The environments
+%\begin{center} \textbf{eqnarray}/\textbf{eqnarray*} \end{center}
+% can be (partially) treated by using the preprocessing scripts (see below). The full treatment of the multiline environments, 
+% in particular those defined in the \textbf{amsmath} package, will be added in future versions.
+
+%
+%\section{External scripts and screen reader integration}
+%
+%In addition to the package, we also provide scripts that complement package functionalities. 
+%
+%\subsection{Preprocessing scripts}
+%While we warmly suggest to follow the indications provided in the usage guide (suggested commands and environments), it is also possible to apply our package to an already existing \LaTeX\ document. In this case, it is necessary to preprocess the document in order to replace some of the unsupported commands and environments with the suggested ones. We provide a preprocessing script to handle some of these cases at our Github repository\footnote{\label{fn:repo}\url{www.integr-abile.unito.it/axessibility/?repository}}. %
+%\subsection{Expansion of user macros}
+%Note that custom macros used by the author within the formulae are copied as-is into the actual text in the hidden comment. This macros may bear no meaning for other readers, so it may be more meaningful to expand those macros into the original \LaTeX\ commands. We provide a script that can parse \LaTeX\ document and replace all the user macros within the formulae with their expanded definitions. You can download this script at our Github repository\footnotemark[\ref{fn:repo}].
+%
+%\subsection{Screen reader dictionaries}
+%\LaTeX\ commands that are included as actual text in the hidden comments corresponding to formulae may appear awkward when read by the screen reader. We provide dictionaries for JAWS and NVDA screen readers that convert \LaTeX\ commands into natural language. Please note that the braille refreshable display will still show the formulae in their original \LaTeX\ representations. The dictionaries can be downloaded at our Github repository\footnotemark[\ref{fn:repo}].
+%
+%\section{Implementation}
+%
+%
+% Standard file identification.
+
+% \begin{macrocode}
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{axessibility}
+%[2018/07/09 v1.0: Accessibility support by marked content for inline & displayed formulae]
+\RequirePackage{accsupp}
+\RequirePackage{amsmath}
+\RequirePackage{amssymb}
+% PDF compression/unicode settings
+\pdfcompresslevel=0
+\pdfoptionpdfminorversion=6
+\input{glyphtounicode}
+\pdfgentounicode=1
+%
+% \end{macrocode}
+%
+
+
+% Renewed command \cs{BeginAccSupp} defined in package \textbf{accsupp}  
+% to add the string \cs{S} before \cs{span}. 
+% This makes the formula readable by voiceover technologies.
+
+%    \begin{macrocode}
+%
+\makeatletter
+\renewcommand*{\BeginAccSupp}[1]{%
+  \begingroup
+    \setkeys{ACCSUPP}{#1}%
+    \edef\ACCSUPP at span{%
+      /S/Span<<%
+        \ifx\ACCSUPP at Lang\relax
+        \else
+          /Lang\ACCSUPP at Lang
+        \fi
+        \ifx\ACCSUPP at Alt\relax
+        \else
+          /Alt\ACCSUPP at Alt
+        \fi
+        \ifx\ACCSUPP at ActualText\relax
+        \else
+          /ActualText\ACCSUPP at ActualText
+        \fi
+        \ifx\ACCSUPP at E\relax
+        \else
+          /E\ACCSUPP at E
+        \fi
+      >>%
+    }%
+    \ACCSUPP at bdc
+    \ACCSUPP at space
+  \endgroup
+}
+\makeatother
+%
+%    \end{macrocode}
+
+%    \noindent The next command creates a blank space to avoid clash with references (it appears to be a \cs{protect}...).
+%      Refer to https://tex.stackexchange.com/questions/57151/how-do-i-prevent-conflicts-between-accsupp-and-hyperref 
+%    for possible handling of such issues.)
+
+
+
+%    \begin{macrocode}
+%
+\newcommand{\auxiliaryspace}{ }
+%
+%    \end{macrocode}
+
+
+% \noindent The next one is the actual wrapper. Takes the body of a formula environment and wraps it in AccSupp 
+% commands, to make the math-text available in comments.
+% \cs{detokenize} allows the formula to be parsed and read as a string.
+% \cs{expandafter} there applies to the token "\{" and allow \cs{detokenize} to be applied 
+% after argument \#1 is passed to \cs{AccSupp}.
+
+%    \begin{macrocode}
+%
+\makeatletter
+\long\def\wrap#1{
+\BeginAccSupp{method=escape,ActualText=\detokenize\expandafter{#1}}
+ #1
+\EndAccSupp{}%
+}
+\makeatother
+%
+%    \end{macrocode}
+
+
+% \noindent The next function redefines \cs{equation} by calling the above wrapper to its argument. 
+% This makes \cs{equation} accessible.
+
+%    \begin{macrocode}
+%
+\makeatletter
+\renewenvironment{equation}{%
+ \incr at eqnum
+  \mathdisplay at push
+  \st at rredfalse \global\@eqnswtrue
+ \mathdisplay{equation}%
+  \collect at body\wrap\auxiliaryspace}{%
+  \endmathdisplay{equation}%
+  \mathdisplay at pop
+  \ignorespacesafterend
+}
+\makeatother
+%
+%    \end{macrocode}
+
+
+% \noindent The next function redefines \cs{equation*}
+% by calling the above wrapper to its argument. 
+% This makes \cs{equation*} accessible.
+
+%    \begin{macrocode}
+%
+\makeatletter
+\renewenvironment{equation*}{%
+  \mathdisplay at push
+  \st at rredtrue \global\@eqnswfalse
+  \mathdisplay{equation*}%
+  \collect at body\wrap\auxiliaryspace}{%
+  \endmathdisplay{equation*}%
+  \mathdisplay at pop
+  \ignorespacesafterend
+}
+%
+\makeatother
+%
+%    \end{macrocode}
+
+
+% \noindent The next function redefines \cs{[} \cs{]}, 
+% using the above redefinition of \cs{equation*}
+
+%    \begin{macrocode}
+%
+\makeatletter
+\protected\def\[#1\]{\begin{equation*}#1\end{equation*}}
+\makeatother
+%
+%    \end{macrocode}
+
+
+% \noindent The next function redefines \cs{(} \cs{)} by means of a (temporary) 
+% math environment that calls the wrapper defined above.
+%
+%    \begin{macrocode}
+%
+\makeatletter
+%
+\newenvironment{tempenv}{%
+  \relax\ifmmode\@badmath\else$\fi%
+ \collect at body\wrap}{%
+  \relax\ifmmode\ifinner$\else\@badmath\fi\else \@badmath\fi}
+%
+\protected\def\(#1\){\begin{tempenv}#1\end{tempenv}}
+%
+\makeatother
+%
+%    \end{macrocode}
+
+%
+%\section{History}
+%\noindent \textbf{[2018/07/09: v1.0] }
+%\begin{itemize}
+%	\item First version 
+%\end{itemize}
+
+\endinput
+
+
+%%
+%% End of file `axessibility'.


Property changes on: trunk/Master/texmf-dist/source/latex/axessibility/axessibility.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/axessibility/axessibility.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/axessibility/axessibility.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/axessibility/axessibility.ins	2018-07-10 21:07:14 UTC (rev 48179)
@@ -0,0 +1,66 @@
+%
+% Copyright (C) 2018 by 
+% Anna Capietto, Sandro Coriasco, Tiziana Armano, 
+% Nadir Murru, Alice Ruighi, Eugenia Taranto,
+% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra
+%
+% Based on accsupp.sty
+%
+% This work consists of the main source file axessibility.dtx
+% and the derived files
+%   axessibility.ins, axessibility.sty, axessibility.pdf, README,
+%   axessibilityExampleGoldenMean.tex
+%
+% The Current Maintainer of this work is 
+%               Sandro Coriasco
+%
+% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+% http://creativecommons.org/licenses/by-nc/4.0/
+%
+
+\input docstrip
+
+\keepsilent
+
+\preamble
+
+This is a generated file. 
+
+Copyright (C) 2018  by
+Anna Capietto, Sandro Coriasco, Tiziana Armano, 
+Nadir Murru, Alice Ruighi, Eugenia Taranto,
+Dragan Ahmetovic, Cristian Bernareggi, Michele Berra.
+
+This work consists of the main source file axessibility.dtx
+and the derived files
+   axessibility.ins, axessibility.sty, axessibility.pdf, README,
+   axessibilityExampleGoldenMean.tex
+
+The Current Maintainer of this work is 
+               Sandro Coriasco
+
+This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License 
+http://creativecommons.org/licenses/by-nc/4.0/
+
+\endpreamble
+
+\usedir{tex/latex/axessibility} 
+
+\generate{
+	\file{axessibility.sty}{\from{axessibility.dtx}{}}
+}
+
+\Msg{*********************************************************}
+\Msg{*}
+\Msg{* To finish the installation you have to move the}
+\Msg{* following file into a directory searched by TeX:}
+\Msg{*}
+\Msg{* \space\space axessibility.sty}
+\Msg{*}
+\Msg{* To produce the documentation run the file axessibility.dtx} 
+\Msg{* through LaTeX.}
+\Msg{*}
+\Msg{* Happy TeXing!}
+\Msg{*********************************************************}
+
+\endbatchfile
\ No newline at end of file

Added: trunk/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/axessibility/axessibility.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/axessibility/axessibility.sty	2018-07-10 21:07:14 UTC (rev 48179)
@@ -0,0 +1,125 @@
+%%
+%% This is file `axessibility.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% axessibility.dtx 
+%% 
+%% This is a generated file.
+%% 
+%% Copyright (C) 2018  by
+%% Anna Capietto, Sandro Coriasco, Tiziana Armano,
+%% Nadir Murru, Alice Ruighi, Eugenia Taranto,
+%% Dragan Ahmetovic, Cristian Bernareggi, Michele Berra.
+%% 
+%% This work consists of the main source file axessibility.dtx
+%% and the derived files
+%%    axessibility.ins, axessibility.sty, axessibility.pdf, README,
+%%    axessibilityExampleGoldenMean.tex
+%% 
+%% The Current Maintainer of this work is
+%%                Sandro Coriasco
+%% 
+%% This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 License
+%% http://creativecommons.org/licenses/by-nc/4.0/
+%% 
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{axessibility}
+\RequirePackage{accsupp}
+\RequirePackage{amsmath}
+\RequirePackage{amssymb}
+\pdfcompresslevel=0
+\pdfoptionpdfminorversion=6
+\input{glyphtounicode}
+\pdfgentounicode=1
+
+
+\makeatletter
+\renewcommand*{\BeginAccSupp}[1]{%
+  \begingroup
+    \setkeys{ACCSUPP}{#1}%
+    \edef\ACCSUPP at span{%
+      /S/Span<<%
+        \ifx\ACCSUPP at Lang\relax
+        \else
+          /Lang\ACCSUPP at Lang
+        \fi
+        \ifx\ACCSUPP at Alt\relax
+        \else
+          /Alt\ACCSUPP at Alt
+        \fi
+        \ifx\ACCSUPP at ActualText\relax
+        \else
+          /ActualText\ACCSUPP at ActualText
+        \fi
+        \ifx\ACCSUPP at E\relax
+        \else
+          /E\ACCSUPP at E
+        \fi
+      >>%
+    }%
+    \ACCSUPP at bdc
+    \ACCSUPP at space
+  \endgroup
+}
+\makeatother
+
+
+\newcommand{\auxiliaryspace}{ }
+
+
+\makeatletter
+\long\def\wrap#1{
+\BeginAccSupp{method=escape,ActualText=\detokenize\expandafter{#1}}
+ #1
+\EndAccSupp{}%
+}
+\makeatother
+
+
+\makeatletter
+\renewenvironment{equation}{%
+ \incr at eqnum
+  \mathdisplay at push
+  \st at rredfalse \global\@eqnswtrue
+ \mathdisplay{equation}%
+  \collect at body\wrap\auxiliaryspace}{%
+  \endmathdisplay{equation}%
+  \mathdisplay at pop
+  \ignorespacesafterend
+}
+\makeatother
+
+
+\makeatletter
+\renewenvironment{equation*}{%
+  \mathdisplay at push
+  \st at rredtrue \global\@eqnswfalse
+  \mathdisplay{equation*}%
+  \collect at body\wrap\auxiliaryspace}{%
+  \endmathdisplay{equation*}%
+  \mathdisplay at pop
+  \ignorespacesafterend
+}
+\makeatother
+
+
+\makeatletter
+\protected\def\[#1\]{\begin{equation*}#1\end{equation*}}
+\makeatother
+
+\makeatletter
+\newenvironment{tempenv}{%
+  \relax\ifmmode\@badmath\else$\fi%
+ \collect at body\wrap}{%
+  \relax\ifmmode\ifinner$\else\@badmath\fi\else \@badmath\fi}
+\protected\def\(#1\){\begin{tempenv}#1\end{tempenv}}
+\makeatother
+
+
+\endinput
+%%
+%% End of file `axessibility.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/axessibility/axessibility.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-10 21:05:49 UTC (rev 48178)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2018-07-10 21:07:14 UTC (rev 48179)
@@ -55,7 +55,7 @@
     auto-pst-pdf-lua autobreak autopdf
     authoraftertitle authorarchive authorindex
     auto-pst-pdf autoaligne autoarea automata autonum autosp avantgar avremu
-    awesomebox axodraw2
+    awesomebox axessibility axodraw2
   b1encoding babel
     babel-albanian babel-azerbaijani babel-basque
     babel-belarusian babel-bosnian babel-breton

Added: trunk/Master/tlpkg/tlpsrc/axessibility.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-10 21:05:49 UTC (rev 48178)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-10 21:07:14 UTC (rev 48179)
@@ -56,6 +56,7 @@
 depend autonum
 depend autopdf
 depend avremu
+depend axessibility
 depend background
 depend bankstatement
 depend bashful



More information about the tex-live-commits mailing list