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 script bør ikke installeres direkte. Det er et bibliotek, som andre scripts kan inkludere med metadirektivet // @require https://update.greasyfork.org/scripts/430412/1057904/Chinese%20Conversion%20API.js

Skaber
𝖢𝖸 𝖥𝗎𝗇𝗀
Version
1.0
Oprettet
06.08.2021
Opdateret
05.06.2022
Licens
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/