UNPKG

cecc

Version:

繁簡轉換函式庫 追求正確率 先解析詞性再繁簡轉換 繁體中文↔簡體中文轉換 Chinese converter between Traditional Chinese and Simplified Chinese.

22 lines (17 loc) 445 B
'use strict'; // 2022/2/15 改採 CeL.zh_conversion。現無作用。 function 修正引号(configuration) { const { converted_text } = configuration; converted_text.forEach((text, index) => { converted_text[index] = text .replace(/「/g, '“') .replace(/」/g, '”') .replace(/『/g, '‘') .replace(/』/g, '’') ; }); //console.trace(converted_text); } module.exports = { 修正引号, };