iink SDK on Device

How to use a language and math in the same part

For example:

image


I am using English and also need math notation.

1 Comment

Dear Hedy,


thank you for contacting us and your question.


Currently, to answer your question, our technology doesn't allow to recognize Math mixed with Text.


Nevertheless, for use-cases such as yours, you could add a custom lexicon, in which you add the terms you want to recognize.

E.g. you can add expresssions such as 3+2 in a lexicon ; you then compile this lexicon and add it to your configuration file:

-https://developer.myscript.com/docs/interactive-ink/2.0/android/advanced/custom-recognition/#lexicon

-https://developer.myscript.com/docs/interactive-ink/2.0/android/advanced/build-custom-resources/#how-to-build-resources


Note nevertheless there is one issue for the specific case of E=mc², as the square "²" cannot be recognized. The alternative (which I tried), consists in adding "E=mc2" in a custom lexicon. You will then be returned with E=mc2, which you can convert by yourself ad "E=mc²" if exporting.


Let me know if this helps.


Best regards,


Olivier

Login or Signup to post a comment