latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
31 stars 13 forks source link

odd tags with realscripts #457

Open mbertucci47 opened 1 month ago

mbertucci47 commented 1 month ago

With the realscripts package, the resulting text with \textsuperscript and \textsubscript is not correct in the tags and is not read correctly by Acrobat's "Read out loud".

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid},
  }
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\usepackage{realscripts}

\begin{document}

Text\textsuperscript{12345678910abcdef}

Text\textsubscript{12345678910abcdef}

% original behavior
Text\textsuperscript*{12345678910abcdef}

Text\textsubscript*{12345678910abcdef}

\end{document}
realscripts_struc

Similar things happen with other fonts, though some fonts like Source Serif Pro seem to only have superscript letters.

FrankMittelbach commented 1 month ago

What's your take @u-fischer ?