From c30862917dbd010ac7489941ef50592c9d2c6005 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 5 Oct 2021 00:18:12 +0900 Subject: CSS Textの文書の変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/line-break/index.html | 114 --------------------------------- files/ja/web/css/line-break/index.md | 114 +++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+), 114 deletions(-) delete mode 100644 files/ja/web/css/line-break/index.html create mode 100644 files/ja/web/css/line-break/index.md (limited to 'files/ja/web/css/line-break') diff --git a/files/ja/web/css/line-break/index.html b/files/ja/web/css/line-break/index.html deleted file mode 100644 index 99fff450bd..0000000000 --- a/files/ja/web/css/line-break/index.html +++ /dev/null @@ -1,114 +0,0 @@ ---- -title: line-break -slug: Web/CSS/line-break -tags: - - Asian - - CSS - - CSS Property - - CSS Text - - NeedsExample - - Reference - - i18n - - l10n - - 'recipe:css-property' - - 日本語処理 - - 禁則処理 -translation_of: Web/CSS/line-break ---- -
{{CSSRef}}
- -

line-break は CSS のプロパティで、中国語、日本語、韓国語 (CJK) のテキストにおいて、句読点や記号を用いた場合の改行規則を設定します。

- -
/* キーワード値 */
-line-break: auto;
-line-break: loose;
-line-break: normal;
-line-break: strict;
-line-break: anywhere;
-
-/* グローバル値 */
-line-break: inherit;
-line-break: initial;
-line-break: unset;
-
- -

構文

- -

- -
-
auto
-
既定の改行規則を使用してテキストを改行します。
-
loose
-
最も制限の少ない改行規則を使用してテキストを改行します。一般的に、新聞などの短い行に使用されます。
-
normal
-
最も一般的な改行規則を使用してテキストを改行します。
-
strict
-
最も厳格な改行規則を使用してテキストを改行します。
-
anywhere
-
-

句読点や温存された空白、単語の途中も含め、すべての文字の間で折り返しできるようにし、 GL, WJ, ZWJ の文字クラスや、 {{cssxref("word-break")}} プロパティでもたらされる折り返しの禁止を一切無視します。どの折り返しの機会も優先されることはありません。ハイフネーションは適用されません。

-
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

テキストの折り返しの設定

- -

"々", "ぁ", "。" の前で折り返しが行われるかどうかを確認してください。

- -

HTML

- -
<div lang="ja">
-  <p class="wrapbox auto">auto:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
-  <p class="wrapbox loose">loose:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
-  <p class="wrapbox normal">normal:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
-  <p class="wrapbox strict">strict:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
-  <p class="wrapbox anywhere">anywhere:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
-</div>
-
- -

CSS

- -
.wrapbox { width: 10em; margin: 0.5em; white-space: normal; vertical-align: top; display: inline-block; }
-.auto { line-break: auto; }
-.loose { line-break: loose; }
-.normal { line-break: normal; }
-.strict { line-break: strict; }
-.anywhere { line-break: anywhere; }
-
- -

Result

- -

{{ EmbedLiveSample('Setting_text_wrapping', 200, 400) }}

- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Text', '#line-break-property', 'line-break')}}{{Spec2('CSS3 Text')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.line-break")}}

diff --git a/files/ja/web/css/line-break/index.md b/files/ja/web/css/line-break/index.md new file mode 100644 index 0000000000..99fff450bd --- /dev/null +++ b/files/ja/web/css/line-break/index.md @@ -0,0 +1,114 @@ +--- +title: line-break +slug: Web/CSS/line-break +tags: + - Asian + - CSS + - CSS Property + - CSS Text + - NeedsExample + - Reference + - i18n + - l10n + - 'recipe:css-property' + - 日本語処理 + - 禁則処理 +translation_of: Web/CSS/line-break +--- +
{{CSSRef}}
+ +

line-break は CSS のプロパティで、中国語、日本語、韓国語 (CJK) のテキストにおいて、句読点や記号を用いた場合の改行規則を設定します。

+ +
/* キーワード値 */
+line-break: auto;
+line-break: loose;
+line-break: normal;
+line-break: strict;
+line-break: anywhere;
+
+/* グローバル値 */
+line-break: inherit;
+line-break: initial;
+line-break: unset;
+
+ +

構文

+ +

+ +
+
auto
+
既定の改行規則を使用してテキストを改行します。
+
loose
+
最も制限の少ない改行規則を使用してテキストを改行します。一般的に、新聞などの短い行に使用されます。
+
normal
+
最も一般的な改行規則を使用してテキストを改行します。
+
strict
+
最も厳格な改行規則を使用してテキストを改行します。
+
anywhere
+
+

句読点や温存された空白、単語の途中も含め、すべての文字の間で折り返しできるようにし、 GL, WJ, ZWJ の文字クラスや、 {{cssxref("word-break")}} プロパティでもたらされる折り返しの禁止を一切無視します。どの折り返しの機会も優先されることはありません。ハイフネーションは適用されません。

+
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

テキストの折り返しの設定

+ +

"々", "ぁ", "。" の前で折り返しが行われるかどうかを確認してください。

+ +

HTML

+ +
<div lang="ja">
+  <p class="wrapbox auto">auto:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
+  <p class="wrapbox loose">loose:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
+  <p class="wrapbox normal">normal:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
+  <p class="wrapbox strict">strict:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
+  <p class="wrapbox anywhere">anywhere:<br>そこは湖のほとりで木々が輝いていた。<br>その景色に、美しいなぁと思わずつぶやいた。</p>
+</div>
+
+ +

CSS

+ +
.wrapbox { width: 10em; margin: 0.5em; white-space: normal; vertical-align: top; display: inline-block; }
+.auto { line-break: auto; }
+.loose { line-break: loose; }
+.normal { line-break: normal; }
+.strict { line-break: strict; }
+.anywhere { line-break: anywhere; }
+
+ +

Result

+ +

{{ EmbedLiveSample('Setting_text_wrapping', 200, 400) }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Text', '#line-break-property', 'line-break')}}{{Spec2('CSS3 Text')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.line-break")}}

-- cgit v1.2.3-54-g00ecf