平假名日文汉字转换器 [英] Hiragana to Kanji converter

查看:5340
本文介绍了平假名日文汉字转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道如果在C#中的库或字典,可以帮助我平假名转换成汉字?
我知道,是Windows的IME但我想完全自定义的汉字为给定的平假名候选名单的设计,它是不可能与此IME。



例:用户写道:彻,首先它会转换成平假名:とる
我想有选择的这个名单:



撮る
取る
盗る



谢谢!


< DIV CLASS =h2_lin>解决方案

可惜的是我不知道C#库。所有我发现涉及该操作系统线程导入一些本地的库,例如:日语罗马字与Kakasi



如果你愿意这样做,也许是的 JWPce 可能的帮助。



尽管这是作为一个日本人的文本编辑器来实现,它也包含了一个字典功能(它实际上包含了你想做什么做字符查找系统)的大量。



也许你可以编译该项目,然后导入这些查找功能? JPWce是根据GPL许可,您可以下载两个二进制可执行文件和源代码,直接从主页。





研究一些我绊了 mozc在谷歌代码:




Mozc是日语输入法编辑器(IME)专为
多平台如铬操作系统时,Windows ,Mac和Linux。这种
开源项目由谷歌日语输入起源。




(BSD许可证)



我还没看着它自己的没有的,但它可能会更你正在寻找的,因为它没有一个完整的应用程序周围,而是意在可使用的库。 ,就像你想



他们还链接到一个简短的视频输入的样子:的 http://www.google.co.jp/ime/



可惜的是,这仍然是C ++,不.NET但也可能是一个起点。


do you know if there is a library in C# or a dictionary that could help me to translate Hiragana to Kanji? I know that there is the IME of Windows but I would like to customize entirely the design of the candidate list of Kanji for a given Hiragana and it is not possible with this IME.

Exemple : the user writes "toru", first it is translated in Hiragana : "とる" I would like to have this list of choice:

撮る 取る 盗る

Thanks!

解决方案

Unfortunatelly I do not know of a c# library. All I found involves importing some native libraries, like in this OS thread: Japanese to Romaji with Kakasi

If you are willing to do so, perhaps JWPce might help.

Although this is implemented as a Japanese text editor, it also contains a dictionary function (it actually contains a multitude of character lookup systems) that do what you want to do.

Possibly you can compile the project and then import those lookup functionality? JPWce is licensed under GPL and you can download both a binary executable and source code directly available from the homepage.

[Edit]

Researching some more I stumbled over mozc at Google Code:

Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux. This open-source project originates from Google Japanese Input.

(BSD license)

I have not looked into it myself yet, but it might be more what you are looking for as it does not have a full application "around it" but instead is intended to be used a library. Just like you wanted.

They also link to a short video how the input looks like: http://www.google.co.jp/ime/

Unfortunatelly, this still is C++, not .NET but it might be a starting point.

这篇关于平假名日文汉字转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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