From ac9dab2d509af26a8589a78141c7eb65a72c062d Mon Sep 17 00:00:00 2001 From: WhyK Date: Sat, 2 Mar 2024 15:35:11 +0900 Subject: [PATCH 1/2] docs: update GitHub Actions example --- README.md | 6 +++--- README_EN.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 63a2180..6589f18 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Deno - uses: denolib/setup-deno@v2 + uses: denoland/setup-deno@v1 with: deno-version: v1.x - name: Output dictionary data @@ -71,7 +71,7 @@ jobs: deno install --allow-read --allow-write -n bid https://deno.land/x/bid/cli.ts bid --dir=test/mock --all - name: Archive production artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: dictionary path: bid_output diff --git a/README_EN.md b/README_EN.md index 7993892..76f4b5c 100644 --- a/README_EN.md +++ b/README_EN.md @@ -63,9 +63,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Deno - uses: denolib/setup-deno@v2 + uses: denoland/setup-deno@v1 with: deno-version: v1.x - name: Output dictionary data @@ -73,7 +73,7 @@ jobs: deno install --allow-read --allow-write -n bid https://deno.land/x/bid/cli.ts bid --dir=test/mock --all - name: Archive production artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: dictionary path: bid_output From f9092c8632839ee34db411f8a526e6c6bd7a69a7 Mon Sep 17 00:00:00 2001 From: WhyK Date: Sat, 2 Mar 2024 15:57:15 +0900 Subject: [PATCH 2/2] docs: add example --- .gitignore | 6 ++-- README.md | 17 +++++++--- README_EN.md | 15 ++++++--- example/input/bid-example.ods | Bin 0 -> 11581 bytes example/input/bid-example.xlsx | Bin 0 -> 18266 bytes example/input/raw/bid-example.csv | 4 +++ example/input/raw/bid-example.json | 29 ++++++++++++++++++ .../bid-example/bid-example-gboard.txt | 3 ++ .../bid-example/bid-example-googleime.txt | 3 ++ .../bid-example/bid-example-macosime.txt | 3 ++ .../bid-example/bid-example-microsoftime.txt | Bin 0 -> 278 bytes example/output/bid_output_archive.zip | Bin 0 -> 1849 bytes 12 files changed, 69 insertions(+), 11 deletions(-) create mode 100644 example/input/bid-example.ods create mode 100644 example/input/bid-example.xlsx create mode 100644 example/input/raw/bid-example.csv create mode 100644 example/input/raw/bid-example.json create mode 100644 example/output/bid_output/bid-example/bid-example-gboard.txt create mode 100644 example/output/bid_output/bid-example/bid-example-googleime.txt create mode 100644 example/output/bid_output/bid-example/bid-example-macosime.txt create mode 100644 example/output/bid_output/bid-example/bid-example-microsoftime.txt create mode 100644 example/output/bid_output_archive.zip diff --git a/.gitignore b/.gitignore index 1f48ca7..feda6fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .DS_Store -coverage/ -bid_output/ -bid_output_archive.zip +/coverage/ +/bid_output +/bid_output_archive.zip diff --git a/README.md b/README.md index 6589f18..213e27b 100644 --- a/README.md +++ b/README.md @@ -32,20 +32,29 @@ Denoで作られた、IMEユーザー辞書統一出力ツール。 deno install --allow-read --allow-write --allow-run -n bid https://deno.land/x/bid/cli.ts ``` +## 対応ファイル形式 +以下の入力ファイル形式に対応しています。 + +- CSV +- JSON + +また、Microsoft Excelなどの表計算ソフトウェアでの利用を想定し、`.xlsx`と`.ods`の実例ファイルも同梱しています。 +詳しくは`example/input`を確認してください。 + ## 使用方法 ### すべての対応IMEユーザー辞書を出力 ``` bash -bid --dir=test/mock --all +bid --dir=example/input/raw --all ``` ### 特定の対応IMEユーザー辞書を出力 ``` bash -bid --dir=test/mock --google --macos --microsoft --gboard +bid --dir=example/input/raw --google --macos --microsoft --gboard ``` ### 出力したユーザー辞書ファイル群を圧縮 ``` bash -bid --dir=test/mock --all --compress +bid --dir=example/input/raw --all --compress ``` ## GitHub Actionsでの設定例 @@ -69,7 +78,7 @@ jobs: - name: Output dictionary data run: | deno install --allow-read --allow-write -n bid https://deno.land/x/bid/cli.ts - bid --dir=test/mock --all + bid --dir=example/input/raw --all - name: Archive production artifacts uses: actions/upload-artifact@v4 with: diff --git a/README_EN.md b/README_EN.md index 76f4b5c..6b21925 100644 --- a/README_EN.md +++ b/README_EN.md @@ -34,20 +34,27 @@ The goal is to create all IME user dictionaries from a single file. deno install --allow-read --allow-write --allow-run -n bid https://deno.land/x/bid/cli.ts ``` +## Input File Extensions Support +- CSV +- JSON + +Example files in `.xlsx` and `.ods` are included for use with spreadsheet software such as Microsoft Excel. +Please check `example/input` for details. + ## Usage ### All dictionaries ``` bash -bid --dir=test/mock --all +bid --dir=example/input/raw --all ``` ### Specific dictionaries ``` bash -bid --dir=test/mock --google --macos --microsoft --gboard +bid --dir=example/input/raw --google --macos --microsoft --gboard ``` ### Compress dictionaries ``` bash -bid --dir=test/mock --all --compress +bid --dir=example/input/raw --all --compress ``` ## Build dictionary workflow example @@ -71,7 +78,7 @@ jobs: - name: Output dictionary data run: | deno install --allow-read --allow-write -n bid https://deno.land/x/bid/cli.ts - bid --dir=test/mock --all + bid --dir=example/input/raw --all - name: Archive production artifacts uses: actions/upload-artifact@v4 with: diff --git a/example/input/bid-example.ods b/example/input/bid-example.ods new file mode 100644 index 0000000000000000000000000000000000000000..37bb64992ec7e4f9c08847d4191dc4ba404cab88 GIT binary patch literal 11581 zcmd^lWmsLy(kAZi7TjF|!3hKjt{a!&uyHo7!JXi)!QI`06Fj&(!Ciw6+&kyXIrll| z&dl$r{q(ZE>h0CFs^9L_RSMFOP*`AKaA05>3eBXmARF%gR8Bv zzOAjLxuL#;xs5f8leH1EjXua6#B5`0Y;9y?=xAkZ?Z6DOwKvu`0+|^bJ1G1Gvj!l2L~4y7f(-5ueCfs7p3cb2LpqZ zkrWkHaalN;4~fa)#(-I?cFexV$-40#m$f~zwiy$R*fSw_tM{gt(PvcoMJAJ9huG&DHjB!X3488F81-zr9o|YXpQ)_H7z5xk_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xAnxU6uq3##`LqHr?JD1JJLu^;_&;MvOnFT>PizpO>iwB}Uq`dwQcLl|xBq)=`%kSuQ_f!-NJ{lr zmi|NYpD5{feR|Y?-|hb(sK376-+EwRuU-GQB>oM~p9$-qab79ww~YM_&R+@apOIea z;kUrk{C&&*O&0%*^4E3={SC^W3GSb9{`xe|e}nUz@cwU6%KirBHv#?|<&W<0=WhB+ ffxl(*1?6uEQ9&9S=Jhtzm*42ixTZn(diK8ng|w0d literal 0 HcmV?d00001 diff --git a/example/input/bid-example.xlsx b/example/input/bid-example.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..997d005bd47b21469e6759d114b0512eaa5271ec GIT binary patch literal 18266 zcmeI42T)Yawx|h`1Odr{1j#uI_>+{JBnV2*ISd$(G$aFAL_oa|y|)!nPBd+TcAo}t1bBqYQlF0wYl z`k{~m*FJ7SwjLmmy}Rc<5kVi2TS@G7p)=RWL;EClm^lOHt_l&v_H@@8&8@e$mWi3x zi-``(u5MDNb%%Sfx=SdrO6st=GgtG3D>EW-YM$}g8?_io z37%2fEhjJReQ|*-{PQJ<)h$6VDT!D?ipHHFIr-o#he|FUvwm4ujcb~BDJ~J*pb!iu zK^EVm=_+83bPWOn}PeT5zJm3qjap(GnV!EH;;{NxS=#p|l} z5rZ;waKeNPM^BEKYTp^-*Mbzb3EjTfB4u9Ce&`7!_mb&+@x7kJ#x}dU;Xh;t7I>%pi-vAiLI^(OPOf@*W@T4lE|LUY zQJ1FJm)6xJAbh)*vLB6&g_VVag{Auso08#MQ`+6N_I7r6yeH%Za#Q+tEg}e9!wtIJ z$A!s}57D@-W^gsHcou4YJms^~V>qBlCfpPgQ!Vb&tEJR+meYB;QeIJ1f}d>hWYso% zZ+oc@%;guAIJFWy5=^W>7@WOLuQ@MKhxDpRv(P-RR(HeL^H~?;8DISdVOOZ;54{%CG()a~%?Aa)C=VP9o8Ct31})gaIxx zlaf!rUR(md$Asn~gSqBd`){0II}<)&H)b&*RxFK;mmb&SxyGnw^ba z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v b/example/input/raw/bid-example.csv new file mode 100644 index 0000000..2c3ec6d --- /dev/null +++ b/example/input/raw/bid-example.csv @@ -0,0 +1,4 @@ +type,word,reading,isSuppress,isSuggest,description +人名,Ryan Dahl,らいあんだーる,NO,NO,Node.jsやDenoの生みの親 +人名,Brendan Eich,ぶれんだんあいく,NO,NO,JavaScriptの生みの親 +人名,Linus Benedict Torvalds,りーなすべねでぃくととーばるず,NO,YES,Linuxカーネルの生みの親 \ No newline at end of file diff --git a/example/input/raw/bid-example.json b/example/input/raw/bid-example.json new file mode 100644 index 0000000..786dece --- /dev/null +++ b/example/input/raw/bid-example.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://cdn.jsdelivr.net/gh/windchime-yk/bid@v1.0.0/schema.json", + "dictionaries": [ + { + "type": "人名", + "word": "Ryan Dahl", + "reading": "らいあんだーる", + "isSuppress": "NO", + "isSuggest": "NO", + "description": "Node.jsやDenoの生みの親" + }, + { + "type": "人名", + "word": "Brendan Eich", + "reading": "ぶれんだんあいく", + "isSuppress": "NO", + "isSuggest": "NO", + "description": "JavaScriptの生みの親" + }, + { + "type": "人名", + "word": "Linus Benedict Torvalds", + "reading": "りーなすべねでぃくととーばるず", + "isSuppress": "NO", + "isSuggest": "YES", + "description": "Linuxカーネルの生みの親" + } + ] +} diff --git a/example/output/bid_output/bid-example/bid-example-gboard.txt b/example/output/bid_output/bid-example/bid-example-gboard.txt new file mode 100644 index 0000000..1ab61c5 --- /dev/null +++ b/example/output/bid_output/bid-example/bid-example-gboard.txt @@ -0,0 +1,3 @@ +らいあんだーる Ryan Dahl ja-JP +ぶれんだんあいく Brendan Eich ja-JP +りーなすべねでぃくととーばるず Linus Benedict Torvalds ja-JP diff --git a/example/output/bid_output/bid-example/bid-example-googleime.txt b/example/output/bid_output/bid-example/bid-example-googleime.txt new file mode 100644 index 0000000..1f5b99e --- /dev/null +++ b/example/output/bid_output/bid-example/bid-example-googleime.txt @@ -0,0 +1,3 @@ +らいあんだーる Ryan Dahl 人名 +ぶれんだんあいく Brendan Eich 人名 +りーなすべねでぃくととーばるず Linus Benedict Torvalds サジェストのみ diff --git a/example/output/bid_output/bid-example/bid-example-macosime.txt b/example/output/bid_output/bid-example/bid-example-macosime.txt new file mode 100644 index 0000000..06d5082 --- /dev/null +++ b/example/output/bid_output/bid-example/bid-example-macosime.txt @@ -0,0 +1,3 @@ +らいあんだーる,Ryan Dahl,人名 +ぶれんだんあいく,Brendan Eich,人名 +りーなすべねでぃくととーばるず,Linus Benedict Torvalds,人名 diff --git a/example/output/bid_output/bid-example/bid-example-microsoftime.txt b/example/output/bid_output/bid-example/bid-example-microsoftime.txt new file mode 100644 index 0000000000000000000000000000000000000000..3bf71ef4cf5517e4a13fb0312b3e6c3da81715f9 GIT binary patch literal 278 zcmY+9OAY}+6h-f}CDyVA;d8eL_Ee%~B+2fsiI%pz69~MOzony@4;8M@G9n`UahapOsBE*J9wN++WSgvV# z+U5}Rkg<+p8aBjp5oGVYH?@KZ2I79GRpqgEOKG4xAJHFiC$A|xOgQI=WiiKEclxsJ qieFQY#ZpE^%}R}ivP@@0O4{-ZGX6|y_?`OcTH!3#l{fkSe(?f2l|;M% literal 0 HcmV?d00001 diff --git a/example/output/bid_output_archive.zip b/example/output/bid_output_archive.zip new file mode 100644 index 0000000000000000000000000000000000000000..01ae18701992a3f6976d9f9a66f3521e86225ce0 GIT binary patch literal 1849 zcmWIWW@h1H00GXjqzEtrN^mpCFeGKB#OIfm6qJ_ehlX%6FfZKuC>4ZDE4UdLS-vtd zFtCUKl?UK7L>$!+pn1Bf6^Xe8IjIB<1R2Z$c9phS_2zv*o*2+RW84NJ8Lpd~nOu}# zoS#;bnVYItQc;4>^`U*fdUI_)470TWv3=y?M082dzP(r3pX>fE6Y2` zd*`5MjN^w}3Moc2PtN}NzwZ6d8<#FTooIV+=kjJXp)ZMnEf+11@$l(=t-0+e%UvO{ zs72E$C!=KhDIM<9rn>&OWs>BKt_AuWZmZC1dNcp~vM_^#4tMysuClq7r^)-}nes2? zcUQ7c@d=-^Oo}|S@!H&dx5|#L&pej2(#>^e(B*)2R|GXPSI1BInC^9W{a53yha%T# z=l?0)2M&8gP_5l`F>(els5Stx0dYZB~NHi~J+;`cv-ODbro8avqck9jT9aR>tn0eo*Q|gus;_LDFqN-!BAW zed0nOH!(TCn1}$VzH{a0j*U+XlP^DBcCueu+$Qhd=N&7f)mIo9`X5v^RCa%Ua$T&y z`j;ZxygT1^tYlxs=3>@Z`t`Mi=+b9P8ANxdsihwfH7{*ElNs}MN8z)_$L97+U$@JP z`L|=EkdyVDI-__jN@vZRjr{le69iH|}hc^g#lrdkJb-Z`8 zMXk|iuWr#fL7#(yjV61GIDP6qB~%>LwJ?nl=vPK2Ic8ktlLXMuARxf-))7Rblvb>e z(h8%b!fl{91G0gxs0JbxF2IrtpW%q4h+1yJ3};|i(l`yb;Yb!?DaDAh7_}6DSPU#X zffgSGQb@ssWSKq^TNkZNAkJ3QoQG`dVJ4z%Ma_rAS&EwekuBZCOq8X_xdE4ztZcx* PV_*ZqR-jMjv4D60t@&>} literal 0 HcmV?d00001