iink SDK on Device

Answered

recognition number support decimal and negative

image

I set the subset in resource file: "0123456789-." to support decimal and negative, but I don't want '-' symbol appear in the middle of number, it's a wrong case.

Is there a solution to support decimal and negative, '-' only appear in front of number, and '.' only appear in the middle of number.



Best Answer

Dear Rainbow Zhang,


thank you for contacting us.


Currently, you can use the "mul-lk-number.res" resource which you will find here: https://myscript.filecamp.com/s/Re4oOVtoV9350AKo/fo


You shall add it in the assets of your project (e.g in the assets/resources/zh_CN directory of your project).


Then, set a configuration in your zh_CN.conf file, such as follows:

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


You shall then call it as follows: conf.setString("text.configuration.name", "numbers");


Best regards,


Olivier

1 Comment

Answer

Dear Rainbow Zhang,


thank you for contacting us.


Currently, you can use the "mul-lk-number.res" resource which you will find here: https://myscript.filecamp.com/s/Re4oOVtoV9350AKo/fo


You shall add it in the assets of your project (e.g in the assets/resources/zh_CN directory of your project).


Then, set a configuration in your zh_CN.conf file, such as follows:

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


You shall then call it as follows: conf.setString("text.configuration.name", "numbers");


Best regards,


Olivier