For faster navigation, this Iframe is preloading the Wikiwand page for em (単位).

em (単位)

この記事は検証可能参考文献や出典が全く示されていないか、不十分です。出典を追加して記事の信頼性向上にご協力ください。(このテンプレートの使い方)出典検索?"Em" 単位 – ニュース · 書籍 · スカラー · CiNii · J-STAGE · NDL · dlib.jp · ジャパンサーチ · TWL(2019年3月)

em(エム)は、欧文組版において使用される長さの単位である。和文組版では全角幅に相当する。名称の由来は大文字Mで、Mの活字が縦横いっぱいの空間を占めることに由来するが、現代においては大文字のMの幅と等しいとは限らず、フォントによって特定の値に決められている[1]

em の対義語en (単位)である。

全角のダッシュ(em-dash)は文中の区切りに使われる[2]

コンピュータ

[編集]

CSSTeXなどの寸法は、ポイントピクセル数のような絶対単位で指定する方法と、相対単位で指定する方法があり、emは後者の相対的な単位にあたる。

画面出力においては相対的な単位で指定することによってフォントの拡大・縮小に追随させることが可能になる[3]Webコンテンツのアクセスビリティガイドライン(WCAG)はテキストのリサイズが可能であることを求めており[4]、リサイズ可能なようにemで指定することが求められる[5]。CSSにおけるemは、各要素ごとに異なる場合があるため、ルート要素のフォント・サイズを基準とする場合は、2013年に導入された単位であるremを使用する[3]

TeXでは---で全角ダッシュを表す[2]。全角アキは\quadを使用する[6]

Unicodeでem幅が指定されている文字にはU+2001 EM QUAD、U+2003 EM SPACE、U+2014 EM DASHがある。EM DASHはWindows-1252コードページにも定義されていてよく使用される。日本のJIS X 0208で定義されている区点1-29(ダッシュ (全角))の記号がこれにあたるかどうかについてはダッシュ (記号)#全角ダッシュのマッピング問題を参照。

文字 Unicode JIS X 0213 文字参照 名称
U+2001 -  
 
EM QUAD
U+2003 -  
 
 
EM SPACE
U+2014 1-1-29 —
—
—
ダッシュ (全角)
EM DASH

脚注

[編集]
  1. ^ クヌース 1989, p. 89.
  2. ^ a b クヌース 1989, p. 8.
  3. ^ a b em, px, pt, cm, in…”. W3C. Web Style Sheets — CSS tips & tricks (2021年1月6日). 2022年1月5日閲覧。
  4. ^ “Resize text — Level AA”, How to Meet WCAG (Quick Reference), W3C Web Accessibility Initiative (WAI), https://www.w3.org/WAI/WCAG21/quickref/?showtechniques=144#resize-text 
  5. ^ 達成基準 1.4.4: テキストのサイズ変更を理解する」『WCAG 2.1 解説書』ウェブアクセシビリティ基盤委員会(WAIC)訳、2019年3月6日https://waic.jp/docs/WCAG21/Understanding/resize-text.html 
  6. ^ クヌース 1989, p. 227.

参考文献

[編集]
  • ドナルド・E. クヌース『TeXブック コンピュータによる組版システム』鷺谷光輝 訳、アスキー〈アスキー・電子出版シリーズ〉、1989年10月1日。ISBN 978-4756100108 

関連項目

[編集]

外部リンク

[編集]
{{bottomLinkPreText}} {{bottomLinkText}}
em (単位)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?