OpenCC.UWP

一个简繁转换库的UWP版本


Keywords
chinese-simplified, chinese-traditional, opencc, translation, uwp, uwp-toolkit
License
Apache-2.0
Install
Install-Package OpenCC.UWP -Version 1.0.3

Documentation

OpenCC.UWP

根据 http://www.cnblogs.com/lin277541/p/4928630.html 修改

基于 https://github.com/BYVoid/OpenCC

使用 Apache License 2.0。

NuGet

使用例子

OpenCCxRuntineComponent.OpenCCx opencc_s2t = new OpenCCxRuntineComponent.OpenCCx();//創建 opencc_s2t.Load(OpenCCxRuntineComponent.ConverterType.Simple2Traditional);//使用什麼轉換規則

`

private void btn2Simple_Click(object sender, RoutedEventArgs e)

    {
        string ret = opencc_t2s.Convert(textBox.Text);//使用簡單的Convert就OK了。
        if (ret != null)
        {
            textBox.Text = ret;
        }
    }

`