From 1cdf2cd2c05f81a000bf218fe5299cdbf34175e6 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 4 Oct 2021 11:52:14 +0900 Subject: Web/CSS/text-orientation を変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/text-orientation/index.md | 105 +++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 files/ja/web/css/text-orientation/index.md (limited to 'files/ja/web/css/text-orientation/index.md') diff --git a/files/ja/web/css/text-orientation/index.md b/files/ja/web/css/text-orientation/index.md new file mode 100644 index 0000000000..268ca05408 --- /dev/null +++ b/files/ja/web/css/text-orientation/index.md @@ -0,0 +1,105 @@ +--- +title: text-orientation +slug: Web/CSS/text-orientation +tags: + - CSS + - CSS プロパティ + - CSS 書字方向 + - Reference + - 日本語処理 +translation_of: Web/CSS/text-orientation +--- +
{{CSSRef}}
+ +

text-orientationCSS のプロパティで、行内のテキストの向きを設定します。このプロパティは縦書きのテキスト ({{cssxref("writing-mode")}} が horizontal-tb 以外の場合) でのみ効果があります。これは縦書きを使用する言語の表示を制御したり、縦書きの表見出しを作成したりするのに有用です。

+ +
{{EmbedInteractiveExample("pages/css/text-orientation.html")}}
+ + + +

構文

+ +
/* キーワード値 */
+text-orientation: mixed;
+text-orientation: upright;
+text-orientation: sideways-right;
+text-orientation: sideways;
+text-orientation: use-glyph-orientation;
+
+/* グローバル値 */
+text-orientation: inherit;
+text-orientation: initial;
+text-orientation: unset;
+
+ +

text-orientation プロパティは、以下のリストから単一のキーワードとして指定されます。

+ +

+ +
+
mixed
+
このキーワードは、横書きのみの文字を右に 90°回転させ、縦書き文字のグリフは自然にレイアウトされます。
+
upright
+
このキーワードは、横書きのみの文字を、縦書き文字と同様に自然にレイアウト (正立) させます。このキーワードは、すべての文字が ltr (左から右へ) で書かれているものとみなすので注意してください。これは、ユーザ側でどのように設定されていても、対象のテキストの {{cssxref("direction")}} に ltr が指定されているものとします。
+
sideways
+
このキーワードは、全行を横書きで書いて 90°回転したようにレイアウトします。{{cssxref("writing-mode")}} が vertical-rl の場合は右へ回転、vertical-lr の場合は左へ回転します。
+
sideways-right
+
これは、互換性を維持するためのキーワードであり、sideways の別名です。
+
use-glyph-orientation
+
SVG 要素上で、このキーワードは、非推奨の SVG プロパティ glyph-orientation-verticalglyph-orientation-horizontal の値を使用します。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +

HTML

+ +
<p>Lorem ipsum dolet semper quisquam.</p>
+ +

CSS

+ +
p {
+  writing-mode: vertical-rl;
+  text-orientation: upright;
+}
+ +

結果

+ +

{{EmbedLiveSample('Examples')}}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Writing Modes', '#text-orientation', 'text-orientation')}}{{Spec2('CSS3 Writing Modes')}}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.text-orientation")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf