omowne60 downloadsConvert Tekken fighting game notation DSL into SVG images.
Convert Japanese Tekken fighting game command notation into SVG images in Obsidian.
npm run build:web to generate dist-web/index.html.dist-web/index.html in a browser (or deploy it to a static hosting service of your choice).The web version allows you to test the command syntax—which is identical to that of the Obsidian plugin—directly in your browser. Settings are saved to the localStorage key tekken-code-image-settings.
Create a tekken code block and enter a command using numeric directions and attack buttons.
```tekken
6n23RP
```
The plugin renders the command as an SVG image. Open Settings → Community plugins → Tekken Code Image to adjust shape size, spacing, text styles, and attack button colors.
npm install
| コマンド | 出力 | 用途 |
|---|---|---|
npm run build |
dist/main.js + dist/manifest.json |
Obsidian プラグイン本番ビルド |
npm run build:web |
dist-web/index.html(インライン化) |
Web ブラウザ向け単一 HTML ビルド |
npm run build:all |
上記両方 | 両ターゲット一括 |
| コマンド | 用途 |
|---|---|
npm run dev |
デフォルト(--target 不指定)。watch モードで起動 |
npm run dev:obsidian |
Obsidian ターゲットのみ watch |
npm run dev:web |
Web ターゲットのみ watch。web/main.js を生成し、web/index.html から参照 |
| コマンド | 用途 |
|---|---|
npm run test |
Vitest スイートを実行 |
npm run test:watch |
Vitest を watch モードで起動 |
npm run test:render |
Playwright による描画テストを実行 |
npm run typecheck |
tsc --noEmit による型チェック |
src/core/ — 共通ロジック(parser, svg, settings, types)src/entries/obsidian/ — Obsidian プラグインエントリsrc/entries/web/ — Web ブラウザエントリと共通 API (integrate.ts)web/index.html — Web 版 UI の HTML(dev 時に参照)test/ — Vitest と Playwright テスト詳細は SPEC.md の「ディレクトリ構造」「エントリの責務分離」を参照。
Obsidian のプラグインで、格闘ゲームの鉄拳におけるコマンドをSVG画像へと変換します。
対応しているコマンドは、主に日本で使われるテンキー形式です。例えば風神拳なら 6n23RP といった表記です。
markdown 上の ```tekken コードブロックにコマンドを記述することで、該当コードブロック上にSVG画像が生成されます。
Web版もあります。
方向、および、ボタン表記は画像のとおりです。

サポートしている記法:
1, 2, 3, 4, 6, 7, 8, 9)n または N - ニュートラルLP - 左パンチRP - 右パンチWP - 左右パンチ同時押しLK - 左キックRK - 右キックWK - 左右キック同時押し[ 攻撃ボタン ]WP WK は記述不可[ LK RP ]+ を攻撃ボタンの間に記述LP + RK>" で囲う。ただし、テキストとして " 記号を含めることは出来ない。"Counter Hit""日本語も可能"LP, RP, LK と LP RP LK と LPRPLK は同じ意味アリサの基本コンボ
```tekken
3RP > 4LP > "ws" LPRP > 9LP > 66 > 9LP
```
複数行のコードブロックを使うと、改行位置で図形が次の行へ送られます。連続する改行は1つにまとめられ、行送りの量は shapeSize + padding です。
```tekken
3RP > 4LP > "ws" LPRP > 9LP > 66 >
9LP
```
MIT ライセンス