Chinese Conversion API

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

Dette scriptet burde ikke installeres direkte. Det er et bibliotek for andre script å inkludere med det nye metadirektivet // @require https://update.greasyfork.org/scripts/430412/1057904/Chinese%20Conversion%20API.js

Forfatter
𝖢𝖸 𝖥𝗎𝗇𝗀
Versjon
1.0
Lagd
06.08.2021
Oppdatert
05.06.2022
Lisens
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/