Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
/ myscript-math-web Public archive

✏️ ☁️ The easy way to integrate mathematical expressions handwriting recognition in your web app.

License

Notifications You must be signed in to change notification settings

MyScript/myscript-math-web

Repository files navigation

MyScript Math Web

The easy way to integrate mathematical expressions handwriting recognition in your web app.

myscript-math-web is a Web component that can be used in every web application to bring mathematical handwriting recognition and conversion.

It integrates all you need:

  • Signal capture for all devices,
  • Digital ink rendering,
  • Link to MyScript Cloud to bring handwriting recognition.

Table of contents

Examples

If you're not familiar with MyScript and Interactive Ink, consider discovering its major features with our math demo.

You can find on our examples page a simple example of myscript-math-web.

We also provide several examples to show the features of myscript-math-web. Those examples can be found on our examples page with the source codes in this directory.

Features

  • Easy to integrate,
  • Digital ink capture and rendering,
  • Rich editing gestures,
  • Content export,
  • Styling,
  • Typeset support,
  • More than 200 mathematical symbols supported.

You can discover all the math features on our Developer website.

Requirements

  1. Have bower installed.
  2. Have a MyScript developer account. You can create one here.
  3. Get your keys and the free monthly quota to access MyScript Cloud at developer.myscript.com

Installation

  1. Download myscript-math-web.
bower install myscript-math-web

Usage

  1. Create an index.html file in the same directory.

  2. Add the following lines in the head section to import the library and the webcomponents polyfill.

<link rel="import" href="bower_components/myscript-math-web/myscript-math-web.html">
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
  1. Still in the head section, add the following style:
<style>
    myscript-math-web {
        height: 100%;
    }
</style>
  1. Use the component in the body section with the keys you received by mail.
<myscript-math-web
  applicationkey="YOUR MYSCRIPT DEVELOPER APPLICATION KEY"
  hmackey="YOUR MYSCRIPT DEVELOPER HMAC KEY">
</myscript-math-web>
  1. Your index.html file should look like this:
<html>
    <head>
        <link rel="import" href="bower_components/myscript-math-web/myscript-math-web.html">
        <script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
        <style>
            myscript-math-web {
                height: 100%;
            }
        </style>
    </head>
    <body>
      <myscript-math-web
        applicationkey="YOUR MYSCRIPT DEVELOPER APPLICATION KEY"
        hmackey="YOUR MYSCRIPT DEVELOPER HMAC KEY">
      </myscript-math-web>
    </body>
</html>
  1. Launch a local Web server like the one below and open the page in your browser (at 0.0.0.0:8000 if you used the one below) to start using it!
python -m SimpleHTTPServer

You can find this guide and a more complete example on the MyScript Developer website.

Documentation

You can find a complete documentation with the following sections on our Developer website:

We also provide a complete API Reference.

Getting support

You can get support and ask your questions on the dedicated section of MyScript Developer website.

Sharing your feedback

Made a cool app with myscript-math-web? We would love to hear about you! We’re planning to showcase apps using it so let us know by sending a quick mail to myapp@myscript.com

Contributing

We welcome your contributions: if you wish to contribute to myscript-math-web, feel free to fork it!

Please take a look at our contributing guidelines before submitting your pull request.

License

This library is licensed under the Apache 2.0.