Skip to content

Commit e1eba8d

Browse files
committed
Update README
1 parent 8166268 commit e1eba8d

File tree

2 files changed

+39
-9
lines changed

2 files changed

+39
-9
lines changed

README.ja.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ UnityVer:6000.0.23f1(LTS)
1919
UGUI:2.0.0
2020
```
2121

22-
Unity6以前のバージョンでは、`v1.2.0`タグを使用してください。
22+
Unity6以前のバージョンでは、`v1.3.0`タグを使用してください。
2323

24-
Unity6でも`v1.2.0`をインストールすることは可能ですが、package.json に旧`TextMeshPro v3.0.6`への依存情報が含まれているためおすすめしません。
24+
Unity6でも`v1.3.0`をインストールすることは可能ですが、package.json に旧`TextMeshPro v3.0.6`への依存情報が含まれているためおすすめしません。
2525

2626
# Disruptive change
2727

@@ -57,11 +57,41 @@ Unity バージョンアップ 6000.0.23f1(LTS)
5757

5858
## Realtime Ruby Text
5959

60-
あなたは`<ruby=にほんご>日本語</ruby>`タグもしくは省略した`<r=にほんご>日本語</r>`タグを使用できます
60+
振り仮名を追加するには、以下のようなタグ形式を使用します
6161

62-
また、半角ダブルクォーテーションで囲っても動作します。
62+
### サポートされるタグ形式
6363

64-
`<ruby="にほんご">日本語</ruby>`タグも`<r="にほんご">日本語</r>`タグもOKです。
64+
1. **レガシールビタグ形式**:
65+
- `<ruby=にほんご>日本語</ruby>`: 「日本語」に「にほんご」を注釈。
66+
- `<r=にほんご>日本語</r>`: 上記と同じ。
67+
- また、以下のようにダブルクォートも使用可能です:
68+
- `<ruby="にほんご">日本語</ruby>`
69+
- `<r="にほんご">日本語</r>`
70+
71+
2. **標準ルビタグ形式 (v1.3.0以降)**:
72+
- v1.3.0 以降では、標準的なルビタグ形式がサポートされています。
73+
- `<ruby>日本語<rt>にほんご</rt></ruby>`: 「日本語」に「にほんご」を注釈。
74+
- `<r>日本語<rt>にほんご</rt></r>`: 同じ形式。
75+
- `<r>日本語<rt><color="blue">にほんご</color></rt></r>`: 注釈内にリッチテキスト (例: 青色文字) を使用可能。
76+
77+
---
78+
79+
###
80+
81+
| 入力形式 | 表示結果 |
82+
|-------------------------------------------------|-----------------------------------------------|
83+
| `<ruby=にほんご>日本語</ruby>` | <ruby>日本語<rt>にほんご</rt></ruby> |
84+
| `<r=にほんご>日本語</r>` | <ruby>日本語<rt>にほんご</rt></ruby> |
85+
| `<ruby="にほんご">日本語</ruby>` | <ruby>日本語<rt>にほんご</rt></ruby> |
86+
| `<ruby>日本語<rt>にほんご</rt></ruby>` | <ruby>日本語<rt>にほんご</rt></ruby> |
87+
| `<r>日本語<rt><color="blue">にほんご</color></rt></r>` | <ruby>日本語<rt><color="blue">にほんご</color></rt></ruby> |
88+
89+
---
90+
91+
> [!TIP]
92+
> - **リッチテキストサポート**: 標準ルビタグ形式 (`<ruby><rt>`) を使用すると、色や太字などのリッチテキストを注釈内に適用可能です。
93+
> - **互換性**: レガシー形式 (`<ruby="value">`) と標準形式が同時にサポートされています。
94+
> - **推奨**: 新しいプロジェクトでは、標準タグ形式 (`<ruby><rt>`) を使用することを推奨します。
6595
6696
# How To Use
6797

@@ -75,7 +105,7 @@ GitHubからインストールをすることが可能です。
75105

76106
Unity > Window > PackageManager > + > Add package from git url... > Add the following
77107

78-
+ `https://github.com/jp-netsis/RubyTextAbstractions.git?path=/RubyTextAbstractions/PackageData#v0.1.0`
108+
+ `https://github.com/jp-netsis/RubyTextAbstractions.git?path=/RubyTextAbstractions/PackageData#v0.2.0`
79109

80110
+ `https://github.com/jp-netsis/RubyTextMeshPro.git?path=/Assets/RubyTextMeshPro#v2.0.0`
81111

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ UnityVer:6000.0.23f1(LTS)
1919
UGUI:2.0.0
2020
```
2121

22-
Versions prior to Unity6 should use the `v1.2.0` tag.
22+
Versions prior to Unity6 should use the `v1.3.0` tag.
2323

24-
It is possible to install `v1.2.0` in Unity6, but it is not recommended because package.json contains dependency information on the old `TextMeshPro v3.0.6`.
24+
It is possible to install `v1.3.0` in Unity6, but it is not recommended because package.json contains dependency information on the old `TextMeshPro v3.0.6`.
2525

2626
# Disruptive change
2727

@@ -106,7 +106,7 @@ In this case, the dependency information for TextMeshPro 3.0.6 is retained, so i
106106

107107
Unity > Window > PackageManager > + > Add package from git url... > Add the following
108108

109-
+ `https://github.com/jp-netsis/RubyTextAbstractions.git?path=/RubyTextAbstractions/PackageData#v0.1.0`
109+
+ `https://github.com/jp-netsis/RubyTextAbstractions.git?path=/RubyTextAbstractions/PackageData#v0.2.0`
110110

111111
+ `https://github.com/jp-netsis/RubyTextMeshPro.git?path=/Assets/RubyTextMeshPro#v2.0.0`
112112

0 commit comments

Comments
 (0)