accessibility icon indicating copy to clipboard operation
accessibility copied to clipboard

port to luatex

Open viktoriasee opened this issue 5 years ago • 6 comments

Right now the package runs on pdftex only. But this converter is obsolete, we should use luatex, don't we? I like how easily OT fonts can be used with luatex. So please make the package work with luatex.

viktoriasee avatar Feb 10 '20 17:02 viktoriasee

But this converter is obsolete

pdfTeX is not obsolete, but I agree that it would be good to support LuaTeX.

I tried the following in my LuaLaTeX document but got a cryptic error that I haven't yet figured out how to debug (! A <box> was supposed to be here.):

\usepackage{luatex85}
\usepackage[tagged,highstructure]{accessibility}

rhansen avatar Feb 10 '20 18:02 rhansen

I don't get the same error. With this minimal example

\documentclass{scrreprt}
\usepackage[tagged]{accessibility}
\usepackage{luatex85}

\begin{document}
Text.
\end{document}

I get an error ! Undefined control sequence in accessibility.sty line 65 trying to run it through luatex.

viktoriasee avatar Feb 10 '20 20:02 viktoriasee

The \usepackage{luatex85} line must go before the \usepackage{accessibility} line, not after.

rhansen avatar Feb 10 '20 22:02 rhansen

Great! We're a big step forward then. No error anymore using LuaTeX 1.11.2.

\documentclass{scrreprt}
\usepackage{luatex85}
\usepackage[tagged]{accessibility}
\usepackage{hyperxmp}
\usepackage[pdfa=true]{hyperref}
\usepackage{polyglossia}

\hypersetup{%
    pdflang={de},
    pdfdisplaydoctitle=true,
    }

\setmainlanguage{german}

\begin{document}
Text.
\end{document}

Validates like this: pac3-latex-accessibility-minimal_v2

viktoriasee avatar Feb 11 '20 10:02 viktoriasee

I think that this should be looked at again after we deal with #12 and #34 (i.e. MVP functionality of the accessibility package).

It's likely that this could become it's own little mini-project, so I have added a new milestone (port to luatex).

AndyClifton avatar Feb 12 '20 16:02 AndyClifton

I agree.

viktoriasee avatar Feb 13 '20 07:02 viktoriasee