Text

Answered

Windows - Change Language for Text Recognition

Hi,

 

I'm currently working on changing the recognition language from English to Chinese in our WPF application. To achieve this, I followed these steps:

 

1. Downloaded the necessary files for the Chinese language from the official MyScript website here https://developer.myscript.com/support/recognition-assets
2. Added the provided configuration (Conf) and resource files to our project.
3. Changed the language setting while initializing the editor:

 // Set the language
configuration.SetString("lang", "zh_CN");

Despite making these changes, I'm still experiencing the recognition language remaining in English.

 

Additionally, our application requires support for multiple languages, including English, Chinese, and German, all within a single app.

 

Could you please provide guidance on what additional steps may be necessary to resolve this issue and support multiple languages effectively?
Your assistance is greatly appreciated.

 

 

Thank you.


Best Answer

Hello,


Thank you for your update.

You can configure one language per Part, so in your application you can switch part when you want to switch your language. Please refer to https://developer-support.myscript.com/support/discussions/topics/16000029350


Default configurations for all languages but English variants also  attach a “secondary English” LK that allows the engine to recognize a  mix of the target language and English. Except for this particular case, it is not expected to mix languages together. 


Best regards,


Gwenaëlle


Hello,


Thank you for contacting us.


The language must be configured before setting the part of the editor.

 It is therefore not possible to have several languages for one editor (except English as a secondary language) or to change the language of an already existing part.


For more details, please refer to this post:

https://developer-support.myscript.com/support/discussions/topics/16000031673


Best regards,


Gwenaëlle


1 person likes this

Hello Gwenaëlle,

 

Thanks for prompt response.

 

 

Can we have atleast 2 languages ? One as English and another as Chinese . 

User should be able to switch between these 2 languages while using the application (without relaunching the application or may be we can detect system language and launch the application in Chinese if default language is other than English). 

So that we can have multiple version of application supporting minimum 2 languages (English as default).


Thanks.

Answer

Hello,


Thank you for your update.

You can configure one language per Part, so in your application you can switch part when you want to switch your language. Please refer to https://developer-support.myscript.com/support/discussions/topics/16000029350


Default configurations for all languages but English variants also  attach a “secondary English” LK that allows the engine to recognize a  mix of the target language and English. Except for this particular case, it is not expected to mix languages together. 


Best regards,


Gwenaëlle


1 person likes this

Hello,

Thanks again for all the help and reference link, let me try and get back to you.


Regards,

Utkarsh Kumar

Hello Gwenaëlle,

We were able to meet our requirement, thanks again for the all the help.

Regards,

Utkarsh Kumar

Dear Utkarsh Kumar,


Thank you for your update.
We are glad you wee able to meet your requirement!


Best regards,


Gwenaëlle