Skip to main content

No project description provided

Project description

Tolino Notes

Convert Tolino notes into useful formats

PyPI

Tolino

Tolino stores your highlights and notes in a notes.txt file on your device. However that file has a strange structure and mixes books when you read multiple ones at a time. And the content depends on the language-setting of your device.

This project tries to close the gap by doing the heavy-lifting of parsing the file, sorting and converting to a commonly used format such as Markdown or JSON. – one file per book found in your notes.txt.

Where do I find this file?

  • Connect your Tolino to your computer via USB.
  • Use a file manager (Explorer, Finder, etc.) and open the root directory of the device.
  • Look for the notes.txt file.

Install and use

This is a Python program. Install it using pip / poetry or similar from PyPi. If you don't yet have pip installed, go here first.

$ python -m pip install tolino-notes

In a new shell run:

$ tolino-notes --help
Usage: tolino-notes [OPTIONS]

  Convert Tolino notes into useful formats

Options:
  -i, --input-file FILE       Original Tolino notes file  [required]
  -o, --output-dir DIRECTORY  Folder for output files  [required]
  -f, --format [md|json]      Output format  [required]
  -v, --verbose               Verbose output
  --help                      Show this message and exit.

For example to convert all your notes to markdown run:

$ mkdir output-dir
$ tolino-notes --input-file notes.txt --output-dir output-dir --format md

Status

  • Successfully in use with Tolino Shine 3.
  • Supports extraction and conversion of highlights, bookmarks and notes.
  • Support for DE, EN, ES, IT, NL, FR device-language settings, which is detected automatically.
  • Supported output formats are Markdown and JSON.

Limitations:

Due to the unstructured nature of the notes.txt, it is a best-guess approach. The notes.txt format writes notes sequentially and it is not always clear in which order notes were taken. Also separating notes and highlights can only be done based on "quotes", which is not the most robust approach. In general, I believe 99% of your notes and highlights should be extracted properly.

Use the issue tracker to let me know about ideas and issues.

Development

  • The project is built based on this boilerplate.
  • Run make to create a new virtual environment.

License and attribution

This software is licensed under Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tolino_notes-0.3.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

tolino_notes-0.3.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file tolino_notes-0.3.1.tar.gz.

File metadata

  • Download URL: tolino_notes-0.3.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.1 Darwin/22.6.0

File hashes

Hashes for tolino_notes-0.3.1.tar.gz
Algorithm Hash digest
SHA256 c4d7686a74f3cf1f431ce4b12e3e092d5527a4346f3099515daf01a432bb35da
MD5 254e4630e85494d754814ba9c50e523f
BLAKE2b-256 e1eaa87329ed0c25714abc21ab1bc8fe143c392584f13cd5425ae7b93a0a4e46

See more details on using hashes here.

File details

Details for the file tolino_notes-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: tolino_notes-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.1 Darwin/22.6.0

File hashes

Hashes for tolino_notes-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5bb92481873cfeed7bc183c8f7d9b526c4ff46b3dd63807bc358db5dc59efd7f
MD5 14c5e24e3b6b3835501b258c48097afd
BLAKE2b-256 e8b217f2b8cccf1f4b18f26c99836bd1c8e1a4a76864d89760b5413794aedd7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page