aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/manifest/dir/index.md
blob: c1d460e594e2b4a5f9504b56d550e94df2dcb452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: dir
slug: Web/Manifest/dir
tags:
  - マニフェスト
  - ウェブ
  - dir
browser-compat: html.manifest.dir
translation_of: Web/Manifest/dir
---
{{QuickLinksWithSubpages("/ja/docs/Web/Manifest")}}

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">型</th>
      <td>`String`</td>
    </tr>
    <tr>
      <th scope="row">必須</th>
      <td>いいえ</td>
    </tr>
  </tbody>
</table>

マニフェストの書字方向に対応しているメンバーを表示するための基本的な方向です。 [`lang`](/ja/docs/Web/Manifest/lang) メンバーと共に、右書きの言語を正しく表示するのに役立ちます。

`dir` メンバーには、次の値のうちの一つを設定することができます。

- `auto` — ユーザーエージェントが判断した書字方向
- `ltr` — 左書き (left to right)
- `rtl` — 右書き (right to left)

*書字方向に対応しているメンバー*は以下の通りです。

- [`name`](/ja/docs/Web/Manifest/name)
- [`short_name`](/ja/docs/Web/Manifest/short_name)
- [`description`](/ja/docs/Web/Manifest/description)

> **Note:** この値が省略されたり `auto` に設定されていたりした場合は、ブラウザーは [Unicode 双方向アルゴリズム](/ja/docs/Web/Guide/Unicode_Bidirectional_Text_Algorithm)を使用してテキストの書字方向に最適な推測を行います。

## 例

```json
"dir": "rtl",
"lang": "ar",
"short_name": "!أنا من التطبيق"
```

## 仕様書

{{Specifications}}

## ブラウザーの互換性

{{Compat}}