Skip to content

Commit 8b5c3b3

Browse files
authored
Merge pull request #13 from kwan3854/main
Update README.md
2 parents e7c38f9 + e1eba8d commit 8b5c3b3

File tree

2 files changed

+73
-12
lines changed

2 files changed

+73
-12
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: 37 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-
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

@@ -57,11 +57,42 @@ Obsolete : `RubyTextMeshPro.UnditedText` / `RubyTextMeshProUGUI.UnditedText` : W
5757

5858
## Realtime Ruby Text
5959

60-
You can use `<ruby=ice>fire</ruby>` tag or `<r=ice>fire</r>` tag. Both are the same.
60+
Ruby tags allow you to annotate text with small "ruby" characters (e.g., for pronunciation or additional information). Various styles of ruby tags are supported, providing flexibility and backward compatibility.
6161

62-
It can also work with double quotes.
62+
### Supported Ruby Tag Formats
6363

64-
`<ruby="ice">fire</ruby>` tag or `<r="ice">fire</r>` tag.
64+
1. **Legacy Ruby Tag Styles**:
65+
These styles have been supported since earlier versions and are fully compatible.
66+
- `<ruby=ice>fire</ruby>`: Annotates "fire" with "ice".
67+
- `<r=ice>fire</r>`: Equivalent to the above.
68+
- These tags also support double quotes:
69+
- `<ruby="ice">fire</ruby>`
70+
- `<r="ice">fire</r>`
71+
72+
2. **Standard Ruby Tag Styles (from v1.3.0)**:
73+
Starting from **v1.3.0**, the standard ruby tag format is supported. This enables additional features, such as the ability to use rich text formatting within ruby annotations.
74+
- `<ruby>fire<rt>ice</rt></ruby>`: Annotates "fire" with "ice".
75+
- `<r>fire<rt>ice</rt></r>`: Equivalent to the standard style.
76+
- `<r>fire<rt><color="blue">ice</color></rt></r>`: Enables rich text formatting (e.g., coloring "ice" in blue).
77+
78+
---
79+
80+
### Examples
81+
82+
| Input Syntax | Rendered Output |
83+
|--------------------------------------------------|-------------------------------------------|
84+
| `<ruby=ice>fire</ruby>` | <ruby>fire<rt>ice</rt></ruby> |
85+
| `<r=ice>fire</r>` | <ruby>fire<rt>ice</rt></ruby> |
86+
| `<ruby="ice">fire</ruby>` | <ruby>fire<rt>ice</rt></ruby> |
87+
| `<ruby>fire<rt>ice</rt></ruby>` | <ruby>fire<rt>ice</rt></ruby> |
88+
| `<r>fire<rt>ice</rt></r>` | <ruby>fire<rt>ice</rt></ruby> |
89+
90+
---
91+
92+
> [!TIP]
93+
> - **Rich Text Support**: The standard ruby tag style (`<ruby><rt>`) allows for advanced formatting such as color, bold, or italic within the ruby annotations.
94+
> - **Backward Compatibility**: Legacy styles such as `<ruby="ice">` and `<r="ice">` are fully supported alongside the new standard ruby tag style.
95+
> - **Standard Syntax Recommendation**: It is recommended to use the standard ruby tag style (`<ruby><rt>`) for new projects to take full advantage of the rich text features.
6596
6697
# How To Use
6798

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

76107
Unity > Window > PackageManager > + > Add package from git url... > Add the following
77108

78-
+ `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`
79110

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

0 commit comments

Comments
 (0)