Chinese Conversion API

It is a JavaScript library for the conversion of chinese characters between Traditional Chinese (zh-tw) and Simplified Chinese (zh-cn).

Este script não deve ser instalado diretamente. Este script é uma biblioteca de outros scripts para incluir com o diretório meta // @require https://update.greasyfork.org/scripts/430412/1057904/Chinese%20Conversion%20API.js

Autor
𝖢𝖸 𝖥𝗎𝗇𝗀
Versão
1.0
Criado
06/08/2021
Atualizado
05/06/2022
Licença
MIT

License

// 翻譯用程式碼來自:
// https://greasyfork.org/zh-TW/scripts/27422
// Tommy Wu
// license: MIT


// 部份程式碼來自:
// https://greasyfork.org/zh-CN/scripts/24300-switch-traditional-chinese-and-simplified-chinese
// homepage: http://hoothin.come
// mail: rixixi@gmail.com
// license: MIT
//
// 轉換對應表來自:
// https://github.com/shyangs/Meihua-Chinese-Converter
// https://addons.mozilla.org/zh-TW/firefox/addon/meihua-chinese-converter/?src=external-github
// license: GPL2

Usage

// @require https://greasyfork.org/scripts/430412-chinese-conversion-api/code/Chinese%20Conversion%20API.js?version=1057894

console.log(ChineseConversionAPI.tc2sc('面皮厚的人愛吃麵包')); //面皮厚的人爱吃面包
console.log(ChineseConversionAPI.sc2tc('面皮厚的人爱吃面包')); //面皮厚的人愛吃麵包

Web App

https://culefa.github.io/tcsc/