Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axessibility.sty: add lualatex support #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 32 additions & 10 deletions package/axessibility.sty
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
%%
%% The original source files were:
%%
%% axessibility.dtx
%%
%% axessibility.dtx
%%
%% This is a generated file.
%%
%%
%% Copyright (C) 2018, 2019, 2020 by
%% Anna Capietto, Sandro Coriasco, Boris Doubrov, Alexander Koslovski,
%% Tiziana Armano, Nadir Murru, Dragan Ahmetovic, Cristian Bernareggi
%%
%%
%% Based on accsupp and tagpdf
%%
%%
%% This work consists of the main source files axessibility.dtx and axessibility.lua,
%% and the derived files
%% axessibility.ins, axessibility.sty, axessibility.pdf, README,
%% axessibilityExampleSingleLineT.tex, axessibilityExampleSingleLineA.tex,
%% . axessibilityExampleAlignT.tex, axessibilityExampleAlignA.tex
%%
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%%
%% The Current Maintainer of this work is
%% Sandro Coriasco
%%
%%



Expand Down Expand Up @@ -345,10 +345,32 @@ require("axessibility.lua")

\RequirePackage{accsupp}

\RequirePackage{ifluatex}

\pdfcompresslevel=0
\pdfoptionpdfminorversion=6

\ifluatex

\directlua {
if pdf.getminorversion() \string~= 6 then
if (status.pdf_gone and status.pdf_gone > 0)
or (status.pdf_ptr and status.pdf_ptr > 0)
then
tex.error("PDF version cannot be changed anymore")
else
pdf.setminorversion(6)
end
end
}

\else

\pdfminorversion=6

\fi

\input{glyphtounicode}

\pdfgentounicode=1


Expand Down