ミラープロパティ
RTLコンテキストでグリフを水平に反転すべき文字。例:( → )、[ → ]、{ → }、« → »。
What Is the Bidi_Mirrored Property?
The Bidi_Mirrored property is a Boolean property that marks characters whose glyph should be horizontally reflected when appearing in a right-to-left (RTL) context. In an RTL paragraph, an opening parenthesis ( should visually appear as ) and vice versa, because the semantic role (open vs. close) is independent of whether the text flows left-to-right or right-to-left.
The Unicode Bidirectional Algorithm (UAX #9) applies mirroring automatically during text rendering for characters with Bidi_Mirrored=Yes. A rendering engine does not swap code points; instead it selects the mirrored glyph from the font, or uses the Bidi_Mirroring_Glyph property to find the corresponding code point when a dedicated glyph is not available.
Characters with Bidi_Mirrored=Yes
The most familiar mirrored characters are paired delimiters, but the property covers a wider range:
import unicodedata
# Check Bidi_Mirrored flag (1 = mirrored, 0 = not mirrored)
candidates = [
("(", "LEFT PARENTHESIS"),
(")", "RIGHT PARENTHESIS"),
("[", "LEFT SQUARE BRACKET"),
("{", "LEFT CURLY BRACKET"),
("<", "LESS-THAN SIGN"),
(">", "GREATER-THAN SIGN"),
("⟨", "MATHEMATICAL LEFT ANGLE BRACKET"),
("∈", "ELEMENT OF"),
("A", "LATIN CAPITAL LETTER A"),
]
for char, name in candidates:
m = unicodedata.mirrored(char)
print(f" {char} mirrored={m} {name}")
# ( mirrored=1 LEFT PARENTHESIS
# ) mirrored=1 RIGHT PARENTHESIS
# [ mirrored=1 LEFT SQUARE BRACKET
# { mirrored=1 LEFT CURLY BRACKET
# < mirrored=1 LESS-THAN SIGN
# > mirrored=1 GREATER-THAN SIGN
# ⟨ mirrored=1 MATHEMATICAL LEFT ANGLE BRACKET
# ∈ mirrored=1 ELEMENT OF
# A mirrored=0 LATIN CAPITAL LETTER A
Bidi_Mirroring_Glyph vs. Bidi_Mirrored
Bidi_Mirrored=Yes says this character needs mirroring. The companion Bidi_Mirroring_Glyph property gives the code point of the character whose glyph should be used as the mirrored form—for example, ( → ). For mathematical symbols like ∈ (ELEMENT OF), the mirroring glyph is ∋ (CONTAINS AS MEMBER). If a font contains both glyphs, the renderer selects the appropriate one automatically.
When no mirroring glyph exists (the value is <none> in the data), the renderer must synthesize a mirrored glyph, typically by applying a horizontal flip transformation.
Quick Facts
| Property | Value |
|---|---|
| Unicode property name | Bidi_Mirrored |
| Short alias | Bidi_M |
| Type | Boolean |
| Python function | unicodedata.mirrored(char) → 1 or 0 |
| Characters with value Yes (Unicode 15.1) | ~570 |
| Companion property | Bidi_Mirroring_Glyph |
| Spec reference | Unicode Standard Annex #9 (UAX #9) |
関連用語
プロパティ のその他の用語
文字が最初に割り当てられたUnicodeバージョン。システムやソフトウェアバージョン間での文字サポートを判断するのに役立ちます。
Unicode property (UAX#11) classifying characters as Narrow, Wide, Fullwidth, Halfwidth, Ambiguous, or …
Unicode property controlling how Arabic and Syriac characters connect to adjacent characters. …
Unicode property listing all scripts that use a character, broader than the …
文字を大文字・小文字・タイトルケースに変換するルール。ロケール依存の場合があり(トルコ語のI問題)、1対多のマッピングもあります(ß → SS)。
文字が属する文字体系(例:ラテン、キリル、漢字)。Unicode 16.0は168個のスクリプトを定義し、Scriptプロパティはセキュリティと混在スクリプト検出に重要です。
サポートしていないプロセスで目に見える効果なく無視できる文字で、異体字セレクター・ゼロ幅文字・言語タグなどが含まれます。
名前付きの連続したコードポイント範囲(例:基本ラテン = U+0000〜U+007F)。Unicode 16.0は336個のブロックを定義し、すべてのコードポイントはちょうど1つのブロックに属します。
すべてのコードポイントを30個のカテゴリ(Lu・Ll・Nd・Soなど)の1つに分類する体系で、7つの主要クラス(文字・記号・数字・句読点・記号・区切り・その他)にグループ化されています。
同じ抽象的内容を持つが外観が異なる場合がある2つの文字シーケンス。正規等価より広い概念。例:fi ≈ fi、² ≈ 2。