The easy way to integrate text handwriting recognition in your web app.
myscript-text-web
is a Web component that can be used in every web application to bring text 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.
If you're not familiar with MyScript and Interactive Ink, consider discovering its major features with our text demo and tutorial.
You can find on our examples page a simple example of myscript-text-web
.
We also provide several examples to show the features of myscript-text-web
. Those examples can be found on our examples page with the source codes in this directory.
- Easy to integrate,
- Digital ink capture and rendering,
- Rich editing gestures,
- Import and export content,
- Styling,
- Typeset support,
- 59 supported languages.
You can discover all the text features on our Developer website.
- Have bower installed.
- Have a MyScript developer account. You can create one here.
- Get your keys and the free monthly quota to access MyScript Cloud at developer.myscript.com
- Download myscript-text-web.
bower install myscript-text-web
-
Create an
index.html
file in the same directory. -
Add the following lines in the
head
section to import the library and the webcomponents polyfill.
<link rel="import" href="bower_components/myscript-text-web/myscript-text-web.html">
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
- Still in the
head
section, add the following style:
<style>
myscript-text-web {
height: 100%;
}
</style>
- Use the component in the
body
section with the keys you received by mail.
<myscript-text-web
applicationkey="YOUR MYSCRIPT DEVELOPER APPLICATION KEY"
hmackey="YOUR MYSCRIPT DEVELOPER HMAC KEY">
</myscript-text-web>
- Your
index.html
file should look like this:
<html>
<head>
<link rel="import" href="bower_components/myscript-text-web/myscript-text-web.html">
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<style>
myscript-text-web {
height: 100%;
}
</style>
</head>
<body>
<myscript-text-web
applicationkey="YOUR MYSCRIPT DEVELOPER APPLICATION KEY"
hmackey="YOUR MYSCRIPT DEVELOPER HMAC KEY">
</myscript-text-web>
</body>
</html>
- 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.
You can find a complete documentation with the following sections on our Developer website:
- Get Started: how to use myscript-text-web with a full example,
- Editing: how to interact with content,
- Conversion: how to convert your handwritten content,
- Import and Export: how to import and export your content,
- Styling: how to style content.
We also provide a complete API Reference.
You can get support and ask your questions on the dedicated section of MyScript Developer website.
Made a cool app with myscript-text-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 [email protected]
We welcome your contributions: if you wish to contribute to myscript-text-web
, feel free to fork it!
Please take a look at our contributing guidelines before submitting your pull request.
This library is licensed under the Apache 2.0.