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

tagunmarked code shouldn't mark literals ... #27

Open
u-fischer opened this issue Oct 30, 2019 · 0 comments
Open

tagunmarked code shouldn't mark literals ... #27

u-fischer opened this issue Oct 30, 2019 · 0 comments

Comments

@u-fischer
Copy link
Member

\documentclass[12pt]{article}
\usepackage{tagpdf,accsupp}
\tagpdfsetup{activate-all,uncompress,tagunmarked}
\usepackage{l3pdf}
\ExplSyntaxOn
\pdf_uncompress:
\ExplSyntaxOff

\begin{document}
\tagstructbegin{tag=Document}
\BeginAccSupp{method=hex,unicode,ActualText=1e0c}
\tagmcbegin{tag=P}D\EndAccSupp{}
\tagmcbegin{tag=P}
abc
\par\tagmcend\tagstructend\newpage
\end{document}

gives

/Artifact BMC
/Span<</ActualText<FEFF1e0c>>>BDC
EMC
/P<</MCID 0>> BDC

which is wrong. Something similar can happen if luaotfload add BDC-markers for glyphs/ligatures. See exp-bdc-problem-harfmode.tex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant