From c048fbab7431468e0efe4a3fa015c3cf0312ef62 Mon Sep 17 00:00:00 2001 From: overtrue Date: Thu, 5 Sep 2024 16:33:02 +0800 Subject: [PATCH] chore: format --- bin/build | 2 +- sources/surnames.txt | 166 +++++++++++++++++++++---------------------- 2 files changed, 84 insertions(+), 84 deletions(-) diff --git a/bin/build b/bin/build index 02dfbc92..e211b665 100755 --- a/bin/build +++ b/bin/build @@ -23,7 +23,7 @@ if (!file_exists($wordsSouce)) { // ------------------------------------------------ $surnames = []; foreach ($surnamesSource as $line) { - [$surname, $pinyin] = explode(',', trim($line)); + [$surname, $pinyin] = explode(':', trim($line)); $surnames[trim($surname)] = join("\t", ["", ...preg_split('/\s+/', trim($pinyin)), ""]); } diff --git a/sources/surnames.txt b/sources/surnames.txt index 4536cd6c..64369034 100644 --- a/sources/surnames.txt +++ b/sources/surnames.txt @@ -1,83 +1,83 @@ -万俟,mò qí -尉迟,yù chí -单于,chán yú -重,chóng -秘,bì -冼,xiǎn -华,huà -过,guō -纪,jǐ -燕,yān -种,chóng -繁,pó -幺,yāo -覃,qín -冯,féng -石,shí -缪,miào -瞿,qú -曾,zēng -解,xiè -折,shè -那,nā -佴,nài -难,nàn -粘,niàn -藏,zàng -扎,zā -翟,zhái -都,dū -六,lù -薄,bó -贾,jiǎ -的,dē -哈,hǎ -居,jū -盖,gě -查,zhā -盛,shèng -塔,tǎ -和,hé -柏,bǎi -朴,piáo -蓝,lán -牟,móu -殷,yīn -陆,lù -乜,niè -乐,yuè -阚,kàn -叶,yè -强,qiáng -不,fǒu -丁,dīng -阿,ā -汤,tāng -万,wàn -车,chē -称,chēng -沈,shěn -区,ōu -仇,qiú -宿,sù -南,nán -单,shàn -卜,bǔ -鸟,niǎo -思,sī -殳,shū -寻,xún -於,yú -烟,yān -余,yú -浅,qiǎn -艾,ài -浣,wǎn -无,wú -信,xìn -许,xǔ -齐,qí -俞,yú -若,ruò -贠,yùn -貟,yùn \ No newline at end of file +万俟: mò qí +尉迟: yù chí +单于: chán yú +重: chóng +秘: bì +冼: xiǎn +华: huà +过: guō +纪: jǐ +燕: yān +种: chóng +繁: pó +幺: yāo +覃: qín +冯: féng +石: shí +缪: miào +瞿: qú +曾: zēng +解: xiè +折: shè +那: nā +佴: nài +难: nàn +粘: niàn +藏: zàng +扎: zā +翟: zhái +都: dū +六: lù +薄: bó +贾: jiǎ +的: dē +哈: hǎ +居: jū +盖: gě +查: zhā +盛: shèng +塔: tǎ +和: hé +柏: bǎi +朴: piáo +蓝: lán +牟: móu +殷: yīn +陆: lù +乜: niè +乐: yuè +阚: kàn +叶: yè +强: qiáng +不: fǒu +丁: dīng +阿: ā +汤: tāng +万: wàn +车: chē +称: chēng +沈: shěn +区: ōu +仇: qiú +宿: sù +南: nán +单: shàn +卜: bǔ +鸟: niǎo +思: sī +殳: shū +寻: xún +於: yú +烟: yān +余: yú +浅: qiǎn +艾: ài +浣: wǎn +无: wú +信: xìn +许: xǔ +齐: qí +俞: yú +若: ruò +贠: yùn +貟: yùn \ No newline at end of file