--- title: dir slug: Web/Manifest/dir tags: - Manifest - Web - dir - マニフェスト translation_of: Web/Manifest/dir --- <div>{{QuickLinksWithSubpages("/ja/docs/Web/Manifest")}}</div> <table class="properties"> <tbody> <tr> <th scope="row">型</th> <td><code>String</code></td> </tr> <tr> <th scope="row">必須</th> <td>いいえ</td> </tr> </tbody> </table> <p>マニフェストの書字方向に対応しているメンバーを表示するための基本的な方向です。 <code><a href="./lang">lang</a></code> メンバーと共に、右書きの言語を正しく表示するのに役立ちます。</p> <p><code>dir</code> メンバーには、次の値のうちの一つを設定することができます。</p> <ul> <li><code>auto</code> — ユーザーエージェントが判断した書字方向</li> <li><code>ltr</code> — 左書き (left to right)</li> <li><code>rtl</code> — 右書き (right to left)</li> </ul> <p><dfn>書字方向に対応しているメンバー</dfn>は以下の通りです。</p> <ul> <li><code><a href="./name">name</a></code></li> <li><code><a href="./short_name">short_name</a></code></li> <li><code><a href="./description">description</a></code></li> </ul> <div class="blockIndicator note"> <p><strong>注</strong>: この値が省略されたり <code>auto</code> に設定されていたりした場合は、ブラウザーは <a href="/ja/docs/Web/Localization/Unicode_Bidirectional_Text_Algorithm">Unicode 双方向アルゴリズム</a>を使用してテキストの書字方向に最適な推測を行います。</p> </div> <h2 id="Examples" name="Examples">例</h2> <pre class="brush: json" dir="rtl"><code>"dir": "rtl", "lang": "ar", "short_name": "!أنا من التطبيق"</code></pre> <h2 id="Specification" name="Specification">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> <th scope="col">備考</th> <th scope="col">フィードバック</th> </tr> </thead> <tbody> <tr> <td> <p>{{SpecName('Manifest', '#dir-member', 'dir')}}</p> </td> <td> <p>{{Spec2('Manifest')}}</p> </td> <td> <p>初回定義</p> </td> <td> <p><a href="https://github.com/w3c/manifest/issues/">Web App Manifest Working Group drafts</a></p> </td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> <p>{{Compat("html.manifest.dir")}}</p>