Giter VIP home page Giter VIP logo

Comments (7)

aborel avatar aborel commented on June 12, 2024 1

Version 0.7.2 should solve the problem. The implementation of that particular section in the Zotero7-compatible code was incorrect in 0.7.1, I apologize and hope that we have a satisfying plugin now.

from zotero-ocr.

stweil avatar stweil commented on June 12, 2024

Which Zotero version are you running? I don't see that error with Zotero 7.0.0-beta.75+f7dc68c7f. Maybe older beta versions don't work?

from zotero-ocr.

aborel avatar aborel commented on June 12, 2024

I am able to reproduce with beta76. The beta70+ compatibility fix was not 100% correct, sorry about that. I had not detected this error because I was testing the plugin on the same PDF over and over again, and the relevant code section (zotero-ocs.js lines 188-211) was skipped due to an existing image-list.txt file. If I delete it, the error happens.
I hope I will have time to take care of this at the end of the week.

from zotero-ocr.

kai-kea avatar kai-kea commented on June 12, 2024

@stweil Sorry, I should have included the entire log. I believe it was 70+ (I have auto-updates on) so probably 74 or 75.

Fortunately as @aborel mentions it seems like it can be reproduced pretty easily.

The images for each page were produced, but no output ocr.pdf. I was able to run tesseract from terminal to get the ocr pdf :D.

As I linked above, Mozilla has some documentation of this issue for migrations from OS.File to IOUtils. They suggest replacing OS.FileDirectoryIterator with a loop which uses the IOUtils.getChildren() method.

I hope that helps.

from zotero-ocr.

aborel avatar aborel commented on June 12, 2024

No worries, you provided more than enough information for me to locate the source of the problem. Now all I need to do is properly write the relevant 2 or 3 lines code ;-)

from zotero-ocr.

stweil avatar stweil commented on June 12, 2024

@aborel, thank you for fixing this. I added commit 83c1f33 to update the release files and moved the 0.7.2 tag. Now the plugin update works, too.

from zotero-ocr.

aborel avatar aborel commented on June 12, 2024

Thanks @stweil I need to be more careful with the release procedure.

from zotero-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.