Text

Local Language Packs

I am developing an app to convert Chinese handwriting to digital text. I understand that ATK does not use MyScript cloud recognition servers, it uses the local resource that is available in the package. How can I ensure that the local language pack resources contains all the possible Chinese characters that the user may write?


Dear SK,

in order to use the Chinese language with the Text Widget, first you should download the Chinese language you will be using (Simplified, Traditional, Hong Kong).

Once downloaded, deploy it into the assets of your projects.
After deployement, you should add the language into the configure function you will find into the SampleActivity.java file.

E.g for en_US:
resources = new String[] {
"en_US/en_US-ak-cur.lite.res",
"en_US/en_US-lk-text.lite.res"
};


You should then be able to run the recognition with the language you prefer.

How can I ensure that the local language pack resources contains all the possible Chinese characters that the user may write?
>>MyScript supports the 29331 hanzi from the GB18030 HKSCS (that refers to the support of Hong Kong special characters) Chinese character set standard.

Best regards,

Olivier

Please replace:

NsArray * ja_JP = [NSArray arrayWithObjects:
     [mainBundle pathForResource:@"ja_JP-ak-cur.lite" ofType:@"res"],
     [mainBundle pathForResource:@"ja_JP-ak-iso.lite" ofType:@"res"],
     nil];

with

NsArray * ja_JP = [NSArray arrayWithObjects:
     [mainBundle pathForResource:@"ja_JP-ak-cur.lite" ofType:@"res"],
     [mainBundle pathForResource:@"ja_JP-lk-text.lite" ofType:@"res"],
     nil];

Hello,
For MultiLine Text widget, you should use the following resources:
- ja_JP-ak-cur.lite
- ja_JP-lk-text.lite
Please make sure to enable the reference to the multiline project when you copy the files into XCode.
Replace your code with EN_US by:
[self configureRecognitionForLocale:LOCALE_JP];
and

if ([locale isEqualToString:LOCALE_JP])
{
akCur = [[NSBundle mainBundle] pathForResource:@"ja_JP-ak-cur.lite" ofType:@"res"];
lkText = [[NSBundle mainBundle] pathForResource:@"ja_JP-lk-text.lite" ofType:@"res"];
}


Hope it helps!

Login or Signup to post a comment