Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Use sentence case for English field labels

shinshin8643fb64cb7a9a
diff --git a/e2e/editor.spec.ts b/e2e/editor.spec.ts
index a494dbe..b584109 100644
--- a/e2e/editor.spec.ts
+++ b/e2e/editor.spec.ts
@@ -68,7 +68,7 @@ test('rebuilds from cached assets, marks cut-outs stale, and sweeps angles', asy
await page.getByRole('slider', { name: 'Turn left/right', exact: true }).focus();
await page.getByRole('slider', { name: 'Turn left/right', exact: true }).press('End');
await page.getByTestId('part-eyes').click();
- await page.getByText(`1 · opening (${fixture.eyes[0].opening.length})`, { exact: true }).click();
+ await page.getByText(`1 · Opening (${fixture.eyes[0].opening.length})`, { exact: true }).click();
await page.getByRole('spinbutton', { name: 'eyes.0.opening.0.0', exact: true }).fill('451');
await expect(page.getByText(/Outlines changed/)).toBeVisible();
await expect.poll(async () => Number(await canvas.getAttribute('data-revision'))).toBeGreaterThan(revision + 1);
diff --git a/e2e/preview-editing.spec.ts b/e2e/preview-editing.spec.ts
index ff4ce3e..301a170 100644
--- a/e2e/preview-editing.spec.ts
+++ b/e2e/preview-editing.spec.ts
@@ -37,7 +37,7 @@ test('strand and head drags change inspector, saved JSON and frozen preview pixe
expect(hash(await preview.screenshot())).toBe(hash(before));
revision = Number(await preview.getAttribute('data-revision'));
await drag(page, [445, 340], [40, -10]);
- await page.getByText(`nodes (${fixture.strands[0].nodes.length})`, { exact: true }).click();
+ await page.getByText(`Nodes (${fixture.strands[0].nodes.length})`, { exact: true }).click();
await expect(page.getByRole('spinbutton', { name: 'strands.0.nodes.2.0', exact: true })).toHaveValue('485');
await expect(page.getByRole('spinbutton', { name: 'strands.0.nodes.2.1', exact: true })).toHaveValue('330');
await expect.poll(async () => Number(await preview.getAttribute('data-revision'))).toBeGreaterThan(revision);
@@ -96,7 +96,7 @@ test('angle sliders retain the rendered pose after rebuilding and stopping a swe
const front = hash(await preview.screenshot());
await page.getByRole('slider', { name: 'Turn left/right', exact: true }).press('End');
await page.getByTestId('part-eyes').click();
- await page.getByText(`1 · opening (${fixture.eyes[0].opening.length})`, { exact: true }).click();
+ await page.getByText(`1 · Opening (${fixture.eyes[0].opening.length})`, { exact: true }).click();
revision = Number(await preview.getAttribute('data-revision'));
await page.getByRole('spinbutton', { name: 'eyes.0.opening.0.0', exact: true }).fill('451');
await expect.poll(async () => Number(await preview.getAttribute('data-revision'))).toBeGreaterThan(revision);
diff --git a/e2e/usability.spec.ts b/e2e/usability.spec.ts
index 436726c..d2bd60c 100644
--- a/e2e/usability.spec.ts
+++ b/e2e/usability.spec.ts
@@ -90,15 +90,15 @@ test('handles have human names and line editing, zoom, pan and fit remain availa
await page.getByTestId('part-head').click();
const center = await canvasPoint(page, 615, 400);
await page.mouse.move(center.x, center.y);
- await expect(page.getByRole('tooltip')).toHaveText('Head turn · centre');
+ await expect(page.getByRole('tooltip')).toHaveText('Head turn · Centre');
await expect(canvas).toHaveCSS('cursor', 'grab');
await page.screenshot({ path: 'docs/screenshots/ui-handle-tooltip.png' });
await page.getByTestId('part-strands').click();
const middle = await canvasPoint(page, 485, 190);
await page.mouse.dblclick(middle.x, middle.y);
- await expect(page.getByText('nodes (5)', { exact: true })).toBeVisible();
+ await expect(page.getByText('Nodes (5)', { exact: true })).toBeVisible();
await page.keyboard.down('Alt'); await page.mouse.click(middle.x, middle.y); await page.keyboard.up('Alt');
- await expect(page.getByText('nodes (4)', { exact: true })).toBeVisible();
+ await expect(page.getByText('Nodes (4)', { exact: true })).toBeVisible();
const scale = Number(await canvas.getAttribute('data-scale'));
await page.mouse.wheel(0, -200);
await expect.poll(async () => Number(await canvas.getAttribute('data-scale'))).toBeGreaterThan(scale);
diff --git a/src/editor/i18n.tsx b/src/editor/i18n.tsx
index 67dbcf1..70d26de 100644
--- a/src/editor/i18n.tsx
+++ b/src/editor/i18n.tsx
@@ -37,7 +37,7 @@ const en = {
invalidRig: 'Could not open the rig file. Check the JSON and these field paths:',
invalidFolder: 'Could not open this folder. Include source.png, rig.json, layers.json and every cut-out image.',
invalidValue: 'Check the values at these field paths:', point: 'point', node: 'node', strand: 'Strand', eye: 'Eye',
- accessory: 'Accessory', x: 'x', y: 'y', px: 'px',
+ accessory: 'Accessory', x: 'X', y: 'Y', px: 'px',
};
const ja: typeof en = {
product: 'Mesh Avatar Studio', subtitle: 'イラストの動く範囲を調整',
@@ -102,16 +102,16 @@ const partText: Record<Language, Record<PartGroup, [string, string, string]>> =
};
const fieldText: Record<string, [string, string]> = {
image: ['Source image', '元画像'],
- center: ['centre', '中心'], pivot: ['pivot', '支点'], rx: ['horizontal radius', '横の半径'], ry: ['vertical radius', '縦の半径'],
+ center: ['Centre', '中心'], pivot: ['Pivot', '支点'], rx: ['Horizontal radius', '横の半径'], ry: ['Vertical radius', '縦の半径'],
cx: ['Centre X', '中心の横位置'], cy: ['Centre Y', '中心の縦位置'], shiftX: ['Horizontal travel', '横の移動量'], shiftY: ['Vertical travel', '縦の移動量'],
pivotX: ['Pivot X', '支点の横位置'], pivotY: ['Pivot Y', '支点の縦位置'], maxRoll: ['Maximum tilt', '最大の傾き'],
weightBand: ['Head blend range', '頭の影響範囲'], turnBand: ['Turn blend range', '顔の向きの影響範囲'], breathBand: ['Breathing range', '呼吸の影響範囲'],
rollBand: ['Body tilt range', '体の傾きの影響範囲'], chest: ['Chest', '胸'], shoulders: ['Shoulders', '肩'],
nose: ['Nose', '鼻'], eyeA: ['First eye', '目の1番目'], eyeB: ['Second eye', '目の2番目'], earL: ['Left ear', '左耳'], earR: ['Right ear', '右耳'],
brow: ['Brows', '眉'], jaw: ['Jaw', 'あご'], band: ['Blend range', '影響範囲'], bunL: ['Left bun', '左のお団子'], bunR: ['Right bun', '右のお団子'],
- opening: ['opening', '開口部'], roi: ['cut-out region', '切り抜き範囲'], x0: ['Left edge', '左端'], x1: ['Right edge', '右端'], y0: ['Top edge', '上端'], y1: ['Bottom edge', '下端'],
+ opening: ['Opening', '開口部'], roi: ['Cut-out region', '切り抜き範囲'], x0: ['Left edge', '左端'], x1: ['Right edge', '右端'], y0: ['Top edge', '上端'], y1: ['Bottom edge', '下端'],
top: ['Upper lid curve', '上まぶたの曲線'], bot: ['Lower lid curve', '下まぶたの曲線'], angle: ['Angle', '角度'], halfLen: ['Half length', '長さの半分'],
- bow: ['Curve depth', '曲線の深さ'], area: ['Drawing area', '差し替え範囲'], nodes: ['nodes', '節点'], sigma: ['Sway width', '揺れの幅'],
+ bow: ['Curve depth', '曲線の深さ'], area: ['Drawing area', '差し替え範囲'], nodes: ['Nodes', '節点'], sigma: ['Sway width', '揺れの幅'],
k: ['Sway strength', '揺れの強さ'], max: ['Maximum sway', '最大の揺れ'], tip: ['Tip', '先端'], split: ['Joint split', '関節の分割位置'],
box: ['Cut-out box', '切り抜き枠'], color: ['Colour mask', '色のマスク'], redness: ['Red threshold', '赤の比率'], minRed: ['Minimum red', '赤の最小値'],
outline: ['Outline', '輪郭'], jawRange: ['Jaw range', 'あごの範囲'], background: ['Background patch', '背景の補完範囲'],