Chinese Conversion API

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

Tento skript by neměl být instalován přímo. Jedná se o knihovnu, kterou by měly jiné skripty využívat pomocí meta příkazu // @require https://update.greasyfork.org/scripts/430412/1057904/Chinese%20Conversion%20API.js

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
𝖢𝖸 𝖥𝗎𝗇𝗀
Verze
1.0
Vytvořeno
06. 08. 2021
Aktualizováno
05. 06. 2022
Size
142,4 KB
Licence
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: [email protected]
// 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/