From 714260b29569a1002b20c0191e73133c28b52b1d Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 10 Mar 2022 10:35:47 +0800 Subject: [PATCH] KanjiConv // Deprecating regex processing. - Regex takes too much CPU to convert. --- .../vChewingKanjiConverter.swift | 1485 ++++++++--------- 1 file changed, 739 insertions(+), 746 deletions(-) diff --git a/Source/Modules/ControllerModules/vChewingKanjiConverter.swift b/Source/Modules/ControllerModules/vChewingKanjiConverter.swift index ef8b52fd..d1bb12f0 100644 --- a/Source/Modules/ControllerModules/vChewingKanjiConverter.swift +++ b/Source/Modules/ControllerModules/vChewingKanjiConverter.swift @@ -18,759 +18,752 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR TH import Cocoa -// 這個模組果然還是要用 Regex 轉換會比較爽。 -// 為防止與其他模組彼此發生可能的衝突,這段 String 擴展就用 private 開頭來私有化。 private extension String { - // Ref: https://stackoverflow.com/a/40993403/4162914 && https://stackoverflow.com/a/71291137/4162914 - mutating func regReplace(pattern: String, replaceWith: String = "") { - do { - let regex = try NSRegularExpression(pattern: pattern, options: .caseInsensitive) - let range = NSRange(location: 0, length: self.utf16.count) - self = regex.stringByReplacingMatches(in: self, options: [], range: range, withTemplate: replaceWith) - } catch { return } + mutating func selfReplace(_ strOf: String, _ strWith: String = "") { + self = self.replacingOccurrences(of: strOf, with: strWith) } } @objc class vChewingKanjiConverter: NSObject { - @objc class func cnvTradToKangXi(_ strProcessed: String) -> String { - var strProcessed = strProcessed - strProcessed.regReplace(pattern: "偽", replaceWith: "僞") - strProcessed.regReplace(pattern: "啟", replaceWith: "啓") - strProcessed.regReplace(pattern: "吃", replaceWith: "喫") - strProcessed.regReplace(pattern: "嫻", replaceWith: "嫺") - strProcessed.regReplace(pattern: "媯", replaceWith: "嬀") - strProcessed.regReplace(pattern: "峰", replaceWith: "峯") - strProcessed.regReplace(pattern: "么", replaceWith: "幺") - strProcessed.regReplace(pattern: "抬", replaceWith: "擡") - strProcessed.regReplace(pattern: "稜", replaceWith: "棱") - strProcessed.regReplace(pattern: "簷", replaceWith: "檐") - strProcessed.regReplace(pattern: "汙", replaceWith: "污") - strProcessed.regReplace(pattern: "洩", replaceWith: "泄") - strProcessed.regReplace(pattern: "溈", replaceWith: "潙") - strProcessed.regReplace(pattern: "潀", replaceWith: "潨") - strProcessed.regReplace(pattern: "為", replaceWith: "爲") - strProcessed.regReplace(pattern: "床", replaceWith: "牀") - strProcessed.regReplace(pattern: "痺", replaceWith: "痹") - strProcessed.regReplace(pattern: "痴", replaceWith: "癡") - strProcessed.regReplace(pattern: "皂", replaceWith: "皁") - strProcessed.regReplace(pattern: "著", replaceWith: "着") - strProcessed.regReplace(pattern: "睪", replaceWith: "睾") - strProcessed.regReplace(pattern: "秘", replaceWith: "祕") - strProcessed.regReplace(pattern: "灶", replaceWith: "竈") - strProcessed.regReplace(pattern: "粽", replaceWith: "糉") - strProcessed.regReplace(pattern: "韁", replaceWith: "繮") - strProcessed.regReplace(pattern: "才", replaceWith: "纔") - strProcessed.regReplace(pattern: "群", replaceWith: "羣") - strProcessed.regReplace(pattern: "唇", replaceWith: "脣") - strProcessed.regReplace(pattern: "參", replaceWith: "蔘") - strProcessed.regReplace(pattern: "蒍", replaceWith: "蔿") - strProcessed.regReplace(pattern: "眾", replaceWith: "衆") - strProcessed.regReplace(pattern: "裡", replaceWith: "裏") - strProcessed.regReplace(pattern: "核", replaceWith: "覈") - strProcessed.regReplace(pattern: "踴", replaceWith: "踊") - strProcessed.regReplace(pattern: "缽", replaceWith: "鉢") - strProcessed.regReplace(pattern: "針", replaceWith: "鍼") - strProcessed.regReplace(pattern: "鯰", replaceWith: "鮎") - strProcessed.regReplace(pattern: "麵", replaceWith: "麪") - strProcessed.regReplace(pattern: "顎", replaceWith: "齶") - strProcessed.regReplace(pattern: "口喫", replaceWith: "口吃") - strProcessed.regReplace(pattern: "合着", replaceWith: "合著") - strProcessed.regReplace(pattern: "名着", replaceWith: "名著") - strProcessed.regReplace(pattern: "巨着", replaceWith: "巨著") - strProcessed.regReplace(pattern: "鉅着", replaceWith: "鉅著") - strProcessed.regReplace(pattern: "昭着", replaceWith: "昭著") - strProcessed.regReplace(pattern: "所着", replaceWith: "所著") - strProcessed.regReplace(pattern: "遺着", replaceWith: "遺著") - strProcessed.regReplace(pattern: "顯着", replaceWith: "顯著") - strProcessed.regReplace(pattern: "土着", replaceWith: "土著") - strProcessed.regReplace(pattern: "着作", replaceWith: "著作") - strProcessed.regReplace(pattern: "着名", replaceWith: "著名") - strProcessed.regReplace(pattern: "着式", replaceWith: "著式") - strProcessed.regReplace(pattern: "着志", replaceWith: "著志") - strProcessed.regReplace(pattern: "着於", replaceWith: "著於") - strProcessed.regReplace(pattern: "着書", replaceWith: "著書") - strProcessed.regReplace(pattern: "着白", replaceWith: "著白") - strProcessed.regReplace(pattern: "着稱", replaceWith: "著稱") - strProcessed.regReplace(pattern: "着者", replaceWith: "著者") - strProcessed.regReplace(pattern: "着述", replaceWith: "著述") - strProcessed.regReplace(pattern: "着錄", replaceWith: "著錄") - strProcessed.regReplace(pattern: "蹇喫", replaceWith: "蹇吃") - strProcessed.regReplace(pattern: "大着", replaceWith: "大著") - strProcessed.regReplace(pattern: "刊着", replaceWith: "刊著") - strProcessed.regReplace(pattern: "玄着", replaceWith: "玄著") - strProcessed.regReplace(pattern: "白着", replaceWith: "白著") - strProcessed.regReplace(pattern: "住着", replaceWith: "住著") - strProcessed.regReplace(pattern: "刻着", replaceWith: "刻著") - strProcessed.regReplace(pattern: "卓着", replaceWith: "卓著") - strProcessed.regReplace(pattern: "拙着", replaceWith: "拙著") - strProcessed.regReplace(pattern: "查着", replaceWith: "查著") - strProcessed.regReplace(pattern: "炳着", replaceWith: "炳著") - strProcessed.regReplace(pattern: "原着", replaceWith: "原著") - strProcessed.regReplace(pattern: "專着", replaceWith: "專著") - strProcessed.regReplace(pattern: "焯着", replaceWith: "焯著") - strProcessed.regReplace(pattern: "着論", replaceWith: "著論") - strProcessed.regReplace(pattern: "着績", replaceWith: "著績") - strProcessed.regReplace(pattern: "較着", replaceWith: "較著") - strProcessed.regReplace(pattern: "彰着", replaceWith: "彰著") - strProcessed.regReplace(pattern: "撰着", replaceWith: "撰著") - strProcessed.regReplace(pattern: "編着", replaceWith: "編著") - strProcessed.regReplace(pattern: "論着", replaceWith: "論著") - strProcessed.regReplace(pattern: "雜着", replaceWith: "雜著") - strProcessed.regReplace(pattern: "譯着", replaceWith: "譯著") - strProcessed.regReplace(pattern: "地覈", replaceWith: "地核") - strProcessed.regReplace(pattern: "多覈", replaceWith: "多核") - strProcessed.regReplace(pattern: "氘覈", replaceWith: "氘核") - strProcessed.regReplace(pattern: "杏覈", replaceWith: "杏核") - strProcessed.regReplace(pattern: "非覈", replaceWith: "非核") - strProcessed.regReplace(pattern: "覈三", replaceWith: "核三") - strProcessed.regReplace(pattern: "覈下", replaceWith: "核下") - strProcessed.regReplace(pattern: "覈災", replaceWith: "核災") - strProcessed.regReplace(pattern: "覈武", replaceWith: "核武") - strProcessed.regReplace(pattern: "覈狀", replaceWith: "核狀") - strProcessed.regReplace(pattern: "覈桃", replaceWith: "核桃") - strProcessed.regReplace(pattern: "覈彈", replaceWith: "核彈") - strProcessed.regReplace(pattern: "覈戰", replaceWith: "核戰") - strProcessed.regReplace(pattern: "覈糖", replaceWith: "核糖") - strProcessed.regReplace(pattern: "覈醣", replaceWith: "核醣") - strProcessed.regReplace(pattern: "晶覈", replaceWith: "晶核") - strProcessed.regReplace(pattern: "熱覈", replaceWith: "熱核") - strProcessed.regReplace(pattern: "反覈", replaceWith: "反核") - strProcessed.regReplace(pattern: "卵覈", replaceWith: "卵核") - strProcessed.regReplace(pattern: "果覈", replaceWith: "果核") - strProcessed.regReplace(pattern: "剋覈", replaceWith: "剋核") - strProcessed.regReplace(pattern: "覈力", replaceWith: "核力") - strProcessed.regReplace(pattern: "覈子", replaceWith: "核子") - strProcessed.regReplace(pattern: "覈仁", replaceWith: "核仁") - strProcessed.regReplace(pattern: "覈心", replaceWith: "核心") - strProcessed.regReplace(pattern: "覈四", replaceWith: "核四") - strProcessed.regReplace(pattern: "覈果", replaceWith: "核果") - strProcessed.regReplace(pattern: "覈型", replaceWith: "核型") - strProcessed.regReplace(pattern: "覈苷", replaceWith: "核苷") - strProcessed.regReplace(pattern: "覈能", replaceWith: "核能") - strProcessed.regReplace(pattern: "覈傘", replaceWith: "核傘") - strProcessed.regReplace(pattern: "覈發", replaceWith: "核發") - strProcessed.regReplace(pattern: "覈電", replaceWith: "核電") - strProcessed.regReplace(pattern: "覈塵", replaceWith: "核塵") - strProcessed.regReplace(pattern: "覈酸", replaceWith: "核酸") - strProcessed.regReplace(pattern: "覈膜", replaceWith: "核膜") - strProcessed.regReplace(pattern: "覈爆", replaceWith: "核爆") - strProcessed.regReplace(pattern: "痔覈", replaceWith: "痔核") - strProcessed.regReplace(pattern: "陰覈", replaceWith: "陰核") - strProcessed.regReplace(pattern: "殽覈", replaceWith: "殽核") - strProcessed.regReplace(pattern: "結覈", replaceWith: "結核") - strProcessed.regReplace(pattern: "菌覈", replaceWith: "菌核") - strProcessed.regReplace(pattern: "煤覈", replaceWith: "煤核") - strProcessed.regReplace(pattern: "着涎茶", replaceWith: "著涎茶") - strProcessed.regReplace(pattern: "喫口令", replaceWith: "吃口令") - strProcessed.regReplace(pattern: "鄧艾喫", replaceWith: "鄧艾吃") - strProcessed.regReplace(pattern: "杏仁覈", replaceWith: "杏仁核") - strProcessed.regReplace(pattern: "覈一廠", replaceWith: "核一廠") - strProcessed.regReplace(pattern: "覈二廠", replaceWith: "核二廠") - strProcessed.regReplace(pattern: "覈三廠", replaceWith: "核三廠") - strProcessed.regReplace(pattern: "覈融合", replaceWith: "核融合") - strProcessed.regReplace(pattern: "覈四廠", replaceWith: "核四廠") - strProcessed.regReplace(pattern: "覈生化", replaceWith: "核生化") - strProcessed.regReplace(pattern: "覈災變", replaceWith: "核災變") - strProcessed.regReplace(pattern: "覈動力", replaceWith: "核動力") - strProcessed.regReplace(pattern: "覈試爆", replaceWith: "核試爆") - strProcessed.regReplace(pattern: "杏覈兒", replaceWith: "杏核兒") - strProcessed.regReplace(pattern: "原子覈", replaceWith: "原子核") - strProcessed.regReplace(pattern: "覈分裂", replaceWith: "核分裂") - strProcessed.regReplace(pattern: "覈化學", replaceWith: "核化學") - strProcessed.regReplace(pattern: "覈反應", replaceWith: "核反應") - strProcessed.regReplace(pattern: "覈半徑", replaceWith: "核半徑") - strProcessed.regReplace(pattern: "覈污染", replaceWith: "核污染") - strProcessed.regReplace(pattern: "覈武器", replaceWith: "核武器") - strProcessed.regReplace(pattern: "覈苷酸", replaceWith: "核苷酸") - strProcessed.regReplace(pattern: "覈蛋白", replaceWith: "核蛋白") - strProcessed.regReplace(pattern: "覈黃疸", replaceWith: "核黃疸") - strProcessed.regReplace(pattern: "覈黃素", replaceWith: "核黃素") - strProcessed.regReplace(pattern: "覈裝置", replaceWith: "核裝置") - strProcessed.regReplace(pattern: "覈電廠", replaceWith: "核電廠") - strProcessed.regReplace(pattern: "覈廢料", replaceWith: "核廢料") - strProcessed.regReplace(pattern: "覈彈頭", replaceWith: "核彈頭") - strProcessed.regReplace(pattern: "覈潛艇", replaceWith: "核潛艇") - strProcessed.regReplace(pattern: "覈燃料", replaceWith: "核燃料") - strProcessed.regReplace(pattern: "桃覈雕", replaceWith: "桃核雕") - strProcessed.regReplace(pattern: "細胞覈", replaceWith: "細胞核") - strProcessed.regReplace(pattern: "棗覈臉", replaceWith: "棗核臉") - strProcessed.regReplace(pattern: "以微知着", replaceWith: "以微知著") - strProcessed.regReplace(pattern: "見微知着", replaceWith: "見微知著") - strProcessed.regReplace(pattern: "恩威並着", replaceWith: "恩威並著") - strProcessed.regReplace(pattern: "視微知着", replaceWith: "視微知著") - strProcessed.regReplace(pattern: "睹微知着", replaceWith: "睹微知著") - strProcessed.regReplace(pattern: "遐邇着聞", replaceWith: "遐邇著聞") - strProcessed.regReplace(pattern: "積微成着", replaceWith: "積微成著") - strProcessed.regReplace(pattern: "地下覈試", replaceWith: "地下核試") - strProcessed.regReplace(pattern: "地下覈爆", replaceWith: "地下核爆") - strProcessed.regReplace(pattern: "非覈武區", replaceWith: "非核武區") - strProcessed.regReplace(pattern: "覈反應器", replaceWith: "核反應器") - strProcessed.regReplace(pattern: "覈物理學", replaceWith: "核物理學") - strProcessed.regReplace(pattern: "覈能發電", replaceWith: "核能發電") - strProcessed.regReplace(pattern: "覈能電廠", replaceWith: "核能電廠") - strProcessed.regReplace(pattern: "覈能廢料", replaceWith: "核能廢料") - strProcessed.regReplace(pattern: "覈能潛艇", replaceWith: "核能潛艇") - strProcessed.regReplace(pattern: "覈磁共振", replaceWith: "核磁共振") - strProcessed.regReplace(pattern: "熱覈反應", replaceWith: "熱核反應") - strProcessed.regReplace(pattern: "賣李鑽覈", replaceWith: "賣李鑽核") - strProcessed.regReplace(pattern: "雙覈都市", replaceWith: "雙核都市") - strProcessed.regReplace(pattern: "罵人不吐覈", replaceWith: "罵人不吐核") - return strProcessed + @objc class func cnvTradToKangXi(_ strObj: String) -> String { + var strObj = strObj + strObj.selfReplace("偽", "僞") + strObj.selfReplace("啟", "啓") + strObj.selfReplace("吃", "喫") + strObj.selfReplace("嫻", "嫺") + strObj.selfReplace("媯", "嬀") + strObj.selfReplace("峰", "峯") + strObj.selfReplace("么", "幺") + strObj.selfReplace("抬", "擡") + strObj.selfReplace("稜", "棱") + strObj.selfReplace("簷", "檐") + strObj.selfReplace("汙", "污") + strObj.selfReplace("洩", "泄") + strObj.selfReplace("溈", "潙") + strObj.selfReplace("潀", "潨") + strObj.selfReplace("為", "爲") + strObj.selfReplace("床", "牀") + strObj.selfReplace("痺", "痹") + strObj.selfReplace("痴", "癡") + strObj.selfReplace("皂", "皁") + strObj.selfReplace("著", "着") + strObj.selfReplace("睪", "睾") + strObj.selfReplace("秘", "祕") + strObj.selfReplace("灶", "竈") + strObj.selfReplace("粽", "糉") + strObj.selfReplace("韁", "繮") + strObj.selfReplace("才", "纔") + strObj.selfReplace("群", "羣") + strObj.selfReplace("唇", "脣") + strObj.selfReplace("參", "蔘") + strObj.selfReplace("蒍", "蔿") + strObj.selfReplace("眾", "衆") + strObj.selfReplace("裡", "裏") + strObj.selfReplace("核", "覈") + strObj.selfReplace("踴", "踊") + strObj.selfReplace("缽", "鉢") + strObj.selfReplace("針", "鍼") + strObj.selfReplace("鯰", "鮎") + strObj.selfReplace("麵", "麪") + strObj.selfReplace("顎", "齶") + strObj.selfReplace("口喫", "口吃") + strObj.selfReplace("合着", "合著") + strObj.selfReplace("名着", "名著") + strObj.selfReplace("巨着", "巨著") + strObj.selfReplace("鉅着", "鉅著") + strObj.selfReplace("昭着", "昭著") + strObj.selfReplace("所着", "所著") + strObj.selfReplace("遺着", "遺著") + strObj.selfReplace("顯着", "顯著") + strObj.selfReplace("土着", "土著") + strObj.selfReplace("着作", "著作") + strObj.selfReplace("着名", "著名") + strObj.selfReplace("着式", "著式") + strObj.selfReplace("着志", "著志") + strObj.selfReplace("着於", "著於") + strObj.selfReplace("着書", "著書") + strObj.selfReplace("着白", "著白") + strObj.selfReplace("着稱", "著稱") + strObj.selfReplace("着者", "著者") + strObj.selfReplace("着述", "著述") + strObj.selfReplace("着錄", "著錄") + strObj.selfReplace("蹇喫", "蹇吃") + strObj.selfReplace("大着", "大著") + strObj.selfReplace("刊着", "刊著") + strObj.selfReplace("玄着", "玄著") + strObj.selfReplace("白着", "白著") + strObj.selfReplace("住着", "住著") + strObj.selfReplace("刻着", "刻著") + strObj.selfReplace("卓着", "卓著") + strObj.selfReplace("拙着", "拙著") + strObj.selfReplace("查着", "查著") + strObj.selfReplace("炳着", "炳著") + strObj.selfReplace("原着", "原著") + strObj.selfReplace("專着", "專著") + strObj.selfReplace("焯着", "焯著") + strObj.selfReplace("着論", "著論") + strObj.selfReplace("着績", "著績") + strObj.selfReplace("較着", "較著") + strObj.selfReplace("彰着", "彰著") + strObj.selfReplace("撰着", "撰著") + strObj.selfReplace("編着", "編著") + strObj.selfReplace("論着", "論著") + strObj.selfReplace("雜着", "雜著") + strObj.selfReplace("譯着", "譯著") + strObj.selfReplace("地覈", "地核") + strObj.selfReplace("多覈", "多核") + strObj.selfReplace("氘覈", "氘核") + strObj.selfReplace("杏覈", "杏核") + strObj.selfReplace("非覈", "非核") + strObj.selfReplace("覈三", "核三") + strObj.selfReplace("覈下", "核下") + strObj.selfReplace("覈災", "核災") + strObj.selfReplace("覈武", "核武") + strObj.selfReplace("覈狀", "核狀") + strObj.selfReplace("覈桃", "核桃") + strObj.selfReplace("覈彈", "核彈") + strObj.selfReplace("覈戰", "核戰") + strObj.selfReplace("覈糖", "核糖") + strObj.selfReplace("覈醣", "核醣") + strObj.selfReplace("晶覈", "晶核") + strObj.selfReplace("熱覈", "熱核") + strObj.selfReplace("反覈", "反核") + strObj.selfReplace("卵覈", "卵核") + strObj.selfReplace("果覈", "果核") + strObj.selfReplace("剋覈", "剋核") + strObj.selfReplace("覈力", "核力") + strObj.selfReplace("覈子", "核子") + strObj.selfReplace("覈仁", "核仁") + strObj.selfReplace("覈心", "核心") + strObj.selfReplace("覈四", "核四") + strObj.selfReplace("覈果", "核果") + strObj.selfReplace("覈型", "核型") + strObj.selfReplace("覈苷", "核苷") + strObj.selfReplace("覈能", "核能") + strObj.selfReplace("覈傘", "核傘") + strObj.selfReplace("覈發", "核發") + strObj.selfReplace("覈電", "核電") + strObj.selfReplace("覈塵", "核塵") + strObj.selfReplace("覈酸", "核酸") + strObj.selfReplace("覈膜", "核膜") + strObj.selfReplace("覈爆", "核爆") + strObj.selfReplace("痔覈", "痔核") + strObj.selfReplace("陰覈", "陰核") + strObj.selfReplace("殽覈", "殽核") + strObj.selfReplace("結覈", "結核") + strObj.selfReplace("菌覈", "菌核") + strObj.selfReplace("煤覈", "煤核") + strObj.selfReplace("着涎茶", "著涎茶") + strObj.selfReplace("喫口令", "吃口令") + strObj.selfReplace("鄧艾喫", "鄧艾吃") + strObj.selfReplace("杏仁覈", "杏仁核") + strObj.selfReplace("覈一廠", "核一廠") + strObj.selfReplace("覈二廠", "核二廠") + strObj.selfReplace("覈三廠", "核三廠") + strObj.selfReplace("覈融合", "核融合") + strObj.selfReplace("覈四廠", "核四廠") + strObj.selfReplace("覈生化", "核生化") + strObj.selfReplace("覈災變", "核災變") + strObj.selfReplace("覈動力", "核動力") + strObj.selfReplace("覈試爆", "核試爆") + strObj.selfReplace("杏覈兒", "杏核兒") + strObj.selfReplace("原子覈", "原子核") + strObj.selfReplace("覈分裂", "核分裂") + strObj.selfReplace("覈化學", "核化學") + strObj.selfReplace("覈反應", "核反應") + strObj.selfReplace("覈半徑", "核半徑") + strObj.selfReplace("覈污染", "核污染") + strObj.selfReplace("覈武器", "核武器") + strObj.selfReplace("覈苷酸", "核苷酸") + strObj.selfReplace("覈蛋白", "核蛋白") + strObj.selfReplace("覈黃疸", "核黃疸") + strObj.selfReplace("覈黃素", "核黃素") + strObj.selfReplace("覈裝置", "核裝置") + strObj.selfReplace("覈電廠", "核電廠") + strObj.selfReplace("覈廢料", "核廢料") + strObj.selfReplace("覈彈頭", "核彈頭") + strObj.selfReplace("覈潛艇", "核潛艇") + strObj.selfReplace("覈燃料", "核燃料") + strObj.selfReplace("桃覈雕", "桃核雕") + strObj.selfReplace("細胞覈", "細胞核") + strObj.selfReplace("棗覈臉", "棗核臉") + strObj.selfReplace("以微知着", "以微知著") + strObj.selfReplace("見微知着", "見微知著") + strObj.selfReplace("恩威並着", "恩威並著") + strObj.selfReplace("視微知着", "視微知著") + strObj.selfReplace("睹微知着", "睹微知著") + strObj.selfReplace("遐邇着聞", "遐邇著聞") + strObj.selfReplace("積微成着", "積微成著") + strObj.selfReplace("地下覈試", "地下核試") + strObj.selfReplace("地下覈爆", "地下核爆") + strObj.selfReplace("非覈武區", "非核武區") + strObj.selfReplace("覈反應器", "核反應器") + strObj.selfReplace("覈物理學", "核物理學") + strObj.selfReplace("覈能發電", "核能發電") + strObj.selfReplace("覈能電廠", "核能電廠") + strObj.selfReplace("覈能廢料", "核能廢料") + strObj.selfReplace("覈能潛艇", "核能潛艇") + strObj.selfReplace("覈磁共振", "核磁共振") + strObj.selfReplace("熱覈反應", "熱核反應") + strObj.selfReplace("賣李鑽覈", "賣李鑽核") + strObj.selfReplace("雙覈都市", "雙核都市") + strObj.selfReplace("罵人不吐覈", "罵人不吐核") + return strObj } - @objc class func cnvTradToJIS(_ strProcessed: String) -> String { + @objc class func cnvTradToJIS(_ strObj: String) -> String { // 該轉換是由康熙繁體轉換至日語當用漢字的,所以需要先跑一遍康熙轉換。 - var strProcessed = cnvTradToKangXi(strProcessed) - strProcessed.regReplace(pattern: "兩", replaceWith: "両") - strProcessed.regReplace(pattern: "輛", replaceWith: "両") - strProcessed.regReplace(pattern: "辨", replaceWith: "弁") - strProcessed.regReplace(pattern: "辯", replaceWith: "弁") - strProcessed.regReplace(pattern: "瓣", replaceWith: "弁") - strProcessed.regReplace(pattern: "辦", replaceWith: "弁") - strProcessed.regReplace(pattern: "禦", replaceWith: "御") - strProcessed.regReplace(pattern: "缺", replaceWith: "欠") - strProcessed.regReplace(pattern: "絲", replaceWith: "糸") - strProcessed.regReplace(pattern: "藝", replaceWith: "芸") - strProcessed.regReplace(pattern: "濱", replaceWith: "浜") - strProcessed.regReplace(pattern: "乘", replaceWith: "乗") - strProcessed.regReplace(pattern: "亂", replaceWith: "乱") - strProcessed.regReplace(pattern: "亙", replaceWith: "亘") - strProcessed.regReplace(pattern: "亞", replaceWith: "亜") - strProcessed.regReplace(pattern: "佛", replaceWith: "仏") - strProcessed.regReplace(pattern: "來", replaceWith: "来") - strProcessed.regReplace(pattern: "假", replaceWith: "仮") - strProcessed.regReplace(pattern: "傳", replaceWith: "伝") - strProcessed.regReplace(pattern: "僞", replaceWith: "偽") - strProcessed.regReplace(pattern: "價", replaceWith: "価") - strProcessed.regReplace(pattern: "儉", replaceWith: "倹") - strProcessed.regReplace(pattern: "兒", replaceWith: "児") - strProcessed.regReplace(pattern: "內", replaceWith: "内") - strProcessed.regReplace(pattern: "剎", replaceWith: "刹") - strProcessed.regReplace(pattern: "剩", replaceWith: "剰") - strProcessed.regReplace(pattern: "劍", replaceWith: "剣") - strProcessed.regReplace(pattern: "剱", replaceWith: "剣") - strProcessed.regReplace(pattern: "劎", replaceWith: "剣") - strProcessed.regReplace(pattern: "劒", replaceWith: "剣") - strProcessed.regReplace(pattern: "劔", replaceWith: "剣") - strProcessed.regReplace(pattern: "劑", replaceWith: "剤") - strProcessed.regReplace(pattern: "勞", replaceWith: "労") - strProcessed.regReplace(pattern: "勳", replaceWith: "勲") - strProcessed.regReplace(pattern: "勵", replaceWith: "励") - strProcessed.regReplace(pattern: "勸", replaceWith: "勧") - strProcessed.regReplace(pattern: "勻", replaceWith: "匀") - strProcessed.regReplace(pattern: "區", replaceWith: "区") - strProcessed.regReplace(pattern: "卷", replaceWith: "巻") - strProcessed.regReplace(pattern: "卻", replaceWith: "却") - strProcessed.regReplace(pattern: "參", replaceWith: "参") - strProcessed.regReplace(pattern: "吳", replaceWith: "呉") - strProcessed.regReplace(pattern: "咒", replaceWith: "呪") - strProcessed.regReplace(pattern: "啞", replaceWith: "唖") - strProcessed.regReplace(pattern: "單", replaceWith: "単") - strProcessed.regReplace(pattern: "噓", replaceWith: "嘘") - strProcessed.regReplace(pattern: "嚙", replaceWith: "噛") - strProcessed.regReplace(pattern: "嚴", replaceWith: "厳") - strProcessed.regReplace(pattern: "囑", replaceWith: "嘱") - strProcessed.regReplace(pattern: "圈", replaceWith: "圏") - strProcessed.regReplace(pattern: "國", replaceWith: "国") - strProcessed.regReplace(pattern: "圍", replaceWith: "囲") - strProcessed.regReplace(pattern: "圓", replaceWith: "円") - strProcessed.regReplace(pattern: "圖", replaceWith: "図") - strProcessed.regReplace(pattern: "團", replaceWith: "団") - strProcessed.regReplace(pattern: "增", replaceWith: "増") - strProcessed.regReplace(pattern: "墮", replaceWith: "堕") - strProcessed.regReplace(pattern: "壓", replaceWith: "圧") - strProcessed.regReplace(pattern: "壘", replaceWith: "塁") - strProcessed.regReplace(pattern: "壞", replaceWith: "壊") - strProcessed.regReplace(pattern: "壤", replaceWith: "壌") - strProcessed.regReplace(pattern: "壯", replaceWith: "壮") - strProcessed.regReplace(pattern: "壹", replaceWith: "壱") - strProcessed.regReplace(pattern: "壽", replaceWith: "寿") - strProcessed.regReplace(pattern: "奧", replaceWith: "奥") - strProcessed.regReplace(pattern: "奬", replaceWith: "奨") - strProcessed.regReplace(pattern: "妝", replaceWith: "粧") - strProcessed.regReplace(pattern: "孃", replaceWith: "嬢") - strProcessed.regReplace(pattern: "學", replaceWith: "学") - strProcessed.regReplace(pattern: "寢", replaceWith: "寝") - strProcessed.regReplace(pattern: "實", replaceWith: "実") - strProcessed.regReplace(pattern: "寫", replaceWith: "写") - strProcessed.regReplace(pattern: "寬", replaceWith: "寛") - strProcessed.regReplace(pattern: "寶", replaceWith: "宝") - strProcessed.regReplace(pattern: "將", replaceWith: "将") - strProcessed.regReplace(pattern: "專", replaceWith: "専") - strProcessed.regReplace(pattern: "對", replaceWith: "対") - strProcessed.regReplace(pattern: "屆", replaceWith: "届") - strProcessed.regReplace(pattern: "屬", replaceWith: "属") - strProcessed.regReplace(pattern: "峯", replaceWith: "峰") - strProcessed.regReplace(pattern: "峽", replaceWith: "峡") - strProcessed.regReplace(pattern: "嶽", replaceWith: "岳") - strProcessed.regReplace(pattern: "巖", replaceWith: "巌") - strProcessed.regReplace(pattern: "巢", replaceWith: "巣") - strProcessed.regReplace(pattern: "帶", replaceWith: "帯") - strProcessed.regReplace(pattern: "廁", replaceWith: "厠") - strProcessed.regReplace(pattern: "廢", replaceWith: "廃") - strProcessed.regReplace(pattern: "廣", replaceWith: "広") - strProcessed.regReplace(pattern: "廳", replaceWith: "庁") - strProcessed.regReplace(pattern: "彈", replaceWith: "弾") - strProcessed.regReplace(pattern: "彌", replaceWith: "弥") - strProcessed.regReplace(pattern: "彎", replaceWith: "弯") - strProcessed.regReplace(pattern: "彥", replaceWith: "彦") - strProcessed.regReplace(pattern: "徑", replaceWith: "径") - strProcessed.regReplace(pattern: "從", replaceWith: "従") - strProcessed.regReplace(pattern: "徵", replaceWith: "徴") - strProcessed.regReplace(pattern: "德", replaceWith: "徳") - strProcessed.regReplace(pattern: "恆", replaceWith: "恒") - strProcessed.regReplace(pattern: "悅", replaceWith: "悦") - strProcessed.regReplace(pattern: "惠", replaceWith: "恵") - strProcessed.regReplace(pattern: "惡", replaceWith: "悪") - strProcessed.regReplace(pattern: "惱", replaceWith: "悩") - strProcessed.regReplace(pattern: "慘", replaceWith: "惨") - strProcessed.regReplace(pattern: "應", replaceWith: "応") - strProcessed.regReplace(pattern: "懷", replaceWith: "懐") - strProcessed.regReplace(pattern: "戀", replaceWith: "恋") - strProcessed.regReplace(pattern: "戰", replaceWith: "戦") - strProcessed.regReplace(pattern: "戲", replaceWith: "戯") - strProcessed.regReplace(pattern: "戶", replaceWith: "戸") - strProcessed.regReplace(pattern: "戾", replaceWith: "戻") - strProcessed.regReplace(pattern: "拂", replaceWith: "払") - strProcessed.regReplace(pattern: "拔", replaceWith: "抜") - strProcessed.regReplace(pattern: "拜", replaceWith: "拝") - strProcessed.regReplace(pattern: "挾", replaceWith: "挟") - strProcessed.regReplace(pattern: "插", replaceWith: "挿") - strProcessed.regReplace(pattern: "揭", replaceWith: "掲") - strProcessed.regReplace(pattern: "搔", replaceWith: "掻") - strProcessed.regReplace(pattern: "搖", replaceWith: "揺") - strProcessed.regReplace(pattern: "搜", replaceWith: "捜") - strProcessed.regReplace(pattern: "摑", replaceWith: "掴") - strProcessed.regReplace(pattern: "擇", replaceWith: "択") - strProcessed.regReplace(pattern: "擊", replaceWith: "撃") - strProcessed.regReplace(pattern: "擔", replaceWith: "担") - strProcessed.regReplace(pattern: "據", replaceWith: "拠") - strProcessed.regReplace(pattern: "擴", replaceWith: "拡") - strProcessed.regReplace(pattern: "攝", replaceWith: "摂") - strProcessed.regReplace(pattern: "攪", replaceWith: "撹") - strProcessed.regReplace(pattern: "收", replaceWith: "収") - strProcessed.regReplace(pattern: "效", replaceWith: "効") - strProcessed.regReplace(pattern: "敕", replaceWith: "勅") - strProcessed.regReplace(pattern: "敘", replaceWith: "叙") - strProcessed.regReplace(pattern: "數", replaceWith: "数") - strProcessed.regReplace(pattern: "斷", replaceWith: "断") - strProcessed.regReplace(pattern: "晉", replaceWith: "晋") - strProcessed.regReplace(pattern: "晚", replaceWith: "晩") - strProcessed.regReplace(pattern: "晝", replaceWith: "昼") - strProcessed.regReplace(pattern: "暨", replaceWith: "曁") - strProcessed.regReplace(pattern: "曆", replaceWith: "暦") - strProcessed.regReplace(pattern: "曉", replaceWith: "暁") - strProcessed.regReplace(pattern: "曾", replaceWith: "曽") - strProcessed.regReplace(pattern: "會", replaceWith: "会") - strProcessed.regReplace(pattern: "枡", replaceWith: "桝") - strProcessed.regReplace(pattern: "查", replaceWith: "査") - strProcessed.regReplace(pattern: "條", replaceWith: "条") - strProcessed.regReplace(pattern: "棧", replaceWith: "桟") - strProcessed.regReplace(pattern: "棱", replaceWith: "稜") - strProcessed.regReplace(pattern: "榆", replaceWith: "楡") - strProcessed.regReplace(pattern: "榮", replaceWith: "栄") - strProcessed.regReplace(pattern: "樂", replaceWith: "楽") - strProcessed.regReplace(pattern: "樓", replaceWith: "楼") - strProcessed.regReplace(pattern: "樞", replaceWith: "枢") - strProcessed.regReplace(pattern: "樣", replaceWith: "様") - strProcessed.regReplace(pattern: "橫", replaceWith: "横") - strProcessed.regReplace(pattern: "檢", replaceWith: "検") - strProcessed.regReplace(pattern: "櫻", replaceWith: "桜") - strProcessed.regReplace(pattern: "權", replaceWith: "権") - strProcessed.regReplace(pattern: "歐", replaceWith: "欧") - strProcessed.regReplace(pattern: "歡", replaceWith: "歓") - strProcessed.regReplace(pattern: "步", replaceWith: "歩") - strProcessed.regReplace(pattern: "歲", replaceWith: "歳") - strProcessed.regReplace(pattern: "歷", replaceWith: "歴") - strProcessed.regReplace(pattern: "歸", replaceWith: "帰") - strProcessed.regReplace(pattern: "殘", replaceWith: "残") - strProcessed.regReplace(pattern: "殼", replaceWith: "殻") - strProcessed.regReplace(pattern: "毆", replaceWith: "殴") - strProcessed.regReplace(pattern: "每", replaceWith: "毎") - strProcessed.regReplace(pattern: "氣", replaceWith: "気") - strProcessed.regReplace(pattern: "污", replaceWith: "汚") - strProcessed.regReplace(pattern: "沒", replaceWith: "没") - strProcessed.regReplace(pattern: "涉", replaceWith: "渉") - strProcessed.regReplace(pattern: "淚", replaceWith: "涙") - strProcessed.regReplace(pattern: "淨", replaceWith: "浄") - strProcessed.regReplace(pattern: "淺", replaceWith: "浅") - strProcessed.regReplace(pattern: "渴", replaceWith: "渇") - strProcessed.regReplace(pattern: "溌", replaceWith: "潑") - strProcessed.regReplace(pattern: "溪", replaceWith: "渓") - strProcessed.regReplace(pattern: "溫", replaceWith: "温") - strProcessed.regReplace(pattern: "溼", replaceWith: "湿") - strProcessed.regReplace(pattern: "滯", replaceWith: "滞") - strProcessed.regReplace(pattern: "滿", replaceWith: "満") - strProcessed.regReplace(pattern: "潛", replaceWith: "潜") - strProcessed.regReplace(pattern: "澀", replaceWith: "渋") - strProcessed.regReplace(pattern: "澤", replaceWith: "沢") - strProcessed.regReplace(pattern: "濟", replaceWith: "済") - strProcessed.regReplace(pattern: "濤", replaceWith: "涛") - strProcessed.regReplace(pattern: "濾", replaceWith: "沪") - strProcessed.regReplace(pattern: "瀧", replaceWith: "滝") - strProcessed.regReplace(pattern: "瀨", replaceWith: "瀬") - strProcessed.regReplace(pattern: "灣", replaceWith: "湾") - strProcessed.regReplace(pattern: "焰", replaceWith: "焔") - strProcessed.regReplace(pattern: "燈", replaceWith: "灯") - strProcessed.regReplace(pattern: "燒", replaceWith: "焼") - strProcessed.regReplace(pattern: "營", replaceWith: "営") - strProcessed.regReplace(pattern: "爐", replaceWith: "炉") - strProcessed.regReplace(pattern: "爭", replaceWith: "争") - strProcessed.regReplace(pattern: "爲", replaceWith: "為") - strProcessed.regReplace(pattern: "牀", replaceWith: "床") - strProcessed.regReplace(pattern: "犧", replaceWith: "犠") - strProcessed.regReplace(pattern: "狀", replaceWith: "状") - strProcessed.regReplace(pattern: "狹", replaceWith: "狭") - strProcessed.regReplace(pattern: "獨", replaceWith: "独") - strProcessed.regReplace(pattern: "獵", replaceWith: "猟") - strProcessed.regReplace(pattern: "獸", replaceWith: "獣") - strProcessed.regReplace(pattern: "獻", replaceWith: "献") - strProcessed.regReplace(pattern: "產", replaceWith: "産") - strProcessed.regReplace(pattern: "畫", replaceWith: "画") - strProcessed.regReplace(pattern: "當", replaceWith: "当") - strProcessed.regReplace(pattern: "疊", replaceWith: "畳") - strProcessed.regReplace(pattern: "疎", replaceWith: "疏") - strProcessed.regReplace(pattern: "痹", replaceWith: "痺") - strProcessed.regReplace(pattern: "瘦", replaceWith: "痩") - strProcessed.regReplace(pattern: "癡", replaceWith: "痴") - strProcessed.regReplace(pattern: "發", replaceWith: "発") - strProcessed.regReplace(pattern: "皋", replaceWith: "皐") - strProcessed.regReplace(pattern: "盜", replaceWith: "盗") - strProcessed.regReplace(pattern: "盡", replaceWith: "尽") - strProcessed.regReplace(pattern: "碎", replaceWith: "砕") - strProcessed.regReplace(pattern: "祕", replaceWith: "秘") - strProcessed.regReplace(pattern: "祿", replaceWith: "禄") - strProcessed.regReplace(pattern: "禪", replaceWith: "禅") - strProcessed.regReplace(pattern: "禮", replaceWith: "礼") - strProcessed.regReplace(pattern: "禱", replaceWith: "祷") - strProcessed.regReplace(pattern: "稅", replaceWith: "税") - strProcessed.regReplace(pattern: "稱", replaceWith: "称") - strProcessed.regReplace(pattern: "稻", replaceWith: "稲") - strProcessed.regReplace(pattern: "穎", replaceWith: "頴") - strProcessed.regReplace(pattern: "穗", replaceWith: "穂") - strProcessed.regReplace(pattern: "穩", replaceWith: "穏") - strProcessed.regReplace(pattern: "穰", replaceWith: "穣") - strProcessed.regReplace(pattern: "竃", replaceWith: "竈") - strProcessed.regReplace(pattern: "竊", replaceWith: "窃") - strProcessed.regReplace(pattern: "粹", replaceWith: "粋") - strProcessed.regReplace(pattern: "糉", replaceWith: "粽") - strProcessed.regReplace(pattern: "絕", replaceWith: "絶") - strProcessed.regReplace(pattern: "經", replaceWith: "経") - strProcessed.regReplace(pattern: "綠", replaceWith: "緑") - strProcessed.regReplace(pattern: "緖", replaceWith: "緒") - strProcessed.regReplace(pattern: "緣", replaceWith: "縁") - strProcessed.regReplace(pattern: "縣", replaceWith: "県") - strProcessed.regReplace(pattern: "縱", replaceWith: "縦") - strProcessed.regReplace(pattern: "總", replaceWith: "総") - strProcessed.regReplace(pattern: "繋", replaceWith: "繫") - strProcessed.regReplace(pattern: "繡", replaceWith: "繍") - strProcessed.regReplace(pattern: "繩", replaceWith: "縄") - strProcessed.regReplace(pattern: "繪", replaceWith: "絵") - strProcessed.regReplace(pattern: "繼", replaceWith: "継") - strProcessed.regReplace(pattern: "續", replaceWith: "続") - strProcessed.regReplace(pattern: "纔", replaceWith: "才") - strProcessed.regReplace(pattern: "纖", replaceWith: "繊") - strProcessed.regReplace(pattern: "罐", replaceWith: "缶") - strProcessed.regReplace(pattern: "羣", replaceWith: "群") - strProcessed.regReplace(pattern: "聯", replaceWith: "連") - strProcessed.regReplace(pattern: "聰", replaceWith: "聡") - strProcessed.regReplace(pattern: "聲", replaceWith: "声") - strProcessed.regReplace(pattern: "聽", replaceWith: "聴") - strProcessed.regReplace(pattern: "肅", replaceWith: "粛") - strProcessed.regReplace(pattern: "脣", replaceWith: "唇") - strProcessed.regReplace(pattern: "脫", replaceWith: "脱") - strProcessed.regReplace(pattern: "腦", replaceWith: "脳") - strProcessed.regReplace(pattern: "腳", replaceWith: "脚") - strProcessed.regReplace(pattern: "膽", replaceWith: "胆") - strProcessed.regReplace(pattern: "臟", replaceWith: "臓") - strProcessed.regReplace(pattern: "臺", replaceWith: "台") - strProcessed.regReplace(pattern: "與", replaceWith: "与") - strProcessed.regReplace(pattern: "舉", replaceWith: "挙") - strProcessed.regReplace(pattern: "舊", replaceWith: "旧") - strProcessed.regReplace(pattern: "舍", replaceWith: "舎") - strProcessed.regReplace(pattern: "荔", replaceWith: "茘") - strProcessed.regReplace(pattern: "莊", replaceWith: "荘") - strProcessed.regReplace(pattern: "莖", replaceWith: "茎") - strProcessed.regReplace(pattern: "菸", replaceWith: "煙") - strProcessed.regReplace(pattern: "萊", replaceWith: "莱") - strProcessed.regReplace(pattern: "萬", replaceWith: "万") - strProcessed.regReplace(pattern: "蔣", replaceWith: "蒋") - strProcessed.regReplace(pattern: "蔥", replaceWith: "葱") - strProcessed.regReplace(pattern: "薰", replaceWith: "薫") - strProcessed.regReplace(pattern: "藏", replaceWith: "蔵") - strProcessed.regReplace(pattern: "藥", replaceWith: "薬") - strProcessed.regReplace(pattern: "蘆", replaceWith: "芦") - strProcessed.regReplace(pattern: "處", replaceWith: "処") - strProcessed.regReplace(pattern: "虛", replaceWith: "虚") - strProcessed.regReplace(pattern: "號", replaceWith: "号") - strProcessed.regReplace(pattern: "螢", replaceWith: "蛍") - strProcessed.regReplace(pattern: "蟲", replaceWith: "虫") - strProcessed.regReplace(pattern: "蠟", replaceWith: "蝋") - strProcessed.regReplace(pattern: "蠶", replaceWith: "蚕") - strProcessed.regReplace(pattern: "蠻", replaceWith: "蛮") - strProcessed.regReplace(pattern: "裝", replaceWith: "装") - strProcessed.regReplace(pattern: "覺", replaceWith: "覚") - strProcessed.regReplace(pattern: "覽", replaceWith: "覧") - strProcessed.regReplace(pattern: "觀", replaceWith: "観") - strProcessed.regReplace(pattern: "觸", replaceWith: "触") - strProcessed.regReplace(pattern: "說", replaceWith: "説") - strProcessed.regReplace(pattern: "謠", replaceWith: "謡") - strProcessed.regReplace(pattern: "證", replaceWith: "証") - strProcessed.regReplace(pattern: "譯", replaceWith: "訳") - strProcessed.regReplace(pattern: "譽", replaceWith: "誉") - strProcessed.regReplace(pattern: "讀", replaceWith: "読") - strProcessed.regReplace(pattern: "變", replaceWith: "変") - strProcessed.regReplace(pattern: "讓", replaceWith: "譲") - strProcessed.regReplace(pattern: "豐", replaceWith: "豊") - strProcessed.regReplace(pattern: "豫", replaceWith: "予") - strProcessed.regReplace(pattern: "貓", replaceWith: "猫") - strProcessed.regReplace(pattern: "貳", replaceWith: "弐") - strProcessed.regReplace(pattern: "賣", replaceWith: "売") - strProcessed.regReplace(pattern: "賴", replaceWith: "頼") - strProcessed.regReplace(pattern: "贊", replaceWith: "賛") - strProcessed.regReplace(pattern: "贗", replaceWith: "贋") - strProcessed.regReplace(pattern: "踐", replaceWith: "践") - strProcessed.regReplace(pattern: "輕", replaceWith: "軽") - strProcessed.regReplace(pattern: "輛", replaceWith: "輌") - strProcessed.regReplace(pattern: "轉", replaceWith: "転") - strProcessed.regReplace(pattern: "辭", replaceWith: "辞") - strProcessed.regReplace(pattern: "遞", replaceWith: "逓") - strProcessed.regReplace(pattern: "遥", replaceWith: "遙") - strProcessed.regReplace(pattern: "遲", replaceWith: "遅") - strProcessed.regReplace(pattern: "邊", replaceWith: "辺") - strProcessed.regReplace(pattern: "鄉", replaceWith: "郷") - strProcessed.regReplace(pattern: "酢", replaceWith: "醋") - strProcessed.regReplace(pattern: "醉", replaceWith: "酔") - strProcessed.regReplace(pattern: "醗", replaceWith: "醱") - strProcessed.regReplace(pattern: "醫", replaceWith: "医") - strProcessed.regReplace(pattern: "醬", replaceWith: "醤") - strProcessed.regReplace(pattern: "釀", replaceWith: "醸") - strProcessed.regReplace(pattern: "釋", replaceWith: "釈") - strProcessed.regReplace(pattern: "鋪", replaceWith: "舗") - strProcessed.regReplace(pattern: "錄", replaceWith: "録") - strProcessed.regReplace(pattern: "錢", replaceWith: "銭") - strProcessed.regReplace(pattern: "鍊", replaceWith: "錬") - strProcessed.regReplace(pattern: "鐵", replaceWith: "鉄") - strProcessed.regReplace(pattern: "鑄", replaceWith: "鋳") - strProcessed.regReplace(pattern: "鑛", replaceWith: "鉱") - strProcessed.regReplace(pattern: "閱", replaceWith: "閲") - strProcessed.regReplace(pattern: "關", replaceWith: "関") - strProcessed.regReplace(pattern: "陷", replaceWith: "陥") - strProcessed.regReplace(pattern: "隨", replaceWith: "随") - strProcessed.regReplace(pattern: "險", replaceWith: "険") - strProcessed.regReplace(pattern: "隱", replaceWith: "隠") - strProcessed.regReplace(pattern: "雙", replaceWith: "双") - strProcessed.regReplace(pattern: "雜", replaceWith: "雑") - strProcessed.regReplace(pattern: "雞", replaceWith: "鶏") - strProcessed.regReplace(pattern: "霸", replaceWith: "覇") - strProcessed.regReplace(pattern: "靈", replaceWith: "霊") - strProcessed.regReplace(pattern: "靜", replaceWith: "静") - strProcessed.regReplace(pattern: "顏", replaceWith: "顔") - strProcessed.regReplace(pattern: "顯", replaceWith: "顕") - strProcessed.regReplace(pattern: "餘", replaceWith: "余") - strProcessed.regReplace(pattern: "騷", replaceWith: "騒") - strProcessed.regReplace(pattern: "驅", replaceWith: "駆") - strProcessed.regReplace(pattern: "驗", replaceWith: "験") - strProcessed.regReplace(pattern: "驛", replaceWith: "駅") - strProcessed.regReplace(pattern: "髓", replaceWith: "髄") - strProcessed.regReplace(pattern: "體", replaceWith: "体") - strProcessed.regReplace(pattern: "髮", replaceWith: "髪") - strProcessed.regReplace(pattern: "鬥", replaceWith: "闘") - strProcessed.regReplace(pattern: "鱉", replaceWith: "鼈") - strProcessed.regReplace(pattern: "鷗", replaceWith: "鴎") - strProcessed.regReplace(pattern: "鹼", replaceWith: "鹸") - strProcessed.regReplace(pattern: "鹽", replaceWith: "塩") - strProcessed.regReplace(pattern: "麥", replaceWith: "麦") - strProcessed.regReplace(pattern: "麪", replaceWith: "麺") - strProcessed.regReplace(pattern: "麴", replaceWith: "麹") - strProcessed.regReplace(pattern: "黃", replaceWith: "黄") - strProcessed.regReplace(pattern: "黑", replaceWith: "黒") - strProcessed.regReplace(pattern: "默", replaceWith: "黙") - strProcessed.regReplace(pattern: "點", replaceWith: "点") - strProcessed.regReplace(pattern: "黨", replaceWith: "党") - strProcessed.regReplace(pattern: "齊", replaceWith: "斉") - strProcessed.regReplace(pattern: "齋", replaceWith: "斎") - strProcessed.regReplace(pattern: "齒", replaceWith: "歯") - strProcessed.regReplace(pattern: "齡", replaceWith: "齢") - strProcessed.regReplace(pattern: "龍", replaceWith: "竜") - strProcessed.regReplace(pattern: "龜", replaceWith: "亀") - strProcessed.regReplace(pattern: "叮嚀", replaceWith: "丁寧") - strProcessed.regReplace(pattern: "鄭重", replaceWith: "丁重") - strProcessed.regReplace(pattern: "輿論", replaceWith: "世論") - strProcessed.regReplace(pattern: "唖鈴", replaceWith: "亜鈴") - strProcessed.regReplace(pattern: "交叉", replaceWith: "交差") - strProcessed.regReplace(pattern: "饗宴", replaceWith: "供宴") - strProcessed.regReplace(pattern: "駿馬", replaceWith: "俊馬") - strProcessed.regReplace(pattern: "堡塁", replaceWith: "保塁") - strProcessed.regReplace(pattern: "扁平", replaceWith: "偏平") - strProcessed.regReplace(pattern: "碇泊", replaceWith: "停泊") - strProcessed.regReplace(pattern: "優駿", replaceWith: "優俊") - strProcessed.regReplace(pattern: "尖兵", replaceWith: "先兵") - strProcessed.regReplace(pattern: "尖鋭", replaceWith: "先鋭") - strProcessed.regReplace(pattern: "共軛", replaceWith: "共役") - strProcessed.regReplace(pattern: "饒舌", replaceWith: "冗舌") - strProcessed.regReplace(pattern: "兇器", replaceWith: "凶器") - strProcessed.regReplace(pattern: "鑿岩", replaceWith: "削岩") - strProcessed.regReplace(pattern: "庖丁", replaceWith: "包丁") - strProcessed.regReplace(pattern: "繃帯", replaceWith: "包帯") - strProcessed.regReplace(pattern: "区劃", replaceWith: "区画") - strProcessed.regReplace(pattern: "儼然", replaceWith: "厳然") - strProcessed.regReplace(pattern: "友誼", replaceWith: "友宜") - strProcessed.regReplace(pattern: "叛乱", replaceWith: "反乱") - strProcessed.regReplace(pattern: "蒐集", replaceWith: "収集") - strProcessed.regReplace(pattern: "抒情", replaceWith: "叙情") - strProcessed.regReplace(pattern: "擡頭", replaceWith: "台頭") - strProcessed.regReplace(pattern: "合弁", replaceWith: "合弁") - strProcessed.regReplace(pattern: "歎願", replaceWith: "嘆願") - strProcessed.regReplace(pattern: "廻転", replaceWith: "回転") - strProcessed.regReplace(pattern: "回游", replaceWith: "回遊") - strProcessed.regReplace(pattern: "捧持", replaceWith: "奉持") - strProcessed.regReplace(pattern: "萎縮", replaceWith: "委縮") - strProcessed.regReplace(pattern: "輾転", replaceWith: "展転") - strProcessed.regReplace(pattern: "稀少", replaceWith: "希少") - strProcessed.regReplace(pattern: "眩惑", replaceWith: "幻惑") - strProcessed.regReplace(pattern: "広汎", replaceWith: "広範") - strProcessed.regReplace(pattern: "曠野", replaceWith: "広野") - strProcessed.regReplace(pattern: "廃墟", replaceWith: "廃虚") - strProcessed.regReplace(pattern: "弁当", replaceWith: "弁当") - strProcessed.regReplace(pattern: "弁膜", replaceWith: "弁膜") - strProcessed.regReplace(pattern: "弁護", replaceWith: "弁護") - strProcessed.regReplace(pattern: "辮髪", replaceWith: "弁髪") - strProcessed.regReplace(pattern: "絃歌", replaceWith: "弦歌") - strProcessed.regReplace(pattern: "恩誼", replaceWith: "恩義") - strProcessed.regReplace(pattern: "意嚮", replaceWith: "意向") - strProcessed.regReplace(pattern: "臆断", replaceWith: "憶断") - strProcessed.regReplace(pattern: "臆病", replaceWith: "憶病") - strProcessed.regReplace(pattern: "戦歿", replaceWith: "戦没") - strProcessed.regReplace(pattern: "煽情", replaceWith: "扇情") - strProcessed.regReplace(pattern: "手帖", replaceWith: "手帳") - strProcessed.regReplace(pattern: "伎倆", replaceWith: "技量") - strProcessed.regReplace(pattern: "抜萃", replaceWith: "抜粋") - strProcessed.regReplace(pattern: "披瀝", replaceWith: "披歴") - strProcessed.regReplace(pattern: "牴触", replaceWith: "抵触") - strProcessed.regReplace(pattern: "抽籤", replaceWith: "抽選") - strProcessed.regReplace(pattern: "勾引", replaceWith: "拘引") - strProcessed.regReplace(pattern: "醵出", replaceWith: "拠出") - strProcessed.regReplace(pattern: "醵金", replaceWith: "拠金") - strProcessed.regReplace(pattern: "掘鑿", replaceWith: "掘削") - strProcessed.regReplace(pattern: "扣除", replaceWith: "控除") - strProcessed.regReplace(pattern: "掩護", replaceWith: "援護") - strProcessed.regReplace(pattern: "抛棄", replaceWith: "放棄") - strProcessed.regReplace(pattern: "撒水", replaceWith: "散水") - strProcessed.regReplace(pattern: "敬虔", replaceWith: "敬謙") - strProcessed.regReplace(pattern: "敷衍", replaceWith: "敷延") - strProcessed.regReplace(pattern: "断乎", replaceWith: "断固") - strProcessed.regReplace(pattern: "簇生", replaceWith: "族生") - strProcessed.regReplace(pattern: "陞叙", replaceWith: "昇叙") - strProcessed.regReplace(pattern: "煖房", replaceWith: "暖房") - strProcessed.regReplace(pattern: "暗誦", replaceWith: "暗唱") - strProcessed.regReplace(pattern: "闇夜", replaceWith: "暗夜") - strProcessed.regReplace(pattern: "曝露", replaceWith: "暴露") - strProcessed.regReplace(pattern: "涸渇", replaceWith: "枯渇") - strProcessed.regReplace(pattern: "恰好", replaceWith: "格好") - strProcessed.regReplace(pattern: "恰幅", replaceWith: "格幅") - strProcessed.regReplace(pattern: "毀損", replaceWith: "棄損") - strProcessed.regReplace(pattern: "摸索", replaceWith: "模索") - strProcessed.regReplace(pattern: "欠欠", replaceWith: "欠缺") - strProcessed.regReplace(pattern: "屍体", replaceWith: "死体") - strProcessed.regReplace(pattern: "臀部", replaceWith: "殿部") - strProcessed.regReplace(pattern: "拇指", replaceWith: "母指") - strProcessed.regReplace(pattern: "気魄", replaceWith: "気迫") - strProcessed.regReplace(pattern: "訣別", replaceWith: "決別") - strProcessed.regReplace(pattern: "決潰", replaceWith: "決壊") - strProcessed.regReplace(pattern: "沈澱", replaceWith: "沈殿") - strProcessed.regReplace(pattern: "波瀾", replaceWith: "波乱") - strProcessed.regReplace(pattern: "註釈", replaceWith: "注釈") - strProcessed.regReplace(pattern: "洗滌", replaceWith: "洗濯") - strProcessed.regReplace(pattern: "活潑", replaceWith: "活発") - strProcessed.regReplace(pattern: "滲透", replaceWith: "浸透") - strProcessed.regReplace(pattern: "浸蝕", replaceWith: "浸食") - strProcessed.regReplace(pattern: "銷却", replaceWith: "消却") - strProcessed.regReplace(pattern: "渾然", replaceWith: "混然") - strProcessed.regReplace(pattern: "弯曲", replaceWith: "湾曲") - strProcessed.regReplace(pattern: "熔接", replaceWith: "溶接") - strProcessed.regReplace(pattern: "漁撈", replaceWith: "漁労") - strProcessed.regReplace(pattern: "飄然", replaceWith: "漂然") - strProcessed.regReplace(pattern: "激昂", replaceWith: "激高") - strProcessed.regReplace(pattern: "火焔", replaceWith: "火炎") - strProcessed.regReplace(pattern: "焦躁", replaceWith: "焦燥") - strProcessed.regReplace(pattern: "斑点", replaceWith: "班点") - strProcessed.regReplace(pattern: "溜飲", replaceWith: "留飲") - strProcessed.regReplace(pattern: "掠奪", replaceWith: "略奪") - strProcessed.regReplace(pattern: "疏通", replaceWith: "疎通") - strProcessed.regReplace(pattern: "醱酵", replaceWith: "発酵") - strProcessed.regReplace(pattern: "白堊", replaceWith: "白亜") - strProcessed.regReplace(pattern: "相剋", replaceWith: "相克") - strProcessed.regReplace(pattern: "智慧", replaceWith: "知恵") - strProcessed.regReplace(pattern: "破毀", replaceWith: "破棄") - strProcessed.regReplace(pattern: "確乎", replaceWith: "確固") - strProcessed.regReplace(pattern: "禁錮", replaceWith: "禁固") - strProcessed.regReplace(pattern: "符牒", replaceWith: "符丁") - strProcessed.regReplace(pattern: "扮装", replaceWith: "粉装") - strProcessed.regReplace(pattern: "紫斑", replaceWith: "紫班") - strProcessed.regReplace(pattern: "終熄", replaceWith: "終息") - strProcessed.regReplace(pattern: "綜合", replaceWith: "総合") - strProcessed.regReplace(pattern: "編輯", replaceWith: "編集") - strProcessed.regReplace(pattern: "義捐", replaceWith: "義援") - strProcessed.regReplace(pattern: "肝腎", replaceWith: "肝心") - strProcessed.regReplace(pattern: "悖徳", replaceWith: "背徳") - strProcessed.regReplace(pattern: "脈搏", replaceWith: "脈拍") - strProcessed.regReplace(pattern: "膨脹", replaceWith: "膨張") - strProcessed.regReplace(pattern: "芳醇", replaceWith: "芳純") - strProcessed.regReplace(pattern: "叡智", replaceWith: "英知") - strProcessed.regReplace(pattern: "蒸溜", replaceWith: "蒸留") - strProcessed.regReplace(pattern: "燻蒸", replaceWith: "薫蒸") - strProcessed.regReplace(pattern: "燻製", replaceWith: "薫製") - strProcessed.regReplace(pattern: "衣裳", replaceWith: "衣装") - strProcessed.regReplace(pattern: "衰頽", replaceWith: "衰退") - strProcessed.regReplace(pattern: "悠然", replaceWith: "裕然") - strProcessed.regReplace(pattern: "輔佐", replaceWith: "補佐") - strProcessed.regReplace(pattern: "訓誡", replaceWith: "訓戒") - strProcessed.regReplace(pattern: "試煉", replaceWith: "試練") - strProcessed.regReplace(pattern: "詭弁", replaceWith: "詭弁") - strProcessed.regReplace(pattern: "媾和", replaceWith: "講和") - strProcessed.regReplace(pattern: "象嵌", replaceWith: "象眼") - strProcessed.regReplace(pattern: "貫禄", replaceWith: "貫録") - strProcessed.regReplace(pattern: "買弁", replaceWith: "買弁") - strProcessed.regReplace(pattern: "讚辞", replaceWith: "賛辞") - strProcessed.regReplace(pattern: "蹈襲", replaceWith: "踏襲") - strProcessed.regReplace(pattern: "車両", replaceWith: "車両") - strProcessed.regReplace(pattern: "顛倒", replaceWith: "転倒") - strProcessed.regReplace(pattern: "輪廓", replaceWith: "輪郭") - strProcessed.regReplace(pattern: "褪色", replaceWith: "退色") - strProcessed.regReplace(pattern: "杜絶", replaceWith: "途絶") - strProcessed.regReplace(pattern: "連繫", replaceWith: "連係") - strProcessed.regReplace(pattern: "連合", replaceWith: "連合") - strProcessed.regReplace(pattern: "銓衡", replaceWith: "選考") - strProcessed.regReplace(pattern: "醋酸", replaceWith: "酢酸") - strProcessed.regReplace(pattern: "野鄙", replaceWith: "野卑") - strProcessed.regReplace(pattern: "礦石", replaceWith: "鉱石") - strProcessed.regReplace(pattern: "間歇", replaceWith: "間欠") - strProcessed.regReplace(pattern: "函数", replaceWith: "関数") - strProcessed.regReplace(pattern: "防御", replaceWith: "防御") - strProcessed.regReplace(pattern: "嶮岨", replaceWith: "険阻") - strProcessed.regReplace(pattern: "牆壁", replaceWith: "障壁") - strProcessed.regReplace(pattern: "障礙", replaceWith: "障害") - strProcessed.regReplace(pattern: "湮滅", replaceWith: "隠滅") - strProcessed.regReplace(pattern: "聚落", replaceWith: "集落") - strProcessed.regReplace(pattern: "雇傭", replaceWith: "雇用") - strProcessed.regReplace(pattern: "諷喩", replaceWith: "風諭") - strProcessed.regReplace(pattern: "蜚語", replaceWith: "飛語") - strProcessed.regReplace(pattern: "香奠", replaceWith: "香典") - strProcessed.regReplace(pattern: "骨骼", replaceWith: "骨格") - strProcessed.regReplace(pattern: "亢進", replaceWith: "高進") - strProcessed.regReplace(pattern: "鳥瞰", replaceWith: "鳥観") - strProcessed.regReplace(pattern: "一攫", replaceWith: "一獲") - strProcessed.regReplace(pattern: "肩胛", replaceWith: "肩甲") - strProcessed.regReplace(pattern: "箇条", replaceWith: "個条") - strProcessed.regReplace(pattern: "啓動", replaceWith: "起動") - strProcessed.regReplace(pattern: "三叉路", replaceWith: "三差路") - strProcessed.regReplace(pattern: "嬉遊曲", replaceWith: "喜遊曲") - strProcessed.regReplace(pattern: "建蔽率", replaceWith: "建坪率") - strProcessed.regReplace(pattern: "慰藉料", replaceWith: "慰謝料") - strProcessed.regReplace(pattern: "橋頭堡", replaceWith: "橋頭保") - strProcessed.regReplace(pattern: "油槽船", replaceWith: "油送船") - strProcessed.regReplace(pattern: "耕耘機", replaceWith: "耕運機") - return strProcessed + var strObj = cnvTradToKangXi(strObj) + strObj.selfReplace("兩", "両") + strObj.selfReplace("輛", "両") + strObj.selfReplace("辨", "弁") + strObj.selfReplace("辯", "弁") + strObj.selfReplace("瓣", "弁") + strObj.selfReplace("辦", "弁") + strObj.selfReplace("禦", "御") + strObj.selfReplace("缺", "欠") + strObj.selfReplace("絲", "糸") + strObj.selfReplace("藝", "芸") + strObj.selfReplace("濱", "浜") + strObj.selfReplace("乘", "乗") + strObj.selfReplace("亂", "乱") + strObj.selfReplace("亙", "亘") + strObj.selfReplace("亞", "亜") + strObj.selfReplace("佛", "仏") + strObj.selfReplace("來", "来") + strObj.selfReplace("假", "仮") + strObj.selfReplace("傳", "伝") + strObj.selfReplace("僞", "偽") + strObj.selfReplace("價", "価") + strObj.selfReplace("儉", "倹") + strObj.selfReplace("兒", "児") + strObj.selfReplace("內", "内") + strObj.selfReplace("剎", "刹") + strObj.selfReplace("剩", "剰") + strObj.selfReplace("劍", "剣") + strObj.selfReplace("剱", "剣") + strObj.selfReplace("劎", "剣") + strObj.selfReplace("劒", "剣") + strObj.selfReplace("劔", "剣") + strObj.selfReplace("劑", "剤") + strObj.selfReplace("勞", "労") + strObj.selfReplace("勳", "勲") + strObj.selfReplace("勵", "励") + strObj.selfReplace("勸", "勧") + strObj.selfReplace("勻", "匀") + strObj.selfReplace("區", "区") + strObj.selfReplace("卷", "巻") + strObj.selfReplace("卻", "却") + strObj.selfReplace("參", "参") + strObj.selfReplace("吳", "呉") + strObj.selfReplace("咒", "呪") + strObj.selfReplace("啞", "唖") + strObj.selfReplace("單", "単") + strObj.selfReplace("噓", "嘘") + strObj.selfReplace("嚙", "噛") + strObj.selfReplace("嚴", "厳") + strObj.selfReplace("囑", "嘱") + strObj.selfReplace("圈", "圏") + strObj.selfReplace("國", "国") + strObj.selfReplace("圍", "囲") + strObj.selfReplace("圓", "円") + strObj.selfReplace("圖", "図") + strObj.selfReplace("團", "団") + strObj.selfReplace("增", "増") + strObj.selfReplace("墮", "堕") + strObj.selfReplace("壓", "圧") + strObj.selfReplace("壘", "塁") + strObj.selfReplace("壞", "壊") + strObj.selfReplace("壤", "壌") + strObj.selfReplace("壯", "壮") + strObj.selfReplace("壹", "壱") + strObj.selfReplace("壽", "寿") + strObj.selfReplace("奧", "奥") + strObj.selfReplace("奬", "奨") + strObj.selfReplace("妝", "粧") + strObj.selfReplace("孃", "嬢") + strObj.selfReplace("學", "学") + strObj.selfReplace("寢", "寝") + strObj.selfReplace("實", "実") + strObj.selfReplace("寫", "写") + strObj.selfReplace("寬", "寛") + strObj.selfReplace("寶", "宝") + strObj.selfReplace("將", "将") + strObj.selfReplace("專", "専") + strObj.selfReplace("對", "対") + strObj.selfReplace("屆", "届") + strObj.selfReplace("屬", "属") + strObj.selfReplace("峯", "峰") + strObj.selfReplace("峽", "峡") + strObj.selfReplace("嶽", "岳") + strObj.selfReplace("巖", "巌") + strObj.selfReplace("巢", "巣") + strObj.selfReplace("帶", "帯") + strObj.selfReplace("廁", "厠") + strObj.selfReplace("廢", "廃") + strObj.selfReplace("廣", "広") + strObj.selfReplace("廳", "庁") + strObj.selfReplace("彈", "弾") + strObj.selfReplace("彌", "弥") + strObj.selfReplace("彎", "弯") + strObj.selfReplace("彥", "彦") + strObj.selfReplace("徑", "径") + strObj.selfReplace("從", "従") + strObj.selfReplace("徵", "徴") + strObj.selfReplace("德", "徳") + strObj.selfReplace("恆", "恒") + strObj.selfReplace("悅", "悦") + strObj.selfReplace("惠", "恵") + strObj.selfReplace("惡", "悪") + strObj.selfReplace("惱", "悩") + strObj.selfReplace("慘", "惨") + strObj.selfReplace("應", "応") + strObj.selfReplace("懷", "懐") + strObj.selfReplace("戀", "恋") + strObj.selfReplace("戰", "戦") + strObj.selfReplace("戲", "戯") + strObj.selfReplace("戶", "戸") + strObj.selfReplace("戾", "戻") + strObj.selfReplace("拂", "払") + strObj.selfReplace("拔", "抜") + strObj.selfReplace("拜", "拝") + strObj.selfReplace("挾", "挟") + strObj.selfReplace("插", "挿") + strObj.selfReplace("揭", "掲") + strObj.selfReplace("搔", "掻") + strObj.selfReplace("搖", "揺") + strObj.selfReplace("搜", "捜") + strObj.selfReplace("摑", "掴") + strObj.selfReplace("擇", "択") + strObj.selfReplace("擊", "撃") + strObj.selfReplace("擔", "担") + strObj.selfReplace("據", "拠") + strObj.selfReplace("擴", "拡") + strObj.selfReplace("攝", "摂") + strObj.selfReplace("攪", "撹") + strObj.selfReplace("收", "収") + strObj.selfReplace("效", "効") + strObj.selfReplace("敕", "勅") + strObj.selfReplace("敘", "叙") + strObj.selfReplace("數", "数") + strObj.selfReplace("斷", "断") + strObj.selfReplace("晉", "晋") + strObj.selfReplace("晚", "晩") + strObj.selfReplace("晝", "昼") + strObj.selfReplace("暨", "曁") + strObj.selfReplace("曆", "暦") + strObj.selfReplace("曉", "暁") + strObj.selfReplace("曾", "曽") + strObj.selfReplace("會", "会") + strObj.selfReplace("枡", "桝") + strObj.selfReplace("查", "査") + strObj.selfReplace("條", "条") + strObj.selfReplace("棧", "桟") + strObj.selfReplace("棱", "稜") + strObj.selfReplace("榆", "楡") + strObj.selfReplace("榮", "栄") + strObj.selfReplace("樂", "楽") + strObj.selfReplace("樓", "楼") + strObj.selfReplace("樞", "枢") + strObj.selfReplace("樣", "様") + strObj.selfReplace("橫", "横") + strObj.selfReplace("檢", "検") + strObj.selfReplace("櫻", "桜") + strObj.selfReplace("權", "権") + strObj.selfReplace("歐", "欧") + strObj.selfReplace("歡", "歓") + strObj.selfReplace("步", "歩") + strObj.selfReplace("歲", "歳") + strObj.selfReplace("歷", "歴") + strObj.selfReplace("歸", "帰") + strObj.selfReplace("殘", "残") + strObj.selfReplace("殼", "殻") + strObj.selfReplace("毆", "殴") + strObj.selfReplace("每", "毎") + strObj.selfReplace("氣", "気") + strObj.selfReplace("污", "汚") + strObj.selfReplace("沒", "没") + strObj.selfReplace("涉", "渉") + strObj.selfReplace("淚", "涙") + strObj.selfReplace("淨", "浄") + strObj.selfReplace("淺", "浅") + strObj.selfReplace("渴", "渇") + strObj.selfReplace("溌", "潑") + strObj.selfReplace("溪", "渓") + strObj.selfReplace("溫", "温") + strObj.selfReplace("溼", "湿") + strObj.selfReplace("滯", "滞") + strObj.selfReplace("滿", "満") + strObj.selfReplace("潛", "潜") + strObj.selfReplace("澀", "渋") + strObj.selfReplace("澤", "沢") + strObj.selfReplace("濟", "済") + strObj.selfReplace("濤", "涛") + strObj.selfReplace("濾", "沪") + strObj.selfReplace("瀧", "滝") + strObj.selfReplace("瀨", "瀬") + strObj.selfReplace("灣", "湾") + strObj.selfReplace("焰", "焔") + strObj.selfReplace("燈", "灯") + strObj.selfReplace("燒", "焼") + strObj.selfReplace("營", "営") + strObj.selfReplace("爐", "炉") + strObj.selfReplace("爭", "争") + strObj.selfReplace("爲", "為") + strObj.selfReplace("牀", "床") + strObj.selfReplace("犧", "犠") + strObj.selfReplace("狀", "状") + strObj.selfReplace("狹", "狭") + strObj.selfReplace("獨", "独") + strObj.selfReplace("獵", "猟") + strObj.selfReplace("獸", "獣") + strObj.selfReplace("獻", "献") + strObj.selfReplace("產", "産") + strObj.selfReplace("畫", "画") + strObj.selfReplace("當", "当") + strObj.selfReplace("疊", "畳") + strObj.selfReplace("疎", "疏") + strObj.selfReplace("痹", "痺") + strObj.selfReplace("瘦", "痩") + strObj.selfReplace("癡", "痴") + strObj.selfReplace("發", "発") + strObj.selfReplace("皋", "皐") + strObj.selfReplace("盜", "盗") + strObj.selfReplace("盡", "尽") + strObj.selfReplace("碎", "砕") + strObj.selfReplace("祕", "秘") + strObj.selfReplace("祿", "禄") + strObj.selfReplace("禪", "禅") + strObj.selfReplace("禮", "礼") + strObj.selfReplace("禱", "祷") + strObj.selfReplace("稅", "税") + strObj.selfReplace("稱", "称") + strObj.selfReplace("稻", "稲") + strObj.selfReplace("穎", "頴") + strObj.selfReplace("穗", "穂") + strObj.selfReplace("穩", "穏") + strObj.selfReplace("穰", "穣") + strObj.selfReplace("竃", "竈") + strObj.selfReplace("竊", "窃") + strObj.selfReplace("粹", "粋") + strObj.selfReplace("糉", "粽") + strObj.selfReplace("絕", "絶") + strObj.selfReplace("經", "経") + strObj.selfReplace("綠", "緑") + strObj.selfReplace("緖", "緒") + strObj.selfReplace("緣", "縁") + strObj.selfReplace("縣", "県") + strObj.selfReplace("縱", "縦") + strObj.selfReplace("總", "総") + strObj.selfReplace("繋", "繫") + strObj.selfReplace("繡", "繍") + strObj.selfReplace("繩", "縄") + strObj.selfReplace("繪", "絵") + strObj.selfReplace("繼", "継") + strObj.selfReplace("續", "続") + strObj.selfReplace("纔", "才") + strObj.selfReplace("纖", "繊") + strObj.selfReplace("罐", "缶") + strObj.selfReplace("羣", "群") + strObj.selfReplace("聯", "連") + strObj.selfReplace("聰", "聡") + strObj.selfReplace("聲", "声") + strObj.selfReplace("聽", "聴") + strObj.selfReplace("肅", "粛") + strObj.selfReplace("脣", "唇") + strObj.selfReplace("脫", "脱") + strObj.selfReplace("腦", "脳") + strObj.selfReplace("腳", "脚") + strObj.selfReplace("膽", "胆") + strObj.selfReplace("臟", "臓") + strObj.selfReplace("臺", "台") + strObj.selfReplace("與", "与") + strObj.selfReplace("舉", "挙") + strObj.selfReplace("舊", "旧") + strObj.selfReplace("舍", "舎") + strObj.selfReplace("荔", "茘") + strObj.selfReplace("莊", "荘") + strObj.selfReplace("莖", "茎") + strObj.selfReplace("菸", "煙") + strObj.selfReplace("萊", "莱") + strObj.selfReplace("萬", "万") + strObj.selfReplace("蔣", "蒋") + strObj.selfReplace("蔥", "葱") + strObj.selfReplace("薰", "薫") + strObj.selfReplace("藏", "蔵") + strObj.selfReplace("藥", "薬") + strObj.selfReplace("蘆", "芦") + strObj.selfReplace("處", "処") + strObj.selfReplace("虛", "虚") + strObj.selfReplace("號", "号") + strObj.selfReplace("螢", "蛍") + strObj.selfReplace("蟲", "虫") + strObj.selfReplace("蠟", "蝋") + strObj.selfReplace("蠶", "蚕") + strObj.selfReplace("蠻", "蛮") + strObj.selfReplace("裝", "装") + strObj.selfReplace("覺", "覚") + strObj.selfReplace("覽", "覧") + strObj.selfReplace("觀", "観") + strObj.selfReplace("觸", "触") + strObj.selfReplace("說", "説") + strObj.selfReplace("謠", "謡") + strObj.selfReplace("證", "証") + strObj.selfReplace("譯", "訳") + strObj.selfReplace("譽", "誉") + strObj.selfReplace("讀", "読") + strObj.selfReplace("變", "変") + strObj.selfReplace("讓", "譲") + strObj.selfReplace("豐", "豊") + strObj.selfReplace("豫", "予") + strObj.selfReplace("貓", "猫") + strObj.selfReplace("貳", "弐") + strObj.selfReplace("賣", "売") + strObj.selfReplace("賴", "頼") + strObj.selfReplace("贊", "賛") + strObj.selfReplace("贗", "贋") + strObj.selfReplace("踐", "践") + strObj.selfReplace("輕", "軽") + strObj.selfReplace("輛", "輌") + strObj.selfReplace("轉", "転") + strObj.selfReplace("辭", "辞") + strObj.selfReplace("遞", "逓") + strObj.selfReplace("遥", "遙") + strObj.selfReplace("遲", "遅") + strObj.selfReplace("邊", "辺") + strObj.selfReplace("鄉", "郷") + strObj.selfReplace("酢", "醋") + strObj.selfReplace("醉", "酔") + strObj.selfReplace("醗", "醱") + strObj.selfReplace("醫", "医") + strObj.selfReplace("醬", "醤") + strObj.selfReplace("釀", "醸") + strObj.selfReplace("釋", "釈") + strObj.selfReplace("鋪", "舗") + strObj.selfReplace("錄", "録") + strObj.selfReplace("錢", "銭") + strObj.selfReplace("鍊", "錬") + strObj.selfReplace("鐵", "鉄") + strObj.selfReplace("鑄", "鋳") + strObj.selfReplace("鑛", "鉱") + strObj.selfReplace("閱", "閲") + strObj.selfReplace("關", "関") + strObj.selfReplace("陷", "陥") + strObj.selfReplace("隨", "随") + strObj.selfReplace("險", "険") + strObj.selfReplace("隱", "隠") + strObj.selfReplace("雙", "双") + strObj.selfReplace("雜", "雑") + strObj.selfReplace("雞", "鶏") + strObj.selfReplace("霸", "覇") + strObj.selfReplace("靈", "霊") + strObj.selfReplace("靜", "静") + strObj.selfReplace("顏", "顔") + strObj.selfReplace("顯", "顕") + strObj.selfReplace("餘", "余") + strObj.selfReplace("騷", "騒") + strObj.selfReplace("驅", "駆") + strObj.selfReplace("驗", "験") + strObj.selfReplace("驛", "駅") + strObj.selfReplace("髓", "髄") + strObj.selfReplace("體", "体") + strObj.selfReplace("髮", "髪") + strObj.selfReplace("鬥", "闘") + strObj.selfReplace("鱉", "鼈") + strObj.selfReplace("鷗", "鴎") + strObj.selfReplace("鹼", "鹸") + strObj.selfReplace("鹽", "塩") + strObj.selfReplace("麥", "麦") + strObj.selfReplace("麪", "麺") + strObj.selfReplace("麴", "麹") + strObj.selfReplace("黃", "黄") + strObj.selfReplace("黑", "黒") + strObj.selfReplace("默", "黙") + strObj.selfReplace("點", "点") + strObj.selfReplace("黨", "党") + strObj.selfReplace("齊", "斉") + strObj.selfReplace("齋", "斎") + strObj.selfReplace("齒", "歯") + strObj.selfReplace("齡", "齢") + strObj.selfReplace("龍", "竜") + strObj.selfReplace("龜", "亀") + strObj.selfReplace("叮嚀", "丁寧") + strObj.selfReplace("鄭重", "丁重") + strObj.selfReplace("輿論", "世論") + strObj.selfReplace("唖鈴", "亜鈴") + strObj.selfReplace("交叉", "交差") + strObj.selfReplace("饗宴", "供宴") + strObj.selfReplace("駿馬", "俊馬") + strObj.selfReplace("堡塁", "保塁") + strObj.selfReplace("扁平", "偏平") + strObj.selfReplace("碇泊", "停泊") + strObj.selfReplace("優駿", "優俊") + strObj.selfReplace("尖兵", "先兵") + strObj.selfReplace("尖鋭", "先鋭") + strObj.selfReplace("共軛", "共役") + strObj.selfReplace("饒舌", "冗舌") + strObj.selfReplace("兇器", "凶器") + strObj.selfReplace("鑿岩", "削岩") + strObj.selfReplace("庖丁", "包丁") + strObj.selfReplace("繃帯", "包帯") + strObj.selfReplace("区劃", "区画") + strObj.selfReplace("儼然", "厳然") + strObj.selfReplace("友誼", "友宜") + strObj.selfReplace("叛乱", "反乱") + strObj.selfReplace("蒐集", "収集") + strObj.selfReplace("抒情", "叙情") + strObj.selfReplace("擡頭", "台頭") + strObj.selfReplace("合弁", "合弁") + strObj.selfReplace("歎願", "嘆願") + strObj.selfReplace("廻転", "回転") + strObj.selfReplace("回游", "回遊") + strObj.selfReplace("捧持", "奉持") + strObj.selfReplace("萎縮", "委縮") + strObj.selfReplace("輾転", "展転") + strObj.selfReplace("稀少", "希少") + strObj.selfReplace("眩惑", "幻惑") + strObj.selfReplace("広汎", "広範") + strObj.selfReplace("曠野", "広野") + strObj.selfReplace("廃墟", "廃虚") + strObj.selfReplace("弁当", "弁当") + strObj.selfReplace("弁膜", "弁膜") + strObj.selfReplace("弁護", "弁護") + strObj.selfReplace("辮髪", "弁髪") + strObj.selfReplace("絃歌", "弦歌") + strObj.selfReplace("恩誼", "恩義") + strObj.selfReplace("意嚮", "意向") + strObj.selfReplace("臆断", "憶断") + strObj.selfReplace("臆病", "憶病") + strObj.selfReplace("戦歿", "戦没") + strObj.selfReplace("煽情", "扇情") + strObj.selfReplace("手帖", "手帳") + strObj.selfReplace("伎倆", "技量") + strObj.selfReplace("抜萃", "抜粋") + strObj.selfReplace("披瀝", "披歴") + strObj.selfReplace("牴触", "抵触") + strObj.selfReplace("抽籤", "抽選") + strObj.selfReplace("勾引", "拘引") + strObj.selfReplace("醵出", "拠出") + strObj.selfReplace("醵金", "拠金") + strObj.selfReplace("掘鑿", "掘削") + strObj.selfReplace("扣除", "控除") + strObj.selfReplace("掩護", "援護") + strObj.selfReplace("抛棄", "放棄") + strObj.selfReplace("撒水", "散水") + strObj.selfReplace("敬虔", "敬謙") + strObj.selfReplace("敷衍", "敷延") + strObj.selfReplace("断乎", "断固") + strObj.selfReplace("簇生", "族生") + strObj.selfReplace("陞叙", "昇叙") + strObj.selfReplace("煖房", "暖房") + strObj.selfReplace("暗誦", "暗唱") + strObj.selfReplace("闇夜", "暗夜") + strObj.selfReplace("曝露", "暴露") + strObj.selfReplace("涸渇", "枯渇") + strObj.selfReplace("恰好", "格好") + strObj.selfReplace("恰幅", "格幅") + strObj.selfReplace("毀損", "棄損") + strObj.selfReplace("摸索", "模索") + strObj.selfReplace("欠欠", "欠缺") + strObj.selfReplace("屍体", "死体") + strObj.selfReplace("臀部", "殿部") + strObj.selfReplace("拇指", "母指") + strObj.selfReplace("気魄", "気迫") + strObj.selfReplace("訣別", "決別") + strObj.selfReplace("決潰", "決壊") + strObj.selfReplace("沈澱", "沈殿") + strObj.selfReplace("波瀾", "波乱") + strObj.selfReplace("註釈", "注釈") + strObj.selfReplace("洗滌", "洗濯") + strObj.selfReplace("活潑", "活発") + strObj.selfReplace("滲透", "浸透") + strObj.selfReplace("浸蝕", "浸食") + strObj.selfReplace("銷却", "消却") + strObj.selfReplace("渾然", "混然") + strObj.selfReplace("弯曲", "湾曲") + strObj.selfReplace("熔接", "溶接") + strObj.selfReplace("漁撈", "漁労") + strObj.selfReplace("飄然", "漂然") + strObj.selfReplace("激昂", "激高") + strObj.selfReplace("火焔", "火炎") + strObj.selfReplace("焦躁", "焦燥") + strObj.selfReplace("斑点", "班点") + strObj.selfReplace("溜飲", "留飲") + strObj.selfReplace("掠奪", "略奪") + strObj.selfReplace("疏通", "疎通") + strObj.selfReplace("醱酵", "発酵") + strObj.selfReplace("白堊", "白亜") + strObj.selfReplace("相剋", "相克") + strObj.selfReplace("智慧", "知恵") + strObj.selfReplace("破毀", "破棄") + strObj.selfReplace("確乎", "確固") + strObj.selfReplace("禁錮", "禁固") + strObj.selfReplace("符牒", "符丁") + strObj.selfReplace("扮装", "粉装") + strObj.selfReplace("紫斑", "紫班") + strObj.selfReplace("終熄", "終息") + strObj.selfReplace("綜合", "総合") + strObj.selfReplace("編輯", "編集") + strObj.selfReplace("義捐", "義援") + strObj.selfReplace("肝腎", "肝心") + strObj.selfReplace("悖徳", "背徳") + strObj.selfReplace("脈搏", "脈拍") + strObj.selfReplace("膨脹", "膨張") + strObj.selfReplace("芳醇", "芳純") + strObj.selfReplace("叡智", "英知") + strObj.selfReplace("蒸溜", "蒸留") + strObj.selfReplace("燻蒸", "薫蒸") + strObj.selfReplace("燻製", "薫製") + strObj.selfReplace("衣裳", "衣装") + strObj.selfReplace("衰頽", "衰退") + strObj.selfReplace("悠然", "裕然") + strObj.selfReplace("輔佐", "補佐") + strObj.selfReplace("訓誡", "訓戒") + strObj.selfReplace("試煉", "試練") + strObj.selfReplace("詭弁", "詭弁") + strObj.selfReplace("媾和", "講和") + strObj.selfReplace("象嵌", "象眼") + strObj.selfReplace("貫禄", "貫録") + strObj.selfReplace("買弁", "買弁") + strObj.selfReplace("讚辞", "賛辞") + strObj.selfReplace("蹈襲", "踏襲") + strObj.selfReplace("車両", "車両") + strObj.selfReplace("顛倒", "転倒") + strObj.selfReplace("輪廓", "輪郭") + strObj.selfReplace("褪色", "退色") + strObj.selfReplace("杜絶", "途絶") + strObj.selfReplace("連繫", "連係") + strObj.selfReplace("連合", "連合") + strObj.selfReplace("銓衡", "選考") + strObj.selfReplace("醋酸", "酢酸") + strObj.selfReplace("野鄙", "野卑") + strObj.selfReplace("礦石", "鉱石") + strObj.selfReplace("間歇", "間欠") + strObj.selfReplace("函数", "関数") + strObj.selfReplace("防御", "防御") + strObj.selfReplace("嶮岨", "険阻") + strObj.selfReplace("牆壁", "障壁") + strObj.selfReplace("障礙", "障害") + strObj.selfReplace("湮滅", "隠滅") + strObj.selfReplace("聚落", "集落") + strObj.selfReplace("雇傭", "雇用") + strObj.selfReplace("諷喩", "風諭") + strObj.selfReplace("蜚語", "飛語") + strObj.selfReplace("香奠", "香典") + strObj.selfReplace("骨骼", "骨格") + strObj.selfReplace("亢進", "高進") + strObj.selfReplace("鳥瞰", "鳥観") + strObj.selfReplace("一攫", "一獲") + strObj.selfReplace("肩胛", "肩甲") + strObj.selfReplace("箇条", "個条") + strObj.selfReplace("啓動", "起動") + strObj.selfReplace("三叉路", "三差路") + strObj.selfReplace("嬉遊曲", "喜遊曲") + strObj.selfReplace("建蔽率", "建坪率") + strObj.selfReplace("慰藉料", "慰謝料") + strObj.selfReplace("橋頭堡", "橋頭保") + strObj.selfReplace("油槽船", "油送船") + strObj.selfReplace("耕耘機", "耕運機") + return strObj } }