plan: 60% ANSIのサンプルを現行のPHYスキーマの形式に書き換える
- keys/position/size.width/metadata.label を root/type/transform/size.w/labels に置き換える - 値は変えない。PHYスキーマで検証済み - 旧形式である旨の注記を外し、見出しに抜粋と明記する Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017W6AsoJYTiN3bnxvSMS87f
This commit is contained in:
+14
-14
@@ -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
|
```json
|
||||||
{
|
{
|
||||||
@@ -38,20 +36,22 @@ PHYの正本は相対座標の木だが、既存エディタ(KLE, kle-ng)の移
|
|||||||
"unitSize": { "x": 19.05, "y": 19.05 }
|
"unitSize": { "x": 19.05, "y": 19.05 }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"keys": [
|
"root": [
|
||||||
// Escape key
|
|
||||||
{
|
{
|
||||||
"id": "k00", "profile": "standard",
|
"type": "key",
|
||||||
"position": { "x": 0, "y": 0 },
|
"id": "k00",
|
||||||
"size": { "width": 1, "height": 1 },
|
"profile": "standard",
|
||||||
"metadata": { "label": "Esc" }
|
"transform": { "x": 0, "y": 0, "rotation": 0 },
|
||||||
|
"size": { "w": 1, "h": 1 },
|
||||||
|
"labels": ["Esc"]
|
||||||
},
|
},
|
||||||
// Space bar
|
|
||||||
{
|
{
|
||||||
"id": "k60", "profile": "standard",
|
"type": "key",
|
||||||
"position": { "x": 5, "y": 4 },
|
"id": "k60",
|
||||||
"size": { "width": 6.25, "height": 1 },
|
"profile": "standard",
|
||||||
"metadata": { "label": "Space" }
|
"transform": { "x": 5, "y": 4, "rotation": 0 },
|
||||||
|
"size": { "w": 6.25, "h": 1 },
|
||||||
|
"labels": ["Space"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user