Skip to content

Swift port of OpenCC for conversion between Traditional and Simplified Chinese

License

Notifications You must be signed in to change notification settings

SPHTech/SwiftyOpenCC

Repository files navigation

Swifty Open Chinese Convert

Build Status pm platforms license codebeat badge

Swift port of Open Chinese Convert

Requirements

  • macOS 10.10+ / iOS 8.0+ / tvOS 9.0+
  • Swift 5.0

Usage

Quick Start

import OpenCC

let str = "鼠标里面的硅二极管坏了,导致光标分辨率降低。"
let converter = try! ChineseConverter(option: [.traditionalize, .TWStandard, .TWIdiom])
converter.convert(str)
// 滑鼠裡面的矽二極體壞了,導致游標解析度降低。

Note: The resource files is not shipped with the framework (as you may want to download it while needed). You are responsible for passing a valid resource bundle.

Here is a precompiled bundle. or you may put the dictionary files into the main bundle.

Documentation

Github Pages (100% Documented)

License

SwiftyOpenCC is available under the MIT license. See the LICENSE file.

About

Swift port of OpenCC for conversion between Traditional and Simplified Chinese

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 75.0%
  • C++ 18.5%
  • C 6.5%