我正在为以下内容创建一个解析器.one
文件扩展名,完成后我会将其添加到 Apache Tika 项目中。
这是我正在创建的 APL 2.0 许可的开源项目:https://github.com/nddipiazza/onenote-parser-java https://github.com/nddipiazza/onenote-parser-java
我在这里使用了规范文档:https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-one/73d22548-a613-4350-8c23-07d15576be50 https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-one/73d22548-a613-4350-8c23-07d15576be50
作为起点,我移植了这个开源 C++ 项目的代码:https://github.com/dropbox/onenote-parser https://github.com/dropbox/onenote-parser
我在解析文档方面已经取得了很大的进展,但遇到了障碍。
这是我用来解析的 OneNote 文件:https://drive.google.com/file/d/1uROTEnKeBKU08CG_K5zdDTGHa178LgBK/view?usp=sharing https://drive.google.com/file/d/1uROTEnKeBKU08CG_K5zdDTGHa178LgBK/view?usp=sharing
我无法在解析结果中查看Section1TextArea1 和Section1TextArea2。所以我缺少某种关键数据解析元素之类的东西。
它肯定在 OneNote 文件本身中。我可以在十六进制查看器中看到它:
这是 JSON 解析输出:https://gist.github.com/nddipiazza/02d2252d357b3b02a6b9ab1050474267 https://gist.github.com/nddipiazza/02d2252d357b3b02a6b9ab1050474267
我觉得规范文档缺少一些解析这种专有格式所需的非常重要的信息。
我缺少哪些主要元素导致我无法获得实际的文本内容?