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

Fix bug when processDocument() is run on a single word #155

Closed
stephaniereinders opened this issue Jun 25, 2024 · 1 comment · Fixed by #156 or #158
Closed

Fix bug when processDocument() is run on a single word #155

stephaniereinders opened this issue Jun 25, 2024 · 1 comment · Fixed by #156 or #158

Comments

@stephaniereinders
Copy link
Member

w0001_s01_pPHR_r01-l2-wd1

doc <- handwriter::processDocument('path/to/image.png')

In the result, doc$process$letterList isn't in the correct format. letterList should have 2 items, one for each graph. Each item should have a nested list of 8 fields. Instead, doc$process$letterList is a list of 16 items.

@stephaniereinders stephaniereinders linked a pull request Jun 26, 2024 that will close this issue
@stephaniereinders
Copy link
Member Author

The changes fixed the error for 26 docs, each containing the word "the", from CSAFE writer 1, but the error occurs for docs from CSAFE writer 2.

@stephaniereinders stephaniereinders linked a pull request Jun 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant