如何在wpf中创建离线语言翻译器english-hindhi? [英] How to create offline language translator english-hindhi in wpf?

查看:128
本文介绍了如何在wpf中创建离线语言翻译器english-hindhi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个WPF应用程序,我们希望用印地语显示TextBox中的文本(用户输入文本),但是在存储到数据库时我们希望将它存储在英语中。使用谷歌翻译我们能够做到这一点。但是应用程序将在没有互联网的系统中运行。我们如何离线实施翻译?还有一件事我们不想把它转换成印地语的含义。我们只想用印地语显示英文单词。例如:男性应该来मेल。



我尝试过:



试过这个链接http://www.purplegene.com/static/HindiTranslitration.html

但它没有正确转换

we are developing a WPF application ,we want to display text in TextBox (user input text)in Hindi,But while storing to database we want to store it in English.with google translator we are able to do it. but out application will run in a system with out internet. How can we implement translation offline? and one more thing we don'd want to convert it to its Hindi meaning. We just want to show English word in Hindi. Eg: male should come as मेल.

What I have tried:

Tried this link http://www.purplegene.com/static/HindiTranslitration.html
but it is not converting properly

推荐答案

谷歌翻译有一个支持其服务的巨大词典。该词典包含一种语言中特定句子与另一种语言的所有可能翻译。



离线 可能。但它需要包含每个单词,每个短语,每个句子的翻译的类似字典。在现代应用中,上下文翻译意味着很多。你不想把它们翻译成,(抱歉我的罗马英语,你不会理解乌尔都语字体,我不知道怎么写完美的印地语):



他去上学。

Woh jata hai school。




正确,但字数不正确。相反,正确的翻译将是,

Woh school jata hai。



同样,字典会保存每个单词和短语的翻译。这将是一项非常艰巨的工作,这正是您使用第三方服务的原因,例如Google Translator。
Google Translator has a "huge" dictionary backing their service. That dictionary contains all the possible translations for a particular sentence in one language, to another language.

Offline is possible. But it would require that similar dictionary that would contain the translations for every word, every phrase, every sentence. Contexual translation means a lot in modern day applications. You don't want to translate them as, (Sorry for my Roman english, you won't understand Urdu font and I don't know how to write perfect Hindi):

He goes to school.
Woh jata hai school.


Correct, but in an incorrect order of words. Instead, the correct translation would be,
Woh school jata hai.

Similarly, the dictionary would hold the translations for each word and phrase. Which would be a really tough job, that is exactly why you would use a third-party service, like Google Translator.


这篇关于如何在wpf中创建离线语言翻译器english-hindhi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