Coder Social home page Coder Social logo

onenote-to-tana's Introduction

onenote-to-tana

onenote-to-tana is a script that converts OneNote Notebook(s) into a JSON file ready for import into a Tana workspace.

Pre-Requisites

  • You must have a Microsoft Windows 10 or 11 system.
  • You must have the OneNote for Windows Desktop app installed on your system.
  • You must have Python 3 installed on your system. This README assumes it is accessible via python, but other aliases, such as python3, are fine too.
  • You must have Python Poetry installed on your system and accessible in your system PATH.
    Check by running poetry --version in a PowerShell or command window.

OneNote Compatibility

Only the OneNote Desktop App for Windows is compatible with this script.
OneNote for Mac, iPad, iPhone, Android, and Web are currently not supported.

Known Problems

Inline images are currently not support by the Tana Intermediate Format (TIF). Only image URL references are supported. Therefore images that are part of an OneNote page can not be imported. You may copy&paste an image into a Tana node after an import by hand as a workaround.

Tables as list entries of (unordered) lists are currently not supported.

Installation

  1. Clone the repository.

    git clone https://github.com/hbrns/onenote-to-tana.git
    cd onenote-to-tana
  2. Install the requirements.

    poetry install
  3. Close the PowerShell or command window used during installation.

    exit

Import Notes into Tana

  1. Open the OneNote Desktop App and ensure the notebook you would like to convert is open.

  2. To convert your OneNote notebook(s), section(s), or page(s) to a JSON file for import into Tana, execute the convert script.

    cd onenote-to-tana
    poetry run python onenote-to-tana\convert_to_tif.py --user

The --user option will enable you to interactively select which notebook(s), section(s), or page(s) you like to convert.

Use the --help option for an overview on other options.

Acknowledgements

This script was inspired by the Python version of onenote-to-markdown from PageKey.

onenote-to-tana's People

Contributors

hbrns avatar

Stargazers

Endroll Linguistics avatar

Watchers

 avatar

onenote-to-tana's Issues

FileNotFoundError: [Errno 2] No such file or directory: '../data/kalli.json'

While running a conversion with python convert_to_tif.py --user the following error is raised:

[...]onenote-to-tana\onenote-to-tana\onenote\convert.py", line 514, in convert_pages_all
    with open("../data/kalli.json", 'w') as tif_json_file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '../data/kalli.json'

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.