From 73e913e776b6c008495c5716d1862291a2bf15f0 Mon Sep 17 00:00:00 2001 From: EwdErna Date: Thu, 24 Sep 2026 22:47:26 +0900 Subject: [PATCH] =?UTF-8?q?plan:=2060%=20ANSI=E3=81=AE=E3=82=B5=E3=83=B3?= =?UTF-8?q?=E3=83=97=E3=83=AB=E3=82=92=E7=8F=BE=E8=A1=8C=E3=81=AEPHY?= =?UTF-8?q?=E3=82=B9=E3=82=AD=E3=83=BC=E3=83=9E=E3=81=AE=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E3=81=AB=E6=9B=B8=E3=81=8D=E6=8F=9B=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - keys/position/size.width/metadata.label を root/type/transform/size.w/labels に置き換える - 値は変えない。PHYスキーマで検証済み - 旧形式である旨の注記を外し、見出しに抜粋と明記する Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017W6AsoJYTiN3bnxvSMS87f --- implementation-plan.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/implementation-plan.md b/implementation-plan.md index 0a616b1..aab3c70 100644 --- a/implementation-plan.md +++ b/implementation-plan.md @@ -20,9 +20,7 @@ PHYの正本は相対座標の木だが、既存エディタ(KLE, kle-ng)の移 ### データ例 -以下は旧形式(`keys` 配列、`position` / `size.width`)で書かれており、現行のPHYスキーマ(`phase1-json-schema.md`)に合わせた変換が必要。 - -#### 60% ANSI PHY Layer +#### 60% ANSI PHY Layer (抜粋) ```json { @@ -38,20 +36,22 @@ PHYの正本は相対座標の木だが、既存エディタ(KLE, kle-ng)の移 "unitSize": { "x": 19.05, "y": 19.05 } } ], - "keys": [ - // Escape key + "root": [ { - "id": "k00", "profile": "standard", - "position": { "x": 0, "y": 0 }, - "size": { "width": 1, "height": 1 }, - "metadata": { "label": "Esc" } + "type": "key", + "id": "k00", + "profile": "standard", + "transform": { "x": 0, "y": 0, "rotation": 0 }, + "size": { "w": 1, "h": 1 }, + "labels": ["Esc"] }, - // Space bar { - "id": "k60", "profile": "standard", - "position": { "x": 5, "y": 4 }, - "size": { "width": 6.25, "height": 1 }, - "metadata": { "label": "Space" } + "type": "key", + "id": "k60", + "profile": "standard", + "transform": { "x": 5, "y": 4, "rotation": 0 }, + "size": { "w": 6.25, "h": 1 }, + "labels": ["Space"] } ] }