iink SDK on Device

How to disable specific gestures when the content type is text?

We want to disable specific gestures when the content type is text.

We looked at the configuration settings of the SDK:

1. gesture.enable : enable/disable all gestures

2. raw-content.pen.gestures : disable specific gestures when the content type is raw-content

3. diagram.pen.gestures : disable specific gestures when the content type is diagram

 

My question is how to disable specific gestures when the content type is text?

Whether there are similar configuration values such as "text.pen.gestures"?



Dear Mokacao,


thank you for contacting us.


You can disable gestures via the gesture.disabled-gestures configuration.


This can be done as follows:

configuration.let { conf ->
val confDir = "zip://${application.packageCodePath}!/assets/conf"
conf.setStringArray("configuration-manager.search-path", arrayOf(confDir))
val tempDir = File(application.cacheDir, "tmp")
    conf.setString("content-package.temp-folder", tempDir.absolutePath)
    val disabled_Gestures = arrayOf<String>("strike-through","double-strike-through","cross-out","pigtail-out","select","join","arc-join","insert")
    conf.setStringArray("gesture.disabled-gestures", disabled_Gestures)
}


Let us know if you have any other question.


Best regards,


Olivier



I tried "gesture.disabled-gestures" and it works, but I want to know what is the complete list of gestures?

Because I haven't seen anything like "pigtail-out" in the documentation.

 

Can custom recognition set the weight of certain words or phrases?

I see there used to be "mul-lk-email.res" or "mul-lk-phone_number.res" etc.

Can I customize Linguistic knowledge (LK)?

Dear Mokacao,


please find the whole list of gestures that can be deactivated: "scratch-out", "strike-through", "double-strike-through", "cross-out", "pigtail-out", "select", "join", "arc-join", "insert", "v-insert", "return", "decorate", "underline", "double-underline", "ellipse", "free-form", "tap", "double-tap", "long-press", "overwrite-strokes", "insert-strokes".


Can custom recognition set the weight of certain words or phrases?

>>This cannot be done with the iink SDK


Can I customize Linguistic knowledge (LK)?

>>You can indeed create your own lexicons, or subset knowledge. The easier is that you refer to our online documentation: https://developer.myscript.com/docs/interactive-ink/latest/android/advanced/custom-recognition/


Best regards,


Olivier

Login or Signup to post a comment