Skip to content

docs(readme): lead with auto conversion and redraw the figures to read at column width - #160

Merged
miyaoka merged 5 commits into
mainfrom
docs/readme-figures
Nov 15, 2026
Merged

miyaoka merged 5 commits into
mainfrom
docs/readme-figures

Conversation

@miyaoka

@miyaoka miyaoka commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

目的

README を初めて読む人が、tugime が何の入力メソッドかを最初に掴める状態にする。tugime のスタートラインは、ニューラルかな漢字変換で打つそばから自動変換すること(ライブ変換)であり、英語を混ぜても切り替えずに打てることはその上に乗る特徴である。今の README は英語の話から入り、スタートラインが伝わらない。

あわせて、README の図を本文カラム(約 880px)に縮められても読める大きさにする。8 回押す図と変換の仕組みの図は、縮めると要点が読み取れない。

出所: 対話での依頼。

README の上から順に、変更前と変更後を並べた図。冒頭の文は自動変換を先に言う形に変わる。特徴は「英語は英語のまま」「文の流れに合った変換」「Space で区切って英文のように打てる」の 3 節から、「文の流れに合わせて自動変換」(同じ ひいている が前の語で変わる新しい図。比較の表は how-it-works.md へ移る)と「英語まじりでも切り替えずに打てる」(作り直した 8 回押す図)の 2 節になる。変換の仕組みの図は 1860px の斜めのコンベアから、左に利用者が見るもの、右に tugime が自動で行う 4 工程を並べた 1100px の図になる

変更内容

  • ロゴの画像の副題を「ニューラルかな漢字変換のライブ変換IME」にした(scripts/make-hero.ts)
  • README の冒頭の文を「打つそばから、文の流れに合わせて自動変換。英単語を混ぜても切り替えずに打てる macOS の日本語入力です。」にした
  • 特徴を 2 節にし、どちらも図の下に説明を置いた
    • 「文の流れに合わせて自動変換」: 新しい図 docs/images/context.svg を足した。同じ読み ひいている を ピアノ・綱・風邪 の後ろで打ち、tugime が前の語に合わせて 弾いて・引いて・ひいて と変えることを見せる。説明は「tugime は、ニューラルかな漢字変換の入力メソッドです。打つそばから、変換モデルが前後の語を読んで自動変換します。」の 2 文
    • 「英語まじりでも切り替えずに打てる」: 「英語は英語のまま」と「Space で区切って英文のように打てる」をまとめた。8 回押す図(intro.svg)を節の先頭に移し、一般的な日本語入力で文字のほかに押すキー(英数・かな・変換の Space・Enter)を主役にして描き直した
  • 英語を見分けて辞書と統計で変換する方式と tugime を比べる表(Dropbox の同期 / API の仕様)を、README から docs/how-it-works.md の「他の入力方式との違い」に移した
  • 変換の仕組みの図(pipeline.svg)を描き直した。左に利用者が見るもの(打つ → 入力欄に出る)、右に tugime が自動で行う 4 工程と部品の名前を並べる。句読点は工程 2 では打ったままの「.」で、工程 3 で「。」になる。幅は 1860px から 1100px になった
  • 図はどれも tugime-cli の出力から生成し、出力が筋書きと合わないとスクリプトがエラーで止まる。README の図の説明文(alt)が生成した値を含むことも確かめる
  • docs/development.md の生成物の一覧に context.svg を足した

設計判断

  • 自動変換の節は、他の日本語入力との違いではなく、tugime が何であるか(ニューラルかな漢字変換)を示すスタートラインとして書いた。macOS の標準の入力も、日本語だけの文は文脈に合わせて変換するので、この節で他より優れているとは言わない
  • 自動変換の図は tugime の結果だけにした。比較用の方式(英語を見分けて辞書と統計で変換)は Mac の利用者が使うものではないので、README の節では比べない
  • 自動変換の図の例文に ひいている を選んだ。前の語だけを変えて結果が変わることを見せないと、モデルが前の語を読んだのか、その漢字をもともと好むのかを区別できない。pianowo,kodomonokorokarazuttohiiteiru. は、ピアノを外しても綱に替えても tugime が 弾いて を出すので使わなかった
  • 変換の仕組みの図は、工程を斜めの階段に並べる形をやめた。階段では 1 から 4 を利用者が行うようにも読める。左右に分け、右の枠に「tugime が自動で行うこと」と見出しを付けた
  • README の説明文にはキー操作(Shift+Space、もう一度 Space)を書かない。キー操作は README の「使い方」の節と docs/usage.md に任せる

