Interactive Ink

How do I recognize Korean first?

Hello Myscript Team.

I am using the off screen method.

  

.
.
.
string[] confDirs = new string[1];
      confDirs[0] = "conf";
      _engine.Configuration.SetStringArray("configuration-manager.search-path", confDirs);

      var localFolder = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
      var tempFolder = Path.Combine(localFolder, "MyScript", "tmp2");
      _engine.Configuration.SetString("content-package.temp-folder", tempFolder);
      _engine.Configuration.SetString("lang", "ko_KR");
      _engine.Configuration.SetBoolean("text.guides.enable", false); 
.
.
.
.
var result = _editor.Export_(_editor.GetRootBlock(), MimeType.JIIX, _exportParams);

 

 The following values ​​can be obtained.

 

{
 "type": "Text",
 "label": "釧",
 "words": [ {
   "label": "釧",
   "candidates": [ "釧", "釗", "순서", "刹", "上州" ]
  } ],
 "version": "2",
 "id": "MainBlock"
}

How do I get Korean(순서) as the label value first?


1 Comment

Dear Sungdae Kim,

thank you for contacting us and your question.

The reason we return this character is that it is part of the Korean Hanja characters, which are sometimes used in Korean for people's name.

To prevent using these, the solution consists in using a subset knowledge, in which either you either support the characters you expect, or remove the ones you do not want (for this latter possibility, please contact us): https://devportal.corp.myscript.com/docs/interactive-ink/1.3/android/advanced/custom-recognition/#subset-knowledge

Best regards,

Olivier