Skip to main content

bId

deno doc codecov

Denoで作られた、IMEユーザー辞書統一出力ツール。
すべてのIMEユーザー辞書を一つのファイルから作成することを目標にしています。

対応言語

  • 日本語

対応IME

  • Google Japanese IME
  • macOS Japanese Input Method
  • Gboard
  • Microsoft IME

IMEユーザー辞書テーブル

IME名 データ形式 ジャンル名は設定できるか 品詞は設定できるか
Google IME TSV
macOS Japanese Input Method CSV
Gboard TSV
Microsoft IME TSV

提供手段

  • API
  • CLI
  • Web App

インストール方法

deno install --allow-read --allow-write --allow-run -n bid https://deno.land/x/bid/cli.ts

使用方法

すべての対応IMEユーザー辞書を出力

bid --dir=test/mock --all

特定の対応IMEユーザー辞書を出力

bid --dir=test/mock --google --macos --microsoft --gboard

出力したユーザー辞書ファイル群を圧縮

bid --dir=test/mock --all --compress

GitHub Actionsでの設定例

name: Build IME dictionary
on:
  pull_request:
    types: [closed]

jobs:
  upload:
    if: github.event.pull_request.merged == true
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Setup Deno
        uses: denolib/setup-deno@v2
        with:
          deno-version: v1.x
      - 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
      - name: Archive production artifacts
        uses: actions/upload-artifact@v2
        with:
          name: dictionary
          path: bid_output
          retention-days: 30