合意事項

  • 特徴の順: 1 番目に「打つそばから変換モデルが文脈に沿って自動変換する」こと(ニューラル変換であることを最初に伝えるスタートライン)、2 番目に「英語まじりでも切り替えが要らない」こと
  • コピー: ロゴの見出し「英語まじりの日本語を、継ぎ目なく。」、副題「ニューラルかな漢字変換のライブ変換IME」(読点と和欧間の空白なし)。README の冒頭の文は「打つそばから、文の流れに合わせて自動変換。英単語を混ぜても切り替えずに打てる macOS の日本語入力です。」
  • 節の見出し: 「文の流れに合わせて自動変換」「英語まじりでも切り替えずに打てる」
  • 自動変換の節は消さない。比べる相手を外し、tugime だけの図にする。比較の表は docs/how-it-works.md に移す
  • 説明文にキー操作(Shift+Space、続けてもう一度 Space)を書かない
  • 「ふつうの日本語入力」ではなく「一般的な日本語入力」と書く
  • README の各節は、図の下に説明を置く構成にする
  • 8 回押す図: 文字のほかに押すキーをキーキャップにし、打つ部分は打ちたい文の語を薄く書いた帯にする試作の形
  • 変換の仕組みの図: ロボットは外し、部品の名前は残す。左に入力から真下に表示への矢印、右に tugime が自動で行う工程を縦に並べる
  • 「候補を選び直す必要はない」「変換キーを押す必要はない」とは書かない(どちらも tugime でも起きる)

未合意の判断

種別 決めたこと 内容
追加 README の表から古い行を消した CPUnohukagatakai. は辞書と統計の変換も今は 負荷 を出し、差が無くなっていた。ピアノの行は、図が前の語で ひいて の表記が変わることを示すので消した。sonokinouhacoming soondesu. の行は、8 回押す図の pull request と同じことを示すので消した
追加 説明文から「後ろに続く語まで見て決めるので、どうきがおそいは同期が遅いになる」を消した kousinnodoukigaosoi. は 動悸 になり、遅い が決め手とは言えないため
追加 変換の仕組みの図から、捨てる区切り(次|p|を回答した)、日本語の候補の数、かいとうした の例、部品「tugime の検査係」を外した 左右に分けた形に収めるため。これらを確かめていた生成スクリプトの処理も消した
解釈 8 回押す図の変換のキーを「Space」と描いた Mac のキーボードに変換キーは無く、Space で変換するため

スコープ外

作業 重要度 行き先 根拠
手書きの表(README の ok / test、how-it-works.md の Dropbox / API)を生成スクリプトから作る 低 独立 表は手書きで、変換が変わると黙って古くなる。今回 CPU の行がそうなっていた
tugime-cli が変換エンジンのログを標準出力に混ぜないようにする 低 独立 図のスクリプトは正規表現で行を選り分けている(scripts/lib/svg.ts に 3 か所、本 PR の make-pipeline.ts に 1 か所)。本 PR より前からある
安全性の節に図を入れる 低 独立 各節に図を入れる方針のうち、特徴と仕組みを先に固めた

完了条件

  • bun scripts/make-hero.ts・bun scripts/make-readme-figures.ts・bun scripts/make-pipeline.ts が終了コード 0 で終わる
  • 3 つを走らせた後、git status --short が空である(コミットした SVG と README の説明文が、今の tugime-cli の出力から生成したものと一致する)

検証

  • このブランチの先頭(80e8f2b)で 3 つのスクリプトを走らせ、どれも終了コード 0 で終わった
  • その後の git status --short の出力は空だった
  • 生成した SVG をライトとダークの両方の配色で Chrome で開き、切れ・はみ出し・重なりが無いことを目で確かめた

確認事項

  • GitHub 上で README を開き、図が本文カラムの幅で読めるか

🤖 Generated with Claude Code

…d at column width

intent(readme): explain first what kind of IME tugime is (neural kana-kanji conversion that converts as you type), then that English can be mixed in without switching
decision(readme): each feature section is a figure followed by its explanation; the two feature sections are "文の流れに合わせて自動変換" and "英語まじりでも切り替えずに打てる"
decision(context-figure): show the same reading ひいている after ピアノ / 綱 / 風邪; the lattice conversion gives 引いて for all three while tugime changes the kanji with the preceding word
rejected(context-figure): pianowo,kodomonokorokarazuttohiiteiru. — tugime gives 弾いて even without ピアノ or after 綱, so it does not show the preceding word deciding the kanji
decision(intro-figure): make the keys pressed besides letters the largest element and replace romaji with the shown words, so the 8 vs 1 difference reads without a legend
decision(pipeline-figure): put what the user sees (typing, then the input field) on the left and the four steps tugime runs automatically on the right, at 1100px wide
rejected(pipeline-figure): steps laid out as a diagonal staircase read as steps the user performs
rejected(readme-copy): "候補を選び直す必要はない" / "変換キーを押す必要はない" — both still happen with tugime
learned(readme): the README tables are not generated, so the CPUnohukagatakai. row went stale (the lattice conversion now also gives 負荷) and was removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@miyaoka miyaoka self-assigned this Nov 15, 2026
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

READMEの製品説明、英語混在入力の説明、変換工程の説明を更新しています。図の生成スクリプトは、入力と変換結果の検証を追加し、工程図、導入図、文脈比較図のSVGを生成するよう変更しています。生成物一覧に context.svg を追加し、ヒーロー画像の表示文言も変更しています。

Merge Risk: Minimal · up to 5e956

This updates the README text and figures and the scripts that generate them. It does not change the product's runtime behavior, and no concrete problem was found. The risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed タイトルは README の冒頭文を自動変換の説明に変えたこと、および図を本文カラム幅で読めるよう描き直したことという、本 PR の主要な変更を具体的に示しています。「docs(readme):」の接頭辞も変更対象と一致します。ただし 86 文字と長めで、図の作り直しを含めると情報量が多い点は軽微な指摘です。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed PR説明は、README冒頭の再編、ロゴ副題、特徴の2節化、context.svgの追加、変換の仕組みの図の描き直し、各スクリプトの完了条件など、変更内容と直接関係する具体的な情報を含んでいる。変更範囲とも一致しており、無関係な内容は含まれていない。
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bb7ac835-51e9-4338-ada0-175dba6186e4
Commits

Reviewing files that changed from the base of the PR and between 35d9884 and 5e95634.

Files ignored due to path filters: 4

  • docs/images/context.svg is excluded by !**/*.svg
  • docs/images/hero.svg is excluded by !**/*.svg
  • docs/images/intro.svg is excluded by !**/*.svg
  • docs/images/pipeline.svg is excluded by !**/*.svg
Files selected for processing: 5

  • README.md
  • docs/development.md
  • scripts/make-hero.ts
  • scripts/make-pipeline.ts
  • scripts/make-readme-figures.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

…board

decision(context-figure): name the lattice column "英語を見分けて辞書と統計で変換" with the same wording as the demo and how-it-works, and describe it as choosing by word frequency and adjacent part-of-speech pairs
decision(pipeline-figure): keep the typed "." in step 2 and show "。" from step 3, where the punctuation form is decided by the language of the preceding segment
decision(intro-figure): label the conversion key "Space"; a Mac keyboard has no 変換 key
decision(readme): say that Shift+Space shows candidates and ← → moves between segments, since mid-typing Shift+Space selects the first segment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@miyaoka
miyaoka force-pushed the docs/readme-figures branch from 6f36ac3 to 5e95634 Compare November 15, 2026 06:57
@miyaoka
miyaoka marked this pull request as ready for review November 15, 2026 06:57
miyaoka and others added 3 commits November 15, 2026 16:10
… not as a contrast with other IMEs

intent(readme): the section is the starting line that says tugime is a neural kana-kanji IME; macOS live conversion also converts Japanese-only text by context, so it is not a difference from the standard Mac input
rejected(readme): contrasting with "ふつうの日本語入力" that picks per word — macOS (neural language model since Catalina) and ATOK (deep learning since 2017) do not fit that description
rejected(readme): removing the section — the neural conversion has to be stated first

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the lattice comparison to how-it-works

intent(readme): the auto conversion section states the starting line (tugime is a neural kana-kanji IME), not a difference from other IMEs
decision(context-figure): drop the lattice column; the same reading ひいている changing with the preceding word shows the model reading context on its own
decision(how-it-works): move the Dropbox / API table under the comparison of input methods, where the lattice method is already described
rejected(context-figure): comparing with the lattice method in the README — it is an internal baseline that Mac users do not use

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eject keystrokes without a preceding word

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant