top | item 18219219

Ask HN: Is there a OneNote file parser? Or an equivalent opensource note format?

11 points| fluentcar | 7 years ago

How does OneNote file format work? Is there a parser for it? Looking at the wiki page for onenote: https://en.wikipedia.org/wiki/Microsoft_OneNote

It says .one is an open format but if so where can I find a parser for it or create a .one file programmatically?

Is there an open-office or any such other open source equivalent of note taking software?

7 comments

order

mikestew|7 years ago

Maybe I'm pointing out what you've already discovered, but the file format is documented: https://msdn.microsoft.com/en-us/library/dd924743(v=office.1...

Given that, are you looking for something pre-baked, or is the file format enough to roll your own?

fluentcar|7 years ago

I saw that page and wasn't sure if I would be competent enough to roll my own parser of that format, hence my search for an existing .one parser or some similar open source format from Openoffice or some other open source note taking format.

teddyqwerty|7 years ago

I have alot of knowledge on parsing office file format what are you trying to do exactly? There is also as pose but that's a paid solution.

fluentcar|7 years ago

I was trying to implement my own note-taking program. While I understand how a Word doc is roughly XML formatted like <boldtext>some bold text</boldtext>

What I don't understand is how are multiple layers implemented in OneNote? How can one add SVG based drawings/annotations on typed text and move those annotations around. How is this encoded in the format, which seems pretty complex just thinking about it initially at least. My thinking was that if I could see a onenote parser, I could play around with a one-note document to see how it works? If that's not possible, I was wondering if there is any other open source format in which we annotate typed texts with hand drawing like in OneNote and how is that handled?