iink SDK on Device

Answered

Disable "Drawing Area" creation

We discovered that drawing a horizontal line crossing the whole canvas of a Text Document creates some kind of drawing area where strokes can be drawn but no recognition is implemented. Please see the attached screen shot where the area is shown in the middle.

We are able to resize that area but not delete it using normal user interaction.

Is there a way to disable that feature? We are using the provided UIReferenceImplementation to implement iink in our app, so making changes to that code to disable the feature is an option.

Thank you!

image



Best Answer

Dear Nicolas,


thank you for your question.


This is indeed a Nebo feature that is the iink SDK: When doing a long horizontal gesture a Drawing" block is added. Doing a long press on the latter, you shall normally be able to remove the blokc (see our Demo sample).


At present, there is no configuration that allow to remove this feature.


Best regards,


Olivier


Answer

Dear Nicolas,


thank you for your question.


This is indeed a Nebo feature that is the iink SDK: When doing a long horizontal gesture a Drawing" block is added. Doing a long press on the latter, you shall normally be able to remove the blokc (see our Demo sample).


At present, there is no configuration that allow to remove this feature.


Best regards,


Olivier

Thank you Olivier.

To make it more difficult to inadvertently create a Drawing block this way, we would like to reduce the margins on the left and right sides of the page. We tried using the following before setting the Engine to the EditorView

 
Configuration conf = engine.getConfiguration();
conf.setNumber("text.margin.left", 5);
conf.setNumber("text.margin.right", 5);

 However, we could not see any change.

The documentation says that this setting sets the margin from one side of the part to the side of the text bounding box (used for reflow), but we don't know what that means.

So we have 2 questions:

1) Is it possible to adjust the left and right margins of a Text Document?

2) Could you explain what the settings text.margin.left and text.margin.right change?

Dear Nicolas,

currently, in a Text Document part, it is not possible to change the margins. These can be changed in a Text part.

You can refer to the following topic: https://developer-support.myscript.com/support/discussions/topics/16000023587

As you can see, in the case of a Text or a Math part, the margins are set in the "initEditor" function (iOS) and setEngine (Android).

Best regards,

Olivier


1 person likes this

Dear Nicolas,


Also, just a quick addendum.


Indeed, I mentionned above the gesture was adding a Drawing part ; currently, it is not a Drawing part but rather a raw content part ; in the latter, if you export as JIIX, the text and non-text areas will be indicated.


Best regards,


Olivier


1 person likes this