YAGIRO — Text identity and key normalization practice collection
YAGIRO — 文字の違いとキー正規化の練習セット

24 fictional input, source-note, worked-report, manual-record and reference files. Read the corresponding English or Japanese guide before choosing an input and operation. MANIFEST.json records every file's role, byte count and SHA-256. The set contains deliberate refusal inputs as well as accepted examples.
24点の架空入力、原票の説明、解答レポート、手動記録、参照資料を収録しています。日英の対応ガイドを読んでから入力と操作を選んでください。MANIFEST.jsonに各ファイルの役割、バイト数、SHA-256を記録しています。受理する例と、意図的に拒否を確かめる入力の両方があります。

Exercise folders / 演習フォルダー
text/composed-forms/ — Use NFC. Compare canonically related spellings and preserve any exact duplicate rows that were already present. Read the source note before deciding whether records can share an identifier.
text/composed-forms/ — NFCを選びます。正準的に対応する表記と、最初から同じ値だった行を分けて確認します。同じ識別子として扱う判断は原票の説明と照合します。
text/width-forms/ — Use NFKC. Observe compatibility changes, including width differences. The output comparison does not authorize replacing identifiers or merging records.
text/width-forms/ — NFKCを選びます。全角・半角などの互換性による変化を観察します。結果の一致だけで識別子の置換やレコード統合を決めません。
text/edge-whitespace/ — Use trim. Check which characters disappear at the edges and which remain inside or at the edges. An empty result is an observation, not a missing-row repair.
text/edge-whitespace/ — trimを選びます。前後で除かれる文字と、途中や前後に残る文字を確かめます。空文字列になった結果は観察事項で、欠落行の補正ではありません。
text/case-changes/ — Use lowercase. Compare the exact result of JavaScript default lowercasing; it is not a locale-specific match or Unicode case-folding rule.
text/case-changes/ — lowercaseを選びます。JavaScriptの既定の小文字化による結果を比較します。言語別の照合規則やUnicodeのケースフォールディングとは異なります。

In each exercise, keys.json is the JSON string-array input, source-note.txt supplies the fictional context, and expected.json is the complete expected report. Read the report as an answer; it is not the input to the key preview tool. An operation change clears the earlier result, so save or capture that result first if you need it for comparison.
各演習のkeys.jsonはJSON文字列配列の入力、source-note.txtは架空の状況説明、expected.jsonは完全な解答レポートです。レポートをキー比較ツールへ入力しないでください。操作を変えると以前の結果が消えるため、比較に残す場合は先に保存または控えを取ります。

Manual records / 手動記録
text/templates/ contains blank and filled records for text intake and normalization decisions. Edit them by hand to record the source, interpretation, evidence and pending decisions. They are not executable settings or application imports.
text/templates/には、文字列受け取り記録と正規化判断記録の空欄版・記入例があります。入力元、解釈、根拠、判断待ちの事項を手動で記入します。実行用の設定やアプリのインポート形式ではありません。

References / 参照資料
text/reference/input.txt is raw text for the code-point checker. Paste its content as text, without JSON quotes, and compare unicode-report.example.json. The final newline of a text file is part of its input if present; input.txt in this collection has no terminal newline.
text/reference/input.txtはコードポイント点検のテキスト入力です。JSONの引用符を足さず、その内容を貼り付けてunicode-report.example.jsonと比べます。テキストに末尾改行があれば入力の一部になります。このセットのinput.txtには末尾改行がありません。
sample-keys.json is input for the key preview with lowercase. Compare key-report.example.json. unpaired-key.json intentionally contains a decoded lone surrogate; wrong-type.json intentionally contains a nonstring item. Both are refusal examples. The two Draft 2020-12 schemas describe report structure; applying a schema alone does not reproduce or verify the transformation and all derived counts.
sample-keys.jsonはキー比較でlowercaseを選ぶ入力です。key-report.example.jsonと比べます。unpaired-key.jsonは復号後に対応相手のないサロゲートを含み、wrong-type.jsonは文字列でない要素を含みます。どちらも拒否を確認する例です。2点のDraft 2020-12スキーマはレポートの構造を示します。スキーマだけでは変換処理やすべての計算結果を再現・検証できません。

Interpret the reports / レポートの読み方
The character checker records logical code-point positions (one-based), UTF-16 offsets (zero-based) and widths. These counts are not grapheme counts or the number of visible characters. The flags cover JavaScript trim whitespace, Unicode general-category marks/controls/formats and explicitly listed bidi controls, joiners and selected variation-selector ranges. They do not detect every invisible character or decide whether text is appropriate. The browser text box can normalize line endings.
文字点検では論理順のコードポイント位置（1始まり）、UTF-16のオフセット（0始まり）と幅を記録します。書記素や見た目の文字数ではありません。印はJavaScriptのtrim対象、Unicode一般カテゴリのマーク・制御・書式文字、および明示した双方向制御文字・結合用文字・一部の異体字セレクター範囲を対象にします。すべての不可視文字を検出したり、文字の適否を判断したりするものではありません。ブラウザーの入力欄は改行を正規化することがあります。
The key preview applies one selected operation to each original decoded string. It retains every position, shows exact original duplicates separately from output duplicates, and identifies an output group as a new collision only when it contains more than one distinct original string. A group can include both old duplicate rows and a newly converging value. Original and transformed strings appear as ASCII JSON string literals so control and bidirectional characters are not replayed as display instructions.
キー比較は選んだ1つの操作を復号済みの各原文へ適用します。すべての位置を残し、元の完全一致による重複と変換後の重複を分けます。変換後のグループに異なる原文が2種類以上入る場合だけ、新しい衝突と数えます。同じグループに以前からの重複行と新たに一致した値が入る場合もあります。変換前後はASCIIのJSON文字列表記で表示し、制御文字や双方向制御文字を表示上の命令として再現しません。

Limits and sharing / 上限と共有
Raw text: at most 5,000 UTF-16 code units. Key input: at most 100,000 input code units, 1,000 keys, and 256 decoded units per key. Unpaired surrogates are refused. Transformed keys together may contain at most 100,000 units; the serialized key report has a 2,000,000-unit limit. Empty raw text and an empty JSON array are valid. These are local tool bounds, not general limits of Unicode or JSON.
テキスト入力はUTF-16コード単位で5,000まで。キー入力は100,000コード単位、1,000要素、復号後の各キー256コード単位までです。対応相手のないサロゲートは拒否します。変換後の合計は100,000コード単位、キーの保存レポートは2,000,000コード単位までです。空のテキストと空のJSON配列は有効です。これらはツール固有の上限で、UnicodeやJSON全体の制限ではありません。
The screen limits a long ledger to the first 200 points or first 100 keys. The downloaded report is complete. The point ledger reconstructs the analyzed string. The key report reconstructs each decoded original and transformed key, without the JSON document’s original spacing or escape spellings. The reports are not anonymized. Check them before sharing. This collection contains no customer data, hosted API, or authority to change a source system.
長い一覧の画面表示は最初の200コードポイントまたは100キーに限ります。保存するレポートには全件を含めます。コードポイント一覧からは調べた文字列を復元できます。キーのレポートからは復号後の各原文と変換後のキーを復元できますが、元のJSON文書の空白やエスケープの書き方は保持しません。匿名化された資料ではありません。共有前に確認してください。このセットに顧客データ、公開API、元システムを変更する権限は含みません。
