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

[lualatex]: remove empty mc and structures where possible #73

Open
u-fischer opened this issue May 10, 2023 · 0 comments
Open

[lualatex]: remove empty mc and structures where possible #73

u-fischer opened this issue May 10, 2023 · 0 comments

Comments

@u-fischer
Copy link
Member

In lualatex some empty mc and related empty parent structures can be detected:

\DocumentMetadata
{uncompress,testphase=phase-III,debug={log=vv}}
\documentclass{article}
\begin{document}

start
\tagmcend
 \tagstructbegin{tag=Span}\tagmcbegin{}\tagmcend
   \tagstructbegin{tag=Span}\tagmcbegin{}\tagmcend\tagstructend
 \tagstructend 
\tagmcbegin{} 
end

\end{document}

gives

12 0 obj
<<  /Type /StructElem /S /Span /P 11 0 R /K [ 13 0 R] /ID (ID.04) >>
endobj
13 0 obj
<<  /Type /StructElem /S /Span /P 12 0 R /K null /ID (ID.05) >> %<--- null
endobj

Removing them is not completly trivial as one has to do it recursively and also check the IDtree, but it should be possible to clean up a bit mode ...

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