For faster navigation, this Iframe is preloading the Wikiwand page for 符号点.

符号点

符号点(ふごうてん)は、符号化文字集合内の、文字を割り当てうる個々のコードポイント (code point)。Unicodeでは符号位置(ふごういち)と訳す。文脈によっては単に(てん、point)ともいう。

符号点は文字を割り当て「うる」点であり、規格によっては、実際に文字を割り当てる以外に、エスケープなどの目的の文字以外の何かが割り当てられることもある。

符号点のバイト列化

[編集]

符号空間は、1次元のこともあれば、多次元のこともある。その中の符号点は、座標に相当する整数列で特定される。Unicodeのように符号空間が1次元の場合は、長さ1の整数列、つまり、1つの整数となる。Unicodeの用語では「Unicodeスカラー値」と言う。

整数列は、文字符号化方式によりバイト列に変換される。最も単純なスキームでは整数列がそのままバイト列になるが、一般には、直に整数として見たものとは異なる値に変換されたり、長さも変わったりする。

群・面・区・点

[編集]

符号点(この節では、以下、単にと呼ぶ)とは、整数列(バイト列ではない)を最後まで使って指定される点状の部分集合である。それに対し、最後から2番目の整数までを使って指定される、多数の点からなる状の部分集合をという。同様に、最後から3番目の整数までを使って指定される、多数の区からなる状の部分集合をといい、最後から4番目の整数までを使って指定される、多数の面からなる部分集合をという。

上位から並べなおすと、群・面・区・点であり、群は多数の面からなり、面は多数の区からなり、区は多数の点からなる。それぞれを特定する最後の整数を(つまり、最後から4番目の整数から順に)、群番号・面番号・区番号・点番号、あるいは単に、群・面・区・点という。このような、上位から群・面・区・点とする階層構造は以前のISO/IEC 10646のものである(群は2011年の改訂で廃止された)。

当然ながら、符号空間の次元が低く整数列が短い場合には、上位の整数は使わない。群・面は大規模文字セットに伴い使われるようになったものであるが、区・点はJIS X 0208など以前から使われていた。

特にJISなどで、区番号と点番号からなる2つの整数の組を区点番号、あるいは単に区点という。

表現

[編集]

点(位置)について、ASCIIなどでは、特にこれといった表現方法はなく、オクテットの値を十六進法などで「'A'は4116である」といったように表現する。JIS X 0208などでは「x区y点」あるいは「x-y」(xとyは普通十進法)と表現する。JIS X 0213では「面」がその前に加わる。UnicodeやISO/IEC 10646では、"U+" の後にUnicodeスカラ値を十六進で続けて「U+3042」のようにして表す。

参考資料

[編集]

Unicodeに関する用語の日本語表記は次にならった。Unicode Terminology English - Japanese”. Unicode, inc. 2010年1月1日閲覧。

{{bottomLinkPreText}} {{bottomLinkText}}
符号点
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?