Takes messy Livescribe input, cleans it up, treats it as Markdown, and emails or POSTs it as HTML.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.forward.template
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE
README.md
dictionary.yml.template
mail_livescribe.rb
settings.yml.template

README.md

livescribe

The Livescribe smartpen in a pretty cool tech toy, but it's not perfect, especially not for formatted output. This script treats Livescribe's OCR output as messy almost-Markdown, then emails or POSTs its cleaned up HTML to the destination of your choice.

Note: use at your own risk. I'm the only user of this script so far, so it's not entirely generic.

Installation

  • git clone
  • bundle install
  • copy .forward to the home directory of the server that will receive emails

Usage

Usage: mail_livescribe.rb [options]
    -d, --[no-]dry-run               Do not really send email
    -v, --[no-]verbose               Show verbose information
    -p, --[no-]print                 Print converted input
    -e, --[no-]email-input           Input is a forwarded email
    -t, --[no-]to EMAIL              To: email address
    -c, --[no-]cc EMAIL              Cc: email address
    -f, --[no-]from EMAIL            From: email address
    -u, --url URL                    Url to POST data to

See settings.yml.template for an example of the settings that are available.

If the file dictionary.yml exists, words will be searched and replaced based on it.

POST to a url

If using the "POST to a url" option, it can expect snippet to contain the HTML output and is_html to be 1.

There can only be one occurrence of "CONTINUE HERE" in the doc. In particular, it cannot appear in both a table of contents and the document body itself.