flutter_open_chinese_convert 0.2.1

Flutter Android iOS

flutter_open_chinese_convert bridges OpenCC (Open Chinese Convert, 開放中文轉換) to your Flutter projects.

flutter_open_chinese_convert #

flutter_open_chinese_convert bridges OpenCC (開放中文轉換) to your Flutter projects. You can use the package to convert Traditional Chinese to Simplified Chinese, and vise versa.

The package supports various conversion options:

  • S2T: Simplified Chinese to Traditional Chinese.
  • T2S: Traditional Chinese to Simplified Chinese.
  • S2HK: Simplified Chinese to Traditional Chinese (Hong Kong Standard).
  • HK2S: Traditional Chinese (Hong Kong Standard) to Simplified Chinese.
  • S2TW: Simplified Chinese to Traditional Chinese (Taiwan Standard).
  • TW2S: Traditional Chinese (Taiwan Standard) to Simplified Chinese.
  • S2TWp: Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom.
  • TW2Sp: Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom.

Usage #

All you need to do is to call ChineseConverter.convert with what you wan to convert and a conversion option. For exaple:

import 'package:flutter_open_chinese_convert/flutter_open_chinese_convert.dart';

var text = '鼠标里面的硅二极管坏了,导致光标分辨率降低。';
var result = await ChineseConverter.convert(text, S2TWp());
// 滑鼠裡面的矽二極體壞了,導致游標解析度降低。

For further information, please visit:

4
likes
100
pub points
37%
popularity

flutter_open_chinese_convert bridges OpenCC (Open Chinese Convert, 開放中文轉換) to your Flutter projects.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

zonbleyang@kkbox.com
zonble@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_open_chinese_convert