Content types

Interactive Ink SDK lets you consistently interact with different types of content via a unified API. This page lists supported content types and outlines the potential specificities of each of them.

Generic approach

Interactive Ink SDK provides a generic way to interact with all types of content, conceptually illustrated by the diagram below:

Block (Text, Math, Drawing, Diagram, Raw Content, Text Document) Input • Digital ink • Configuration • Commands (e.g. convert()) • Simple imports (e.g. text string) Output Exports (e.g. Word, LaTeX) Storage • Serialization • Deserialization Rendering Graphical instructions Exchange Readable JIIX format, containing model semantics, positions, style and ink

For each type of content, and provided that it makes sense, you can consistently:

Supported content types

Interactive Ink SDK currently supports the following content types:

  • Text ("Text") - Simple block of multi-line text (including possible line breaks), responsive reflow. It shows guides by default but these can be deactivated (for instance when processing ink from an outside source that is not aligned on the guides).
  • Math ("Math") - Block supporting one or more equation.
  • Diagram ("Diagram") - Block supporting a diagram, with automatic text/non-text distinction and dynamic reorganization possibilities.
  • Drawing ("Drawing") - Block hosting a collection of strokes without any interpretation. Useful for scribbles and drawing activities.
  • Text Document ("Text Document") - Container hosting an ordered collection of text, math, diagram and drawing blocks in a vertical, dynamic and responsive stream of content.
  • Raw Content ("Raw Content") - Block hosting raw digital ink with no explicit segmentation into text, math, diagram or other items which semantics is known by iink SDK. Content is analyzed by iink SDK to retrieve ink corresponding to text blocks from the rest of the content. This text/non-text segmentation can be obtained via a JIIX export. It is key to implement ink search functionality on raw digital ink.

The string value provided between brackets is case-sensitive and identifies the type in the model in an unambiguous way.

At this point, Interactive Ink SDK does not allow you to mix languages when text recognition is involved.

For a wider presentation of all types of content that MyScript technology can recognize, along with possible use cases, refer to the detailed presentation in the Concepts section of this documentation.

Platform restrictions

Drawing and Text Document are currently only supported by native platforms. Web support is planned for future versions.

We use cookies to ensure that we give you the best experience on our website Read the privacy policy