|
XCIN Mail-list
|
| Indexed By Date: [Previous] [Next] | Indexed By Thread: [Previous] [Next] |
| Subject: | Re: [FWD] Re: [I18n] On the Xutf8* funtions and the future of UTF-8 l |
| From: | thhsieh@linux.org.tw |
| Date: | Wed, 20 Dec 2000 08:54:45 +0800 |
| To: | xcin@tlug.sinica.edu.tw |
| Reply-To: | xcin@linux.org.tw |
: ³o¬O»~·|... Xutf8* == Xwc*¡A¡A³oÃä©Ò¿×«D utf8 locale «üªº¬O
: wc != UCS4 ªº locale¡A§Ú·Q zh_TW.Big5 ¦b¤W¦¸©~¤h¤j§ïª©¥H«á
: ªì¨Bºâ¬O²Å¦X³oÓ±ø¥ó¤F§a...
:
: ²³æªº»¡¡An³Ð¤@Óµe utf8 ¦r¤¸ªº API¡A©Ò¦³ªº¦r«¬¤]¥Î utf8 ²Î
: ¤@½s½X¡A... µM«á§â Xwc* alias ¨ì Xutf8*¡A¦p¦¹¤@¨Ó©Ò¦³ wc ¤£¬O
: UCS4 ªº locale ´N¦Û°Ê¦º¥ú¥ú¤F... Markus ¬O»{¬°¦p¦¹¤@¨Ó¥i¥H±j
: ¢¤j®a shift ¨ì¥H unicode ¬° internal code ªº locale¡A¥H«áµøµ¡
: ¶¡ pass ¦r¦êª½±µ¥Î wc (unicode) ´N¥i¥H¤F¡ACT ¥i¥H¥á¤F...
·Ó³o»ò»¡¡AÀ³¸Ó¬O¥Ø«e©Ò¦³¶i¤J glibc-2.2 source tree ªº locale ³£²Å
¦X±ø¥ó¡C¤]´N¬O»¡¡An²Å¦X±ø¥óªÌ¥²¶·¨t²Îªº libc ªº wc °ò©³¦r¶°±Ä¥Î
UCS4¡C³o¤@ÂI GNU/Linux ¤w¸g¹LÃö¤F¡A¦ý FreeBSD ¥i¯àÁÙ¨S .... ¨ä¥L
ªº UNIX ¤]¥i¯àÁÙ¨S ....
©Ò¥H¡A¨ì®É®£©ÈÁÙ¦³±o§n :-))
ps. ¤S¤p¦n©_¤@¤U¡A³oÓ Xutf8* == Xwc* ªº´£®×¬O X Consortium ´£¥X
¨Óªº¡HÁÙ¬O XFree86 ¦Û¤v·Q¨«³o±ø¸ô¡H
: > ¦pªG·í¯u«ö·Ó³o¼Ëªº utf8 locale ÂŹϨ«¡Aªí¥Ü»¡ xcin-2.5 ¥H¤Î glibc,
: > FreeBSD µ¥µ¥µo®i¦h¦~ªº I18N ¬[ºc¥þ³¡¥Õ§@¥\¤F¡A§Æ±æ¤£n´c¹Ú¦¨¯u¤~¦n :-)
: > Á`ı±o¦ü¥G¦³«Ü¦h¤H±N unicode, utf8 ¹L«×¯«¤Æ¤F¡AÁÙn¨D¤j®a±Ë±ó¦³¨Ó
: > ¥þ½L±µ¨ü¡C³o¼Ëªº·Qªk§Ú¹ê¦b¤£¤Ó¯à±µ¨ü¡C
:
: ¤£¡A¦³ Xutf8* ·|Åý±z¥Í¬¡§ó²³æ... ©Ò¦³ XLib ªº message/text string
: ¶Ç°e¥þ³¡²Î¤@¦¨ Unicode¡A±zªºÂà½X¼h´N¥i¥H¬Ù¤F... :)
§ÚÁ¿ªºÂà½X¼h¤£¯à»P³oÃä²V¬°¤@½Í¡C³o¬O¿é¤Jªkµ{¦¡©Ò»Ýªº¯S»sªºÂà½X¼h¡C
¥Ø«e¥H UCS4 ¬°´C¤¶ªºÂà½X¤u§@¦³«Ü¦h°ÝÃD¡A¨ä¤¤¤@Ó°ÝÃD´N¬O¦P¤@Ó²
Åé»PÁcÅé¦r¨ä¹ï¬Mªº UCS4 ½X¤£¤@¼Ë¡A¦]¦¹³o¨âÓ¦rÁöµM¦b¤¤¤å¬O¦P¤@Ó
·N«ä¡A¦ý¸g¥Ñ UCS4 ¬°´C¤¶«oµLªk¤¬Âà¡C
¦Ó¥B¡A§Ṳ́]ª¾¹D gb2312 ¤¤¦³¨Ç¦r¹ï¨ì big5 ¨Ó¡A¬O¤@¹ï¦hªº¡C¨Ò¦p¥L
Ì¥u¦³¤@Ó "¨½" ¦r¡A¦Ó§Ú̳oÃä´N¦³ "¨½"¡B"¸Ì"¡B"ùØ" .... etc¡C°µ
¬°¤@Ó¿é¤Jªk¡A¦pªG¨Ï¥Î gb2312 ªÌ¥´¥X¤@Ó "¨½" ¦rnÂন big5 ®É¡A
¥²¶·n´£¨Ñ¤@Ó¦CªíÅý¨Ï¥ÎªÌ¦³¾÷·|¿ï¾Ü¨ì©³n¥Î¨º¤@Ó¦r¡C
¥i¥H»¡¡A³oÓÂà½X¼h¦³ÂI¬O°w¹ï big5 <==> gb ¦Ó¼gªº¡A¦ý¥i¥H¼g±o§ó
general, ¥H´£¨Ñ iconv() °µ¤£¨ìªº¥\¯à¡C¦Ó¥B¡A³oÓ¥i¯àn°µ¬°¤@Ó¿W
¥ßªº lib ¨Ó¼g¡A¦Ó¤£ª½±µ¼g¦b xcin ¸ÌÀY¡C
: µM«á©Ò¦³ªºµe¦rn¦r«¬³£¥Î Unicode¡A²Î¾ã¤£¦P locale ¦r«¬»Ý¨D
: ªº¤O®ð¤]¬Ù¤F...
©Ò¥H¡A¥H«á¦U locale ªºµe¦r¤u§@¥þ³¡Âন utf8 ©Î UCS4 ¨Óµe¤F¡H¤]¤£
¥Î fontset ¤F¡H¨t²Î¥u»Ý¸Ë¤@®M utf8 ¦r«¬´N¥i¥H¤F¡H
¨ºÂªº style ÁÙ·|³Q¤ä´©¶Ü¡H Hmmm .... §Ú¦b·Q backward compatibility
ªº°ÝÃD¡A¤@Ó portable ªºµ{¦¡³Ì¶Ë¸£µ¬ªº¦a¤è´N¬O backward compatibility .... :-)
: > ¦ý§Úµo²{ Xlib ªº°ò¥»µe¦r¨ç¦¡¥u¦³¨âºØ¡A¤@¬°µe³æ¦ì¤¸¤º½Xªº¦r¡A¥t¤@¬°µe
: > Âù¦ì¤¸¤º½Xªº¦r¡C³o¦b³B²z Big5 ©Î GB2312 ¬O¨S¤°»ò°ÝÃD¡A¹J¨ì¤º½Xªø«×¤£
: > ©w¡A©ÎªÌ¦³ª¬ºA°Ï§Oªº½s½X¤è¦¡¡A¦p JIS, shift-JIS, µ¥¡A¸Ó«ç»ò¿ì©O¡H¬O
: > Xlib ¥ý±N³o¨Ç¦r¦ê¦b¤º³¡Âà½X«á¡A¦A¥Î¨º¨âºØµe¦r¨ç¦¡¨Óµe¦r¦ê¶Ü¡H
: > ¦Ü©ó utf8, ¬O¤£¬O¥ýÂন UCS2, ¦A¥ÎµeÂù¦ì¤¸¤º½Xªº¨ç¦¡¨Óµe©O¡H
:
: ¤£n¦Û¤v§@¡A§ä¤@¤U²{¦¨ªº¨ç¦¡®w§Û¤@¤U... §Ú¤Ó¤[¨Sª±¤F¤@¤U¤l
: ´£¤£¥X¦W¦r¨Ó¡A¦ý½T«H¬O¦³ªº...
Thanks, §Ú¦A§ä§ä¬Ý¦n¤F ....
¤£¦n·N«ä¦A°Ý¤@¤U¡A²{¶¥¬q¨º¨Ç¥i¥Hµe utf8 ¦r¦êªºµ{¦¡¬O«ç»ò¹ê§@ªº¡H
³£¬On¦³ utf8 ½s½Xªº¦r«¬¤~¦æ¶Ü¡HÁÙ¬O¥¦Ì¡u°÷Áo©ú¡v¥i¥H±N utf8 ½s
½XÂର¨t²Î¤W§ä±o¨ì¦r«¬ªº½s½X¡AµM«á¦A¨Óµe¦r©O¡H
T.H.Hsieh
To Unsubscribe: send mail to majordomo@linux.org.tw
with "unsubscribe xcin" in the body of the message
| Indexed By Date | Previous: |
Re: [FWD] Re: [I18n] On the Xutf8* funtions and the future of UTF-8 locales From: edward@linux.dreamer.org (Edward Lee) |
|---|---|---|
| Next: |
[FWD][I18n] Re: misunderstanding about Xutf8* API From: Edward Lee <edward.@kimo.com> |
|
| Indexed By Thread | Previous: |
Re: [FWD] Re: [I18n] On the Xutf8* funtions and the future of UTF-8 l From: Platin.bbs@openbazaar.net (¤p¦ä) |
| Next: |
Re: [FWD] Re: [I18n] On the Xutf8* funtions and the future of UTF-8 l From: Platin.bbs@openbazaar.net (¤p¦ä) |