latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

empty pdf file if only one paragraph in addpdfresources branch in lua mode. #28

Closed AlexandrKozlovskiy closed 4 years ago

AlexandrKozlovskiy commented 4 years ago

When in tex document we have only one paragraph,instead of alt/actualtext nvda read,that there iis a blank. When in document more then one paragraph or if we use generic mode,all works as expected. issue_of_one_paragraph.txt

u-fischer commented 4 years ago

Yes, I saw this also: nvda sometimes ignores the /Alt text. This seems to be an nvda bug and should be reported there.

AlexandrKozlovskiy commented 4 years ago

But this happends only in lua mode,so probably problems with pdf.

u-fischer commented 4 years ago

The pdfs are different, e.g. in generic mode your example is not fully tagged as the footer is not marked as artifact. nvda seems no to like if a formula is the only thing on a page.

AlexandrKozlovskiy commented 4 years ago

But I have the same problem,if in mc i have usual text,instead of formula,and it's happends only if i issue_of_one_paragraph.zip have in lua mode only one paragraph.

AlexandrKozlovskiy commented 4 years ago

After the latest commit problem in lua mode was not fixed.

u-fischer commented 4 years ago

Show your tex and the resulting pdf. Be aware that this branch is work-in-progress and depends on work-in-progress in the pdfresource branch - it is quite possible that it creates currently broken pdf in some cases.

AlexandrKozlovskiy commented 4 years ago

issue_of_paragraph.zip

u-fischer commented 4 years ago

I think I didn't push yesterday night correctly. I have done it now. I also adapted the package date, so that you can identify the version. It should say

Lua module: tagpdf 2019-11-04 0.70 tagpdf lua code)
AlexandrKozlovskiy commented 4 years ago

Thank you very much,now it seems works ok,at least for usual text.

AlexandrKozlovskiy commented 4 years ago

Should i recreate associated_files pr,to syncronize your changes in addpdfresources branch?

u-fischer commented 4 years ago

No that's not needed, part of it will have to go to other places, so I will only use the ideas not the actual code.