Skip to content

Commit

Permalink
feat: name 插件字符问题,补充部分汉字/拼音
Browse files Browse the repository at this point in the history
  • Loading branch information
theajack3 committed Dec 16, 2023
1 parent 2638550 commit 54cdfe0
Show file tree
Hide file tree
Showing 13 changed files with 22,725 additions and 38 deletions.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# registry=https://registry.npmmirror.com/
registry=https://registry.npmjs.org/
5 changes: 5 additions & 0 deletions helper/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
6. 查询包含某个汉字(笔画序列)的所有汉字【如根据斌字查到赟】
7. 判断某个汉字是否包含某个汉字【如赟字是否包含斌】

## 3.2.5

1. name 插件字符问题
2. 补充部分汉字/拼音

## 3.2.4

1. fix: cnchar.spell('洗', 'flat') 参数有bug
Expand Down
22,732 changes: 22,705 additions & 27 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/cnchar/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: tackchen
* @Date: 2022-04-10 21:46:46
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-06-18 18:35:55
* @LastEditTime: 2023-12-16 16:15:43
* @FilePath: /cnchar/src/cnchar/common/util.ts
* @Description: Coding something
*/
Expand Down Expand Up @@ -105,7 +105,6 @@ export const isCnChar: IFunc<boolean> = (word: string): boolean => {
// }
// const unicode = word.charCodeAt(0);
// return unicode >= 19968 && unicode <= 40869;

if (word.length === 1)
return !!word.match(/[\u4e00-\u9fa5]/);
return word.match(/[\u4e00-\u9fa5]/g)?.join('').length === word.length;
Expand Down
3 changes: 2 additions & 1 deletion src/cnchar/main/dict/spell-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,6 @@
"靚": "liàng",
"刹": "shā",
"彷": "páng",
"内": "nèi"
"内": "nèi",
"合": ""
}
4 changes: 2 additions & 2 deletions src/cnchar/plugin/name/dict/name.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"boy": "伟刚勇毅俊峰强军平保东文辉力明永健世广志义兴良海山仁波宁贵福生龙元全国胜学祥才发武新利清飞彬富顺信子杰涛昌成康星光天达安岩中茂进林有坚和彪博诚先敬震振壮会思群豪心邦承乐绍功松善厚庆磊民友裕河哲江超浩亮政谦亨奇固之轮翰朗伯宏言若鸣朋斌梁栋维启克伦翔旭鹏泽晨辰士以建家致树炎德行时泰盛雄琛钧冠策腾楠榕风航弘⾔⽟意彦轩景正程宇澄青恒嘉皓玮桦韵彤逸柏劲鸿⽂恩远圣⾏律本昊麦冬⾠亦",
"girl": "秀娟英华慧巧美娜静淑惠珠翠雅芝玉萍红娥玲芬芳燕彩春菊兰凤洁梅琳素云莲真环雪荣爱妹霞香月莺媛艳瑞凡佳嘉琼勤珍贞莉桂娣叶璧璐娅琦晶妍茜秋珊莎锦黛青倩婷姣婉娴瑾颖露瑶怡婵雁蓓纨仪荷丹蓉眉君琴蕊薇菁梦岚苑婕馨瑗琰韵融园艺咏卿聪澜纯毓悦昭冰爽琬茗羽希宁欣飘育滢馥筠柔竹霭凝晓欢霄枫芸菲寒伊亚宜可姬舒影荔枝思丽彤⾃宸微⽻纾元晴玥蕾桑萱宛灵烟⽂柏以如⾔安昕忻梓江沁访忆茹幻⾠⾬亦"
"boy": "伟刚勇毅俊峰强军平保东文辉力明永健世广志义兴良海山仁波宁贵福生龙元全国胜学祥才发武新利清飞彬富顺信子杰涛昌成康星光天达安岩中茂进林有坚和彪博诚先敬震振壮会思群豪心邦承乐绍功松善厚庆磊民友裕河哲江超浩亮政谦亨奇固之轮翰朗伯宏若鸣朋斌梁栋维启克伦翔旭鹏泽晨士以建家致树炎德行时泰盛雄琛钧冠策腾楠榕风航弘言玉意彦轩景正程宇澄青恒嘉皓玮桦韵彤逸柏劲鸿恩远圣行律本昊麦冬辰亦",
"girl": "秀娟英华慧巧美娜静淑惠珠翠雅芝玉萍红娥玲芬芳燕彩春菊兰凤洁梅琳素云莲真环雪荣爱妹霞香月莺媛艳瑞凡佳嘉琼勤珍贞莉桂娣叶璧璐娅琦晶妍茜秋珊莎锦黛青倩婷姣婉娴瑾颖露瑶怡婵雁蓓纨仪荷丹蓉眉君琴蕊薇菁梦岚苑婕馨瑗琰韵融园艺咏卿聪澜纯毓悦昭冰爽琬茗羽希宁欣飘育滢馥筠柔竹霭凝晓欢霄枫芸菲寒伊亚宜可姬舒影荔枝思丽彤自宸微羽纾元晴玥蕾桑萱宛灵烟文柏以如言安昕忻梓江沁访忆茹幻辰雨亦"
}
3 changes: 2 additions & 1 deletion src/cnchar/plugin/poly/dict/polyphone-phrase-simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -3137,5 +3137,6 @@
"南无阿弥陀佛": "nā wú ā mí tuó fó",
"中奖": "zhòng jiǎng",
"古刹": "gǔ chà",
"刹那": "chà nà"
"刹那": "chà nà",
"大厦": "dà shà"
}
2 changes: 1 addition & 1 deletion src/cnchar/plugin/trad/dict/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@
"灣": "32127 EVFN -",
"橢": "44927 DNLB -",
"溫": "36112 EWOT -",
"": "31114 EMVG -",
"": "31114 EMVG -",
"遊": "38304 YYSD -",
"毿": "22214 IHHQU -",
"殫": "16256 MNRRJ -",
Expand Down
2 changes: 1 addition & 1 deletion src/cnchar/plugin/trad/dict/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@
"灣": "ccㄨㄢ",
"橢": "cdㄊㄨㄛˇ",
"溫": "ccㄨㄣ",
"": "ccㄕ",
"": "ccㄕ",
"遊": "caㄧㄡˊ",
"毿": "cdㄙㄢ",
"殫": "cdㄉㄢ",
Expand Down
2 changes: 1 addition & 1 deletion src/cnchar/plugin/trad/dict/radicals-trad.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"刂": "2:劄a劉a劃a則a創a剛a剋c別a剄a刪a剴a劊a劌a劑a剎a剮a劇a剝a剷a劍a",
"戈": "4:戔b戯a戧a戰a戩a戲a",
"扌": "3:撲a扡a擴f捫a揚a掃a拋f擾a摳a撫a搶a摺a摶a掄a擬a捲a擡a攏a擔a攔a擁a揀a擰a擇a撥a搆a捨a掛a撻f撾f挾a掙a擋a撟a揮a撓a擠a揹a撈a損a搗a換a撿a摑a據a擲f撚a擄a撣a摜a摻a摣a攙a擱a攬a搇a摟a攪a攄a搖a擺a擕a攝a擯a攤f攖a搾a攆a撐a擼a擷a攛a擻f攜a攢a撳h",
"氵": "3:漢a滅d沖a決a沍a湯d汙a況a滷d溝a沒d灃a漚a瀝f淪a洶a滄a溈a氾a滬a淨a瀧d瀘d洩d淚a濘d瀉a濼a潑a涇a澤a淺a灑a浹a澆a潔d瀏f濁a濟a測a澮a湞a渾a滸f濃a潯a滻a濜d淩a涼d準f澇a湧a渦a濬a潿a濤a漣f滌f渙a澗a漲f潤a淶a澀d涖f減a湊a淵a漬d漸a澱a淥a瀋a漁a澠a滲a灣a溫a溼a潰a濺f漵f滯a潟a濶a湣a灧f潷a灄d濫a瀅a滾d灤d灘f灕f滿a濱a瀠a瀲d瀟a濰f瀦f潛d瀾d澂f瀨f瀕f灝f濾a潙a瀆a灩h",
"氵": "3:漢a滅d沖a決a沍a湯d汙a況a滷d溝a沒d灃a漚a瀝f淪a洶a滄a溈a氾a滬a淨a瀧d瀘d洩d淚a濘d瀉a濼a潑a涇a澤a淺a灑a浹a澆a潔d瀏f濁a濟a測a澮a湞a渾a滸f濃a潯a滻a濜d淩a涼d準f澇a湧a渦a濬a潿a濤a漣f滌f渙a澗a漲f潤a淶a澀d涖f減a湊a淵a漬d漸a澱a淥a瀋a漁a澠a滲a灣a溫a濕a潰a濺f漵f滯a潟a濶a湣a灧f潷a灄d濫a瀅a滾d灤d灘f灕f滿a濱a瀠a瀲d瀟a濰f瀦f潛d瀾d澂f瀨f瀕f灝f濾a潙a瀆a灩h",
"止": "4:歸a歷d歲b",
"礻": "4:禮a祐a禕a禰a祕a禎a禱a禍a祿a禪a",
"竹": "6:節b籲a簾b範b篤b籥b筧b筆b筍b籠b籩b箠b築b篳b箏b篩b篠b簽b籌b簡b簑b籮b篋b篛b簞b籜b簫b簍b簣b籃b籬b簷b籪b籐b籟b箋b籤b",
Expand Down
2 changes: 1 addition & 1 deletion src/cnchar/plugin/trad/dict/stroke-count-trad.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"14": "幣賓餅駁蔔慚慘摻嘗暢塵稱綢綽蔥鄲鄧墊對奪墮爾餌罰閥瘋鳳輔複趕綱閣鉻構慣廣閨滾漢閡滬劃瘓誨夥監箋漸蔣鉸僥餃稭誡緊盡摳寬厲鄰領摟鋁屢綠綸瑪滿麽綿閩鳴銘瘧嘔漚頗齊塹槍僑寢輕認榮賒滲蝕實適壽說碩誦隨瑣態銅圖團窪網維僞聞撾蝸誣誤銑銜緒厭瘍養瑤銥銀熒誘漁語獄劄嶄綻漲趙鄭滯種墜綴漬綜寧塼厰麼僕勱嘆関薌滷獃嫗匲嶇誌慪摺摶槓榪蓯製凴徴戧熗碭綫膁蔦鳶慟暱滸碸滎犖誚誑誥誒颮颯餉滻餄餎嘜慳輓榿慇樺燁貍僨匱嘖幗綵幘愨摜殞璉皸槃緋緔綾綺綬綹緄綣綳綰綞緇蔆覡賕賑輒銬銪鋮鉺銱鋣銠銦鋌銓銖銩鉿錚銚銫銃銣銨蔴僳嘍嶁巰摣箠槨漵箏緍蔞僱慴瘉氳膃戩鞀髩",
"15": "皚罷輩鋇編標撥層廠徹撐遲齒廚鋤瘡賜撣憚彈蕩導敵締調賭緞餓範誹廢墳憤鋒膚撫賦鞏劊輥緩輝緝價駕緘儉踐賤劍澗漿槳獎膠澆嬌駒劇潔課褲儈潰撈澇樂憐練輛諒遼凜劉樓魯慮輪論碼罵賣邁貓冪緬廟憫撓鬧餒撚諾歐毆盤賠噴潑撲鋪遷潛請慶窮確熱銳潤賞審駛樞豎數誰慫撻談歎銻駝橢緯衛蕪蝦賢險線銷寫鋅噓選鴉樣窯遺儀億誼瑩憂緣閱暫賬摯幟質皺豬諸駐樁諄銼嘰戯儅餘嘸墰嶴廡憮蕓穀鄴敺儂劌颳噝樅氂甌蝨槼鄶駔駙駘駟噅噠嘵嬈嶠縂撟殤潯衚蕘蕎蕁蕒鴆鴇頫嘮嫺嶗噁曄潿蕕諏諛諑諉諗諂誶閫閬餑嬋慙慼樑慾澠墝賚鋏麩璡憒槧毿蝟緙緗緹緲緱緶緦縋潟蕆醃蕢褳賫賡輦賧輞輟輜舖鋱鋥鋰鋯銹鋨鋶錒鋟鋃鋦靚頡頦頜潁魷魴翬擕潷辤廝瘞篋踡鋂澂鋜",
"16": "辦鮑憊艙熾醜錘錯擔擋燈澱諜錠獨噸奮縫諷輻縛鋼館龜鍋駭橫還謊諱獲機積輯薊劑頰撿薦鍵餞頸靜舉據鋸錦墾窺賴勵曆龍盧擄錄駱螞瞞錨錳謎謀膩濃頻憑樸錢薔橋親薩篩燒輸樹壇燙縧頭頹鴕謂錫鍁縣餡憲蕭曉嘯諧興學勳鴨閹閻諺鴦頤彜憶隱螢營穎擁踴嶼鴛擇澤戰鍺築磚錐濁鄺儘璣儕嶧懌曇霑燉麅縐餚錶諢鍆隷儔鬨噦噲噥薑澮獪瞘篤薈螘駢橈獫緻薟賮鴣鴝鴟鴞燜縈謔謁諫諼諤諳諦諮諞諭醖閾閿閶閽閼舘餛諝餜儐殫燄禪篳螄諡錸黿縉嬡噯磧穌篠縟縝縞縭縊縑靦懞簑蕷覦輳鍩錁錛鋻錆鍀錕鍃錮錇錈錟錙頷鮁鮒鮃鮎鮐墻嬙糢橰瘺窶镟篛錼骾鮌廩懍燐",
"17": "襖幫謗繃斃濱擯燦償騁儲聰膽檔點鍍鍛糞擱鴿購韓鴻環燴擊績擠濟艱檢講矯舊駿顆懇虧擴闊藍闌濫禮隸聯斂臉療臨嶺簍縷鎂彌擬獰擰濘膿謙牆鍬趨賽澀聲濕聳雖縮擡濤謄濰甕戲轄嚇鮮謝壓謠嬰應優輿禦轅嶽醞鍘齋氈輾蟄擲鍾謅燭賺贅總縱嬭嚮壙獷襍縴餳歟霛磯闈璵嚀闆癘邇擧嚌檉櫛澩薺盪藎濜幬檜濬膾覬齔殮凟蹌鴰鴯鵂礄褻賸餵嶸匵癆癇縶襇謨謖謐闃濶餷闋颶餿餽嬪轂谿癉蹕曖縯璦簀糝縹縵縲繆繅蟈覯賻鍥鍇鍔鍤鍫鍶鎪鍰鎄鮫鮚鮭鮞鮪襆屨檣餱耬螻蟎魎檁嬤繈臒",
"17": "濕襖幫謗繃斃濱擯燦償騁儲聰膽檔點鍍鍛糞擱鴿購韓鴻環燴擊績擠濟艱檢講矯舊駿顆懇虧擴闊藍闌濫禮隸聯斂臉療臨嶺簍縷鎂彌擬獰擰濘膿謙牆鍬趨賽澀聲濕聳雖縮擡濤謄濰甕戲轄嚇鮮謝壓謠嬰應優輿禦轅嶽醞鍘齋氈輾蟄擲鍾謅燭賺贅總縱嬭嚮壙獷襍縴餳歟霛磯闈璵嚀闆癘邇擧嚌檉櫛澩薺盪藎濜幬檜濬膾覬齔殮凟蹌鴰鴯鵂礄褻賸餵嶸匵癆癇縶襇謨謖謐闃濶餷闋颶餿餽嬪轂谿癉蹕曖縯璦簀糝縹縵縲繆繅蟈覯賻鍥鍇鍔鍤鍫鍶鎪鍰鎄鮫鮚鮭鮞鮪襆屨檣餱耬螻蟎魎檁嬤繈臒",
"18": "翺擺鎊邊蟬蟲雛礎闖叢竄禱斷鵝額豐鎬歸櫃穢雞繭簡檻濺醬鵑謹燼曠壘離鯉鏈糧獵餾隴濾謾謬攆聶鎳檸臍騎翹竅瓊軀擾繞繕嬸繩雙擻鎖題鎢霧瀉顔藥醫藝蠅雜鎮織職轉蹤鎸鼕檯謳毉癤餼鬆濼檾蟣釐懟懕瀏禰鞦蠆闓贄騐嚙瀋燾襠鎧鏵鎩鬩騏騍騅櫂瞼繢蟯襝觴蹠鵓鵒鵜鵠鵐攄霤瀅耮鎣謫闔闐闕韙韞饃颼饈檳殯瀦燻簞甖臏鯗嚕擼擷璿簣繒繚聵覲覰賾鏌鎘轆鎦鎰鎵顓顏顎鯇鯊鯽鎔穡藪懣蹣繙燿",
"19": "藹礙癟瀕鏟懲癡寵疇櫥辭顛犢關懷壞繪譏繳轎鯨鏡礦臘懶類麗瀝簾嚨壟攏蘆廬羅饅難龐鵬騙蘋譜簽勸鵲騷識獸爍蘇獺譚襪穩蠍繡嚴癢蟻繹願蘊韻贊贈轍證璽聼嚦壢藶隴壚瀘嚥櫟艤覈礪躉鶇厴鏇蟶牘鏗騗騖騭曡蹺醯穨鵪鵯鵡鶓鶉躂櫧瀠瀟簫羆藺譖譙譎鏘闞饉韜鏤譆櫫蘄襤觶嬾瀨氌櫞櫓繾繰繮繯轔鏨贋鏢鏜鏍鏑鏞鏝顙鏃鯖鯤鯫鯢鯛鯪鯧鯝鯡鯔鯴鯰贇簷羶騣韝",
"20": "寶辮攙闡襯籌觸黨礬護饑繼艦競覺饋攔籃蘭瀾礫鐐齡爐飄譴饒鰓贍釋騰犧鹹獻響懸議譯贏譽竈齣懺懽纊嚨壟寵龐櫪瀧蘢騶櫨臚鐘闥驊孃癥蠔獼糲聹蠣鐃鐋嚳蠐鐒鐧饗櫬櫸竇繽驀騮驁騫騸齙齟齠嚶攖瀲蘞衊鐨鶘鶚鶿鶻鶥鶩蠑譫饌飃饊譟顢鹺鐔蘚鐝鐓鏷鐠鐙鏹鰌鰈鰒鯿鰐鰉鰠髏",
Expand Down
2 changes: 1 addition & 1 deletion src/cnchar/plugin/trad/dict/trad-simple.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/cnchar/plugin/trad/dict/wubi-trad.json
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,7 @@
"橢": "SBDE",
"溫": "ILWL",
"溼": "IGXF",
"濕": "IJXO",
"遊": "YTBP",
"毿": "CCCN CCCE",
"殫": "GQKF",
Expand Down

0 comments on commit 54cdfe0

Please sign in to comment.