X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=draft%2Fman7%2Futf-8.7;fp=draft%2Fman7%2Futf-8.7;h=0000000000000000000000000000000000000000;hp=5efd59906130bd0d534b386df695cd9070a6015c;hb=2460a0b8024ceb8570acdbc9208713d79458efcb;hpb=83f9e5d087c3464d5131604d3c9893479e6228eb
diff --git a/draft/man7/utf-8.7 b/draft/man7/utf-8.7
deleted file mode 100644
index 5efd5990..00000000
--- a/draft/man7/utf-8.7
+++ /dev/null
@@ -1,216 +0,0 @@
-.\" Copyright (C) Markus Kuhn, 1996, 2001
-.\"
-.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
-.\" This is free documentation; you can redistribute it and/or
-.\" modify it under the terms of the GNU General Public License as
-.\" published by the Free Software Foundation; either version 2 of
-.\" the License, or (at your option) any later version.
-.\"
-.\" The GNU General Public License's references to "object code"
-.\" and "executables" are to be interpreted as the output of any
-.\" document formatting or typesetting system, including
-.\" intermediate and printed output.
-.\"
-.\" This manual is distributed in the hope that it will be useful,
-.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
-.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-.\" GNU General Public License for more details.
-.\"
-.\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, see
-.\" .
-.\" %%%LICENSE_END
-.\"
-.\" 1995-11-26 Markus Kuhn
-.\" First version written
-.\" 2001-05-11 Markus Kuhn
-.\" Update
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
-.\" all rights reserved.
-.\" Translated Thu Jun 3 20:40:01 JST 1997
-.\" by HANATAKA Shinya
-.\" Updated (add SECURITY section) & modified Mon Feb 26 2001
-.\" by NAKANO Takeo
-.\" Updated & Modified Sun Jul 1 09:28:47 JST 2001
-.\" by Yuichi SATO
-.\" Updated 2012-05-29, Akihiro MOTOKI
-.\"
-.TH UTF\-8 7 2014\-06\-13 GNU "Linux Programmer's Manual"
-.SH åå
-UTF\-8 \- ASCII ã¨äºææ§ã®ããå¤ãã¤ã Unicode ã®ç¬¦å·å
-.SH 説æ
-ã¦ãã³ã¼ã (Unicode) 3.0 æåéå㯠16 ãããã®ã³ã¼ã空éãå ããã
-æãåç´ãª Unicode ã®ç¬¦å·åæ¹æ³ (UCS\-2)
-ã§ã¯ãæå㯠16 ãããã¯ã¼ã (16 ãããæåã®å) ã§æ§æãããã
-ãã®åã«ã¯ã
-\(aq\e0\(aq ã \(aq/\(aq ã®ãã㪠(ãã¡ã¤ã«åã C ã®ã©ã¤ãã©ãªé¢æ°ã®å¼ãæ°ã®å
é¨ã§)
-ç¹æ®ãªæå³ãæ㤠16 ãããæåãå«ã¾ãããã¨ãããã
-ããã«ãã»ã¨ãã©ã® UNIX ãã¼ã«ã¯ ASCII ãã¡ã¤ã«ãå
¥åã¨ãã¦æå¾
ããã®ã§ã
-大å¹
ãªå¤æ´ãªãã«ã¯ 16 ãããã¯ã¼ããæåã¨ãã¦èªããã¨ãã§ããªãã
-ãããã®çç±ãããUCS\-2 ã¯ãã¡ã¤ã«åã»ããã¹ããã¡ã¤ã«ã»ç°å¢å¤æ°ãªã©ã«ç¨ããã
-å¤é¨ç¨ã® Unicode 符å·ã¨ãã¦ã¯ä¸é©åã§ããã
-Unicode ã®ã¹ã¼ãã¼ã»ããã§ãã
-ISO 10646 Universal Character Set (UCS)
-㯠\\(em 31 ãããã®ãã㪠\\(em ãã£ã¨å¤§ããªã³ã¼ã空éãå ãããã
-ãã®æãåç´ãªç¬¦å·åã§ãã UCS\-4 ã«ã (32 ãããã¯ã¼ãã®åã¨ãã¦) åãåé¡ãããã
-
-Unicode 㨠UCS ã® UTF\-8 符å·åã«ã¯ãããã®åé¡ããªãã®ã§ã
-UNIX å½¢å¼ã® OS ä¸ã§ Unicode æåéåã使ç¨ããããã®ä¸è¬çãªæ¹æ³ã¨ãªã£ã¦ããã
-.SS æ§è³ª
-UTF\-8 符å·åã¯ä»¥ä¸ã®ãããªç´ æ´ããæ§è³ªãåãã¦ãã:
-.TP 0.2i
-*
-UCS æåã®ãã¡ 0x00000000 ãã 0x0000007f ã¾ã§ (å¤å
¸ç㪠US\-ASCII ã®æå) ã¯
-(ASCII ã¨ã®äºææ§ã®ããã«) åç´ã« 0x00 ãã 0x7f ã®ãã¤ãã«ç¬¦å·åããã
-ãã㯠7 ããã ASCII æåã®ã¿ãå«ããã¡ã¤ã«ãæååã«é¢ãã¦ã¯ã
-ASCII 㨠UTF\-8 ã§åã符å·åãè¡ãªããã¨ãæå³ããã
-.TP
-*
-0x7f ãã大ããã®ãã¹ã¦ã®
-UCS æåã¯ã 0x80 ãã 0xfd ã¾ã§ã®ç¯å²ã®ãã¤ãã®ã¿ãå«ã
-å¤ãã¤ãæååã«ç¬¦å·åãããã
-ãããã£ã¦æååã«
-ASCII ãã¤ããå«ã¾ãããã¨ããªãã\(aq\e0\(aq ã \(aq/\(aq ã®åé¡ã¯çºçããªãã
-.TP
-*
-UCS\-4 æååã§ã¯è¾æ¸çã½ã¼ãã®é åºãä¿ãããã
-.TP
-*
-2^31 ãããã®ãã¹ã¦ã® UCS ã³ã¼ã ã UTF\-8 ã使ç¨ãã¦ç¬¦å·åã§ããã
-.TP
-*
-UTF\-8 符å·åã§ã¯ãã¤ã 0xc0, 0xc1, 0xfe, 0xff ã使ç¨ããããã¨ã¯ãªãã
-.TP
-*
-ASCII ã§ãªã UCS æåã®å¤ãã¤ãåã®æåã®ãã¤ãã¯ã
-常㫠0xc2 ãã 0xfd ã®ç¯å²ã§è¡¨ç¾ããã
-ãã®æåãä½ãã¤ãã§æ§æããã¦ãããã示ãã
-å¤ãã¤ãåã®æ®ãã®é¨åã®ãã¤ãã¯ããããã 0x80 ãã 0xbf ã®ç¯å²ã«ããã
-ããã«ããåæã容æã«ãªããã¹ãã¼ãã¬ã¹ãªç¬¦å·åãå¯è½ã«ãªãã
-ãã¤ãã®ç´å¤±ã«å¯¾ãã¦å
åºã«ãªãã
-.TP
-*
-UTF\-8 ã使ç¨ãã UCS æåã®ç¬¦å·åã¯æ大 6 ãã¤ãã®é·ãã«ãªãã
-ããããUnicode è¦æ ¼ã§ã¯ 0x10ffff ããå
ã®æåãæå®ããªãã®ã§ã
-Unicode æå㯠UTF\-8 ã§ã¯ 4 ãã¤ãã¾ã§ã«ãããªããªãã
-.SS 符å·å
-以ä¸ã®ãã¤ãåãæåã®è¡¨ç¾ã«ä½¿ç¨ãããã
-ã©ã®ãã¤ãåã使ç¨ãããã¯æåã® UCS ã³ã¼ãçªå·ã«ä¾åãã:
-.TP 0.4i
-0x00000000 \- 0x0000007F:
-0\fIxxxxxxx\fP
-.TP
-0x00000080 \- 0x000007FF:
-110\fIxxxxx\fP 10\fIxxxxxx\fP
-.TP
-0x00000800 \- 0x0000FFFF:
-1110\fIxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP
-.TP
-0x00010000 \- 0x001FFFFF:
-11110\fIxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP
-.TP
-0x00200000 \- 0x03FFFFFF:
-111110\fIxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP
-.TP
-0x04000000 \- 0x7FFFFFFF:
-1111110\fIx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP 10\fIxxxxxx\fP
-.PP
-\fIxxx\fP ãããã®é¨åã«ã¯ 2 é²æ°ã§è¡¨ãããæåã³ã¼ãã®ãããé¨åã対å¿ããã
-ãã®æåã表ç¾ããã®ã«æãçããã¤ãåã®ã¿ã使ç¨ã§ããã
-.PP
-0xd800\(en0xdfff (UTF\-16 ãµãã²ã¼ã) ã
-0xfffe, 0xffff (UCS ã® noncharacter) ã¨ãã UCS ã³ã¼ãã®å¤ã¯ã
-UTF\-8 ã«æºæ ããã¹ããªã¼ã ã«å
¥ããã¹ãã§ã¯ãªãã
-.SS ä¾
-Unicode æåã® 0xa9 = 1010 1001 (ã³ãã¼ã©ã¤ããã¼ã¯) 㯠UTF\-8 ã§ç¬¦å·åããã¨
-以ä¸ã®ããã«ãªãã
-.PP
-.RS
-11000010 10101001 = 0xc2 0xa9
-.RE
-.PP
-0x2260 = 0010 0010 0110 0000 (ä¸çå·) ã¯ä»¥ä¸ã®éãã
-.PP
-.RS
-11100010 10001001 10100000 = 0xe2 0x89 0xa0
-.RE
-.SS ã¢ããªã±ã¼ã·ã§ã³ã«ããã注æ
-ã¦ã¼ã¶ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ã® UTF\-8 ãµãã¼ããæå¹ã«ããããã«ã
-.PP
-.RS
-export LANG=en_GB.UTF\-8
-.RE
-.PP
-ã®ããã«ã㦠UTF\-8 ãã±ã¼ã«ãé¸æããªããã°ãªããªãã
-.PP
-使ç¨ããã¦ããæå符å·åãåãã£ã¦ããªããã°ãªããªã
-ã¢ããªã±ã¼ã·ã§ã³ã½ããã¦ã§ã¢ã¯ã
-以ä¸ã®ããã«ãã¦å¸¸ã«ãã±ã¼ã«ãè¨å®ãã¹ãã§ããã
-.PP
-.RS
-setlocale(LC_CTYPE, "")
-.RE
-.PP
-ã¾ããããã°ã©ãã¼ã¯
-.PP
-.RS
-strcmp(nl_langinfo(CODESET), "UTF\-8") == 0
-.RE
-.PP
-ã¨ããå¼ãè©ä¾¡ãããã¨ã§ã
-UTF\-8 ãã±ã¼ã«ãé¸æããã¦ãã¦ããã¬ã¼ã³ããã¹ãã®æ¨æºå
¥åºåã»ç«¯æ«ééä¿¡ã»
-ãã¬ã¼ã³ããã¹ããã¡ã¤ã«ã®å
容ã»ãã¡ã¤ã«åã»ç°å¢å¤æ°ã
-UTF\-8 ã§ç¬¦å·åããã¦ãããããã§ãã¯ãããã¨ãã§ããã
-.PP
-US\-ASCII ã ISO 8859
-ã¨ãã£ãã·ã³ã°ã«ãã¤ãã®ç¬¦å·åãç¿æ
£ã«ãªã£ã¦ããããã°ã©ãã¼ã¯ã
-ããã¾ã§ã® 2 ã¤ã®ä»®å®ã
-UTF\-8 ãã±ã¼ã«ã«ããã¦ã¯ææ©æå¹ã§ã¯ãªããªã£ããã¨ãç¥ã£ã¦ããã¹ãã ã
-1 çªç®ã®å¤æ´ç¹ã¯ã1 ãã¤ããå¿
ããã 1 ã¤ã®æåã«å¯¾å¿ããªãã¨ããç¹ã§ããã
-2 çªç®ã®å¤æ´ç¹ã¯ãæè¿ã®ç«¯æ«ã¨ãã¥ã¬ã¼ã¿ã¯
-UTF\-8 ã¢ã¼ãã«ããã¦ä¸å½èªã»æ¥æ¬èªã»éå½æé®®èªã®
-å
¨è§æåãã¹ãã¼ã¹ãå
¥ããªã (nonspacing)
-åææå (combining characters) ã«å¯¾å¿ãã¦ããã®ã§ã
-ASCII ã®ã¨ãã®ããã« 1 æååºåããå¾ã§
-ã«ã¼ã½ã«ãå¿
ããã 1 ã¤ã ãé²ããããã§ã¯ãªãã¨ããç¹ã§ããã
-ä»æ¥ã§ã¯ãæåãã«ã¼ã½ã«ã®ä½ç½®ãæ°ããã®ã«
-\fBmbsrtowcs\fP(3) ã \fBwcswidth\fP(3)
-ã¨ãã£ãã©ã¤ãã©ãªé¢æ°ã使ãã¹ãã§ããã
-.PP
-(VT100 端æ«ãªã©ã§ä½¿ããã) ISO 2022 符å·åå½¢å¼ãã
-UTF\-8 ã¸åæ¿ããå
¬å¼ãªã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ã¯ ESC % G ("\x1b%G") ã§ããã
-ããã«å¯¾å¿ãã UTF\-8 ãã ISO 2022 ã¸ã®ãªã¿ã¼ã³ã·ã¼ã±ã³ã¹ã¯
-ESC % @ ("\x1b%@") ã§ããã
-(G0 ã»ãã㨠G1 ã»ãããåæ¿ããã¨ãã£ã)
-ãã®ä»ã® ISO 2022 ã·ã¼ã±ã³ã¹ã¯ãUTF\-8 ã¢ã¼ãã§ã¯ä½¿ããªãã
-.SS ã»ãã¥ãªãã£
-Unicode 㨠UCS ã®è¦æ ¼ã§ã¯ã
-UTF\-8 ã®çæè
ã¯ã§ããã ãçãå½¢å¼ãç¨ããããè¦æ±ãã¦ããã
-ä¾ãã°ãå
é ãã¤ãã 0xc0 ã§ãããã㪠2 ãã¤ãåã
-çæããã®ã¯æºæ ãã¦ããã¨ã¯ãããªãã
-Unicode 3.1 ã§ã¯ãè¦æ ¼ã«æºæ ããããã°ã©ã ã¯
-æçã®è¡¨ç¾å½¢å¼ã§ã¯ãªãå
¥åãåãä»ããªããã¨ããè¦æ±äºé
ã追å ãããã
-ããã¯ã»ãã¥ãªãã£ä¸ã®çç±ã«ããã
-ã¦ã¼ã¶ã¼å
¥åãã»ãã¥ãªãã£ä¸ã®å±éºã«å¯¾ããã§ãã¯ãããå ´åã
-ããã°ã©ã 㯠ASCII çã® "/../" ã ";" ã "NUL" ã ãããã§ãã¯ãã
-æçã«ç¬¦å·åããã¦ãªããããã®æåãè¦éããã¦ãã¾ããããããªãããã§ããã
-ãªããªããæçã§ã¯ãªã UTF\-8 符å·åã§ã¯ããããã®æåã表ç¾ãããããªæ§ã
ãª
-ASCII 以å¤ã®å½¢å¼ãåå¨ããããã§ããã
-.SS æ¨æº
-.\" .SH AUTHOR
-.\" Markus Kuhn
-ISO/IEC 10646\-1:2000, Unicode 3.1, RFC\ 3629, Plan 9.
-.SH é¢é£é
ç®
-\fBlocale\fP(1), \fBnl_langinfo\fP(3), \fBsetlocale\fP(3), \fBcharsets\fP(7),
-\fBunicode\fP(7)
-.SH ãã®ææ¸ã«ã¤ãã¦
-ãã® man ãã¼ã¸ã¯ Linux \fIman\-pages\fP ããã¸ã§ã¯ãã®ãªãªã¼ã¹ 3.79 ã®ä¸é¨
-ã§ãããããã¸ã§ã¯ãã®èª¬æã¨ãã°å ±åã«é¢ããæ
å ±ã¯
-http://www.kernel.org/doc/man\-pages/ ã«æ¸ããã¦ããã