「Gwtar:静的で効率的な単一ファイルHTML形式」
## Japanese Translation:
**Gwtar** は、静的で自己完結かつ効率的という「HTMLの三項格闘(HTML trilemma)」を解決する、新しい単一ファイル HTML アーカイブ形式です。
ファイルは通常の HTML ヘッダーに加えて `window.stop()` を呼び出す小さな JavaScript スニペットを含み、初期ネットワーク活動を停止します。リソースが必要になったとき、スクリプトは tarball の該当バイト範囲を HTTP Range リクエストで要求します。サーバーは byte‑range リクエストに対応している必要があり、ファイルは MIME タイプ **`x-gwtar`**(拡張子は `.gwtar.html`)で配信されるべきです。ブラウザーは `<html>` タグをコンテンツスニッフィングし、非 Gwtar ブラウザーでもページがレンダリングできるようにします。
Cloudflare などのサービスは `text/html` から Range ヘッダーを除去するため、カスタム MIME タイプが必要です。ローカルで Gwtar ファイルを見る場合はブラウザーのセキュリティポリシーに制限されます。標準的なマルチファイルアーカイブへ戻すことで完全機能を復元できます。
作成は PHP スクリプト(`deconstruct_singlefile.php`)によって自動化され、SingleFile スナップショットの再構築が可能です。画像の再圧縮や tarball の後に PAR2 前方誤り訂正データ、ASCII GPG 署名を追加することもできます。大きなバイナリ資産(例:データベース)は `<object>` タグで埋め込み、再現可能科学ワークフローをサポートしつつ通常のブラウザーとの互換性を維持します。
この形式は HTML 本体自体を圧縮しません。生成時やサーバー側で交渉された Brotli/Gzip などの方法で圧縮する必要があります。計画中の拡張には検証ツール、積極的なプリフェッチ、SingleFile との統合、多ページ対応、および改良された重複排除が含まれます。Gwtar は CC‑0 パブリックドメインライセンスで公開されています。
*この改訂要約はすべての主要ポイントを保持し、不当な推測を避け、情報を明確かつ読みやすく提示しています。*
## Text to translate
**
> **Gwtar** is a new single‑file HTML archival format that solves the “HTML trilemma”—being static, self‑contained, and efficient—by lazy‑loading assets through HTTP range requests from an appended tarball.
> The file begins with a normal HTML header plus a small JavaScript snippet that calls `window.stop()` to halt any initial network activity. When a resource is needed, the script issues a range request for the relevant bytes of the tarball; the server must support byte‑range requests and the file should be served with MIME type **`x-gwtar`** (the extension is `.gwtar.html`). Browsers content‑sniff the `<html>` tag so that non‑Gwtar browsers can still render the page.
> Cloudflare and similar services strip range headers from `text/html`, which is why the custom MIME type is required. Local viewing of Gwtar files is limited by browser security policies; converting back to a standard multi‑file archive restores full functionality.
> Creation is automated via a PHP script (`deconstruct_singlefile.php`) that can rebuild SingleFile snapshots, optionally recompressing images and appending PAR2 forward‑error‑correction data or ASCII GPG signatures after the tarball. Large binary assets (e.g., databases) may be embedded with `<object>` tags to support reproducible‑science workflows while maintaining compatibility with ordinary browsers.
> The format does not compress the HTML body itself; any such compression must be applied during generation or by server‑side negotiated methods like Brotli/Gzip. Planned extensions include validation tools, aggressive prefetching, integration with SingleFile, multi‑page support, and improved deduplication. Gwtar is released under a CC‑0 public‑domain license.
*This revised summary retains all major key points, avoids unfounded inferences, and presents the information in a clear, reader‑friendly manner.*