iink SDK on Device

Answered

I create a subset knowledge of number letters only, but it does not work on android device.

Hi

I'm trying to create a subset knowledge of number letters only. 

1. I create a sk file with content "1234567890", using utf8 encode. Then download the res file.

2. I put the res file in the resources directory of the Android assets directory. path: assets/resources/number/number.res

3. I create a conf file in assets/conf/number.conf  

Bundle-Version: 1.0
Bundle-Name: number
Configuration-Script:
 AddResDir ../resources/

Name: number
Type: Text
Configuration-Script:
 AddResource number/number.res
 EnableAlienCharacters
 SetTextListSize 1
 SetWordListSize 5
 SetCharListSize 1 

  

when I run the project, it does not work.



Best Answer

Dear Yang Yang,


Thank you for your question.


Currently, your configuration shall also include the ak resource. You have to think of the subset knowledge as a "mask" that would come on top of the AK to only allow some characters.


Here is an example of configuration:

Name: number
Type: Text
Configuration-Script:
AddResource zh_CN/zh_CN-ak-cur.res
AddResource number/number.res
EnableAlienCharacters
SetTextListSize 1
SetWordListSize 5
SetCharListSize 1


Let us know if this helps.


Best regards,


Olivier


Dear Yang Yang,


thank you for the update, I am glad it is working.


Best regards,


Olivier

Got it, Thank u

Answer

Dear Yang Yang,


Thank you for your question.


Currently, your configuration shall also include the ak resource. You have to think of the subset knowledge as a "mask" that would come on top of the AK to only allow some characters.


Here is an example of configuration:

Name: number
Type: Text
Configuration-Script:
AddResource zh_CN/zh_CN-ak-cur.res
AddResource number/number.res
EnableAlienCharacters
SetTextListSize 1
SetWordListSize 5
SetCharListSize 1


Let us know if this helps.


Best regards,


Olivier


1 person likes this

It cannot recognize iink. recognize result is blank.