iink SDK on Device

Answered

Is it possible to limit input to one line?

Hello,

My input space is high enough for one line, but sometimes if I put quotes too high (which is normal in handwriting), the output gets split into two lines.

So handwritten: test"

Becomes: "<new line>test

Is there a way to avoid this problem and limit all characters to a single line input?

I'm on Android, IInk 1.3.

Thanks,
Andrey


Best Answer

Dear Rev,


thank you for contacting us and your question.


Currently, we have no way to force a single line.


But I just came up with somthing that may work:

-You tune the top margin (text.margin.top configuration) and set the Guidelines (text.guides.enable configuration): https://developer.myscript.com/docs/interactive-ink/1.3/reference/configuration/#text

-You tune the line height to have one line: https://developer.myscript.com/docs/interactive-ink/1.3/reference/styling/#text


But to get the best recognition, the writer shall ensure to write on the line.


Let me know if this works.


Best regards,


Olivier


Answer

Dear Rev,


thank you for contacting us and your question.


Currently, we have no way to force a single line.


But I just came up with somthing that may work:

-You tune the top margin (text.margin.top configuration) and set the Guidelines (text.guides.enable configuration): https://developer.myscript.com/docs/interactive-ink/1.3/reference/configuration/#text

-You tune the line height to have one line: https://developer.myscript.com/docs/interactive-ink/1.3/reference/styling/#text


But to get the best recognition, the writer shall ensure to write on the line.


Let me know if this works.


Best regards,


Olivier

Thanks, Olivier. I'll play around with it.