[TIKA-4814] Retrieve objects and blobs from onenote in dom order - #3018
[TIKA-4814] Retrieve objects and blobs from onenote in dom order#3018henry-lindeman-glean wants to merge 7 commits into
Conversation
Signed-off-by: Henry Lindeman <henry.lindeman@glean.com>
|
Thank you for this PR. I had an agent review it. The most terrifying bit was that a new ParseContext is being built. Results: |
|
We definitely need to improve onenote parsing. Thank you for leading the effort. |
|
going to resolve this conflict, apply a code review, fix any issues i see, then merge |
|
@henry-lindeman-glean and @nddipiazza I've put a zip in google drive. @henry-lindeman-glean can you send me your gmail or similar? |
|
oops; updated in my gh profile |
Signed-off-by: Henry Lindeman <henry.lindeman@glean.com>
…te-squash Signed-off-by: Henry Lindeman <henry.lindeman@glean.com>
|
@tballison I think I addressed all the agent review concerns (also ran several rounds of ai review myself). Can I get another look? lmk if you want me to break it up / re-squash. I also have some code for handling lists and tables that I've left out for another PR since this one was getting big. |
|
Sounds good. I'm focused on the 4.0.0 release in the next couple of days. The good news is that I don't think If @nddipiazza has a chance to look that'd be great, if not, I'll probably have time towards the end of this week or maybe next. It is not small and will take time+tokens to review. I think we should also run some fuzzers against it with the files I shared as seeds. |
Signed-off-by: Henry Lindeman <henry.lindeman@glean.com>
Thanks for your contribution to Apache Tika! Your help is appreciated!
Before opening the pull request, please verify that
TIKA-XXXX)[TIKA-XXXX] Issue or pull request title)./mvnw clean testmainbranch. If there are conflicts, please try to rebase the pull request branch on top of a freshly pulledmainbranchtika-bom/pom.xml.We will be able to faster integrate your pull request if these conditions are met. If you have any questions how to fix your problem or about using Tika in general, please sign up for the Tika mailing list. Thanks!
Tested by running
java -jar tika-app/target/tika-app-4.0.0-SNAPSHOT.jar --text Downloadme.onepkgon this file (renamed so I can upload it lol)parsing-test.zip
Before (on simpler version with only the first three pages):
After
Images of the pages in the notebook






(the last page is added as a test fixture in this PR - testOneNoteEmbeddedImage.one)
It appears that the earlier behavior was to only take the last item on each page? (and since the last item on s2p1 is a drawing it gets null text there)