









                 XX ǡ١



                      _Y_o_s_h_i_o _H_o_r_i_u_c_h_i
                         IBM Japan




























































Copyright (C) IBM Corporation 1994

All Rights Reserved

License to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is
hereby granted, provided that the above copyright notice
appear in all copies and that both that copyright notice and
this permission notice appear in supporting documentation,
and that the name of IBM not be used in advertising or pub-
licity pertaining to distribution of the software without
specific, written prior permission.

IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FIT-
NESS, AND NONINFRINGEMENT OF THIRD PARTY RIGHTS, IN NO EVENT
SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUEN-
TIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.





Copyright (C) 1994 X Consortium

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documenta-
tion files (the ``Software''), to deal in the Software with-
out restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the fol-
lowing conditions:

The above copyright notice and this permission notice shall
be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PUR-
POSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE X CONSOR-
TIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.













Except as contained in this notice, the name of the X Con-
sortium shall not be used in advertising or otherwise to
promote the sale, use or other dealings in this Software
without prior written authorization from the X Consortium.



_X _W_i_n_d_o_w _S_y_s_t_e_m is a trademark of X Consortium, Inc.


























































11..  ̻

X ɥƥˤƤϡX ǡ١ϥ桼
ĶΤ˰¸ʬޤǤ롣ǡ
1ĤޤʣΥƥ꡼ǹ롣줾Υ
꡼ϥ饹ȥ֥饹ʤ롣

Υǡ١ ASCII Υץ졼ƥȤͿ
ǡ桼ˤƤѹưפǤ롣ˤꡢ桼
Xlib ΤΤѹä뤳ȤʤXlib ιݲ줿ʬ
ư򥫥ޥ뤳ȤǤ롣

ΥɥȤǤϰʲιܤ˴ؤԤ:

          ǡ١եޥåȤ

          ץˤǡ١

ƤΥץåȥեɬפȤޤ᤿Ԥ
ȤϺǤ뤿ᡢǤϽʥǡ١եޥåȤ
롣ǡ١Ѳǽʥȥ꡼ϼ
¸Ǥ롣


22..  ǡ١եޥåȤ

X ǡ١1ĤޤʣΥƥ꡼ޤ
Ǥ롣ΥǤϡ줾Υƥ꡼Υե
ޥåȤˤĤ롣

ƥ꡼1ĤޤʣΥ饹ʤ롣줾
Υ饹,饹̾ȥ饹ͤȤ뤤Ϻ({)ȱ
(})ǳ줿ʣΥ֥饹ġ

ʥСʸ(#)ȤäƥȤ֤ȤǤ롣
Ƭ˥ʥСʸ֤ȡιΤȤȤ
롣ޤǤդζʸθ˥ʥСʸ֤ȡ
ΰ(ʥСʸޤ)ȤȤʤ롣
˥Хåå(\)֤ȤǡԤ˹Ԥ³뤳
Ǥ롣ιϢ³ʸϤϾä롣ʸ򥨥
פƥȹԤ򼡤ιԤ³뤳ȤϤǤʤ

X ǡ١Ǥ XPCS(X Portable Character Set, X
ݡ֥ʸ)ѤǤ롣ͽ󤵤Ƥ륷ܥ
ϰ(")ʥС(#)ߥ(;)Хå
(\)({)(})Ǥ롣

ƥ꡼ΥեޥåȤʲ˼:

     CategoryDefinition   ::=   CategoryHeader CategorySpec CategoryTrailer
     CategoryHeader       ::=   CategoryName NL
     CategorySpec         ::=   { ClassSpec }
     CategoryTrailer      ::=   "END" Delimiter CategoryName NL




                              11





XX ǡ١                 XX1111,, ꡼ 66..44


     CategoryName         ::=   String
     ClassSpec            ::=   ClassName Delimiter ClassValue NL
     ClassName            ::=   String
     ClassValue           ::=   ValueList | "{" NL { ClassSpec } "}"
     ValueList            ::=   Value | Value ";" ValueList
     Value                ::=   ValuePiece | ValuePiece Value
     ValuePiece           ::=   String | QuotedString | NumericString
     String               ::=   Char { Char }
     QuotedString         ::=   """ QuotedChar { QuotedChar } """
     NumericString        ::=   "\\o" OctDigit { OctDigit }
                            |   "\\d" DecDigit { DecDigit }
                            |   "\\x" HexDigit { HexDigit }
     Char                 ::=   <NL, Space, פƤʤͽ󥷥ܥ XPCS ʸ>
     QuotedChar           ::=   <פƤʤ """  XPCS ʸ>
     OctDigit             ::=   <"0" - "7" ϰϤʸ>
     DecDigit             ::=   <"0" - "9" ϰϤʸ>
     HexDigit             ::=   <"0" - "9", "a" - "f", "A" - "F" ϰϤʸ>
     Delimiter            ::=    Space { Space }
     Space                ::=   <ʸ> | <ʿʸ>
     NL                   ::=   <ʸ>


ľС(|)Ƕڤ줿Ǥϡɤ餫ɽ
({...})ϡ̤ǳ줿Ǥ0İʾη֤ɽ
([...])ϡάǽǤ뤳Ȥɽ("...")ϥ
ƥʸϤि˻Ȥ

Хåå(NumericString ƬʸǤʤ)ϥ
ʸǧΤǡμ1ʸϥƥʸȤ
롣㤨С2ʸΥ ``\"'' (Хåå
θ˰䤬)1ĤΰʸȤǧ졢
롣(Delimiter ǤϤʤȤ䥨פ⤵
Ƥʤ)ʸ̵뤵롣


33..  ǡ١

ѤǤ륫ƥ꡼ȥ饹ϼ¸Ǥ롣ʤʤ顢ۤ
ץåȥեǤϰۤʤν礬ɬפȤ뤫Ǥ
롣㤨СƥΥ뤬ץåȥե⤢
С줬ʤץåȥե⤢롣ˡץåȥե
बƥΥäƤȤƤ⡢εǽۤʤ
Ȥ⤢롣

ߤΥץˤƤϡʲ˵󤲤륫ƥ꡼Ѥ
롣

     XLC_FONTSET   XFontSet طξ
     XLC_XLOCALE   ʸʬࡦѴξ








                              22





XX ǡ١                 XX1111,, ꡼ 66..44


44..  XXLLCC__FFOONNTTSSEETT ƥ꡼

XLC_FONTSET ƥ꡼ XFontSet Ϣξ롣
ƥ꡼ CHARSET_REGISTRY-CHARSET_ENCODING ̾ȥޥåԥ
ΰ (GL, GR)ϥ᥽å(Output Method, OM)
Ѥ롣

     ------------------------------------------------------------------------
     饹            ѡ饹   
     ------------------------------------------------------------------------
     fsN                                NܤΥեȥå (N=0,1,2, ...)

     charset           fsN              󥳡ǥ̾Υꥹ
     font              fsN              եȥ󥳡ǥ̾Υꥹ
     ------------------------------------------------------------------------



fsN
     N ܤʸΥ󥳡ǥ󥰾ġ N
     ϥǥåֹ(0,1,2,...)Ǥ롣ߤΥ
     4ĤʸѤǤˤϡ4ĤΥեȥ
     (fs0, fs1, fs2, fs3)ʤФʤʤΥ
     饹ˤ2ĤΥ֥饹 `charset'  `font' 롣

charset
     ΥեȥåȤФ Xlib ŪѤ륨
     ǥ󥰾ꤹ롣ͤν񼰤ϰʲǤ;

          EncodingInfo   ::=   EncodingName [ ":" EncodingSide ]
          EncodingName   ::=   CHARSET_REGISTRY-CHARSET_ENCODING
          EncodingSide   ::=   "GL" | "GR"

     CHARSET_REGISTRY-CHARSET_ENCODING ξܺ٤ˤĤ
     ϡɥȡX եȵ(X Logical Font
     Descriptions)פ򻲾Ȥ뤳ȡ

     :
          ISO8859-1:GL

font
     ΥեȥåȤФŬڤʥեȤ򸡺뤿
     ˻Ȥ󥳡ǥ󥰾ΥꥹȤꤹ롣Ǥ⺸
     Υȥ꡼Ǥ⤤ͥ٤ġ


55..  XXLLCC__XXLLOOCCAALLEE ƥ꡼

XLC_XLOCALE ƥ꡼ʸʬࡢѴʳʸ°
롣







                              33





XX ǡ١                 XX1111,, ꡼ 66..44


     ------------------------------------------------------------------------------------------------
     饹                  ѡ饹   
     ------------------------------------------------------------------------------------------------
     encoding_name                            ɥå̾
     mb_cur_max                               MB_CUR_MAX
     state_depend_encoding                    եȾְ¸Ǥ뤫ɤ
     wc_encoding_mask                         磻ɥ饯ʸβϤѤ
     wc_shift_bits                            磻ɥ饯ȥޥХȤѴѤ
     csN                                      N ܤʸ(N=0,1,2,...)

     side                    csN              ޥåԥΰ(GL, )
     length                  csN              ʸĹ
     mb_encoding             csN              ޥХʸβϤѤ
     wc_encoding             csN              磻ɥ饯ʸβϤѤ
     ct_encoding             csN              ѥɥƥȤФ륨󥳡ǥ̾Υꥹ
     ------------------------------------------------------------------------------------------------



encoding_name
     ߤΥΥɥå̾ꤹ롣

mb_cur_max
     ޥХʸ˵ΥХĹꤹ롣
     ϡISO/IEC 9899:1990 C Language Standardפ
     MB_CUR_MAX б롣

state_depend_encoding
     ߤΥ뤬եȾְ¸Ǥ뤫ɤꤹ
     롣ͤ "True" ޤ "False" ǤʤФʤʤ

wc_encoding_mask
     磻ɥ饯ʸϤݤ˻Ȥӥåȥޥ
     ꤹ롣ƥ磻ɥ饯ˤϤΥӥåȥޥȤ
     ӥåñ̤ AND 黻Ԥ졢줫 `wc_encoding'
     Ȥäƥˡʸʬव롣

wc_shift_bits
     ޥХʸ磻ɥ饯(뤤Ϥε)
     ѴԤ˥եȤӥåȿꤹ롣

csN
     NܤʸФʸνˤĤƤξġ
      N ϥǥåֹ(0,1,2,...)Ǥ롣ߤΥ
     4Ĥʸ礬ѤǤ硢c0, cs1, cs2,
     cs3 ꤷʤФʤʤΥ饹ˤ5ĤΥ֥
     饹(`side', `length', `mb_encoding', `wc_encoding',
     `ct_encoding')롣

side
     ʸΥޥåԥΰꤹ롣ͤΥե
     ޥåȤʲ˼;





                              44





XX ǡ١                 XX1111,, ꡼ 66..44


          Side   ::=   EncodingSide [``:Default'']

     եå ":Default" ꤹ뤳ȤǤ롣Υ
     եåϡꤵ줿ΰ°ʸϽ֤Ǥ
     ʸ˥ޥåפ뤳Ȥ򼨤

length
     ʸΥޥХʸΥХĹꤹ롣
     ϥ󥰥륷եȥ󥹤ĹޤǤϤʤʤ

mb_encoding
     ޥХʸϤ뤿˻Ȥեȥ
     ΥꥹȤꤹ롣ͤΥեޥåȤʲ˼;

          MBEncoding        ::=   ShiftType ShiftSequence
                              |   ShiftType ShiftSequence ";" MBEncoding
          ShiftType         ::=   "<SS>" | "<LSL>" | "<LSR>"
          ShiftSequence     ::=   SequenceValue | SequenceValue ShiftSequence
          SequenceValue     ::=   NumericString

          եȤΥ:
               <SS>         󥰥륷եȥ󥹤򼨤
               <LSL>        å󥰥եȤκ󥹤򼨤
               <LSR>        å󥰥եȤα󥹤򼨤

     :
          <LSL> \x1b \x28 \x4a; <LSL> \x1b \x28 \x42


wc_encoding
     磻ɥ饯ʸϤݤ˻Ȥͤꤹ
     롣 `wc_encoding_mask' Ѥƥӥåñ̤ AND 黻
     ԤäˡѤƳƥ磻ɥ饯Фʸ
     ꤹ롣ͤƤ csN 饹ǥˡ
     ʤФʤʤ

ct_encoding
     ѥɥƥȤФƻȤȤǤ륨󥳡
     ǥ󥰾ΥꥹȤꤹ롣


66..  XX ǡ١

ʲ X ǡ١ե򼨤


     #  $TOG: LocaleDB.ms /main/7 1997/11/04 18:03:16 kaleb $
     #  XLocale Database Sample for ja_JP.euc
     #

     #
     #    XLC_FONTSET category
     #
     XLC_FONTSET



                              55





XX ǡ١                 XX1111,, ꡼ 66..44


     #    fs0 class (7 bit ASCII)
     fs0  {
          charset        ISO8859-1:GL
          font           ISO8859-1:GL; JISX0201.1976-0:GL
     }
     #    fs1 class (Kanji)
     fs1  {
          charset        JISX0208.1983-0:GL
          font           JISX0208.1983-0:GL
     }
     #    fs2 class (Half Kana)
     fs2  {
          charset        JISX0201.1976-0:GR
          font           JISX0201.1976-0:GR
     }
     #    fs3 class (User Defined Character)
     # fs3     {
     #    charset        JISX0212.1990-0:GL
     #    font           JISX0212.1990-0:GL
     # }
     END XLC_FONTSET

     #
     #    XLC_XLOCALE category
     #
     XLC_XLOCALE

     encoding_name       ja.euc
     mb_cur_max          3
     state_depend_encoding    False

     wc_encoding_mask    \x00008080
     wc_shift_bits       8

     #    cs0 class
     cs0  {
          side           GL:Default
          length         1
          wc_encoding    \x00000000
          ct_encoding         ISO8859-1:GL; JISX0201.1976-0:GL
     }
     #    cs1 class
     cs1  {
          side           GR:Default
          length         2

          wc_encoding    \x00008080

          ct_encoding         JISX0208.1983-0:GL; JISX0208.1983-0:GR;\
                         JISX0208.1983-1:GL; JISX0208.1983-1:GR
     }

     #    cs2 class
     cs2  {



                              66





XX ǡ١                 XX1111,, ꡼ 66..44


          side           GR
          length         1
          mb_encoding    <SS> \x8e

          wc_encoding    \x00000080

          ct_encoding         JISX0201.1976-0:GR
     }

     #    cs3 class
     # cs3     {
     #    side           GL
     #    length         2
     #    mb_encoding    <SS> \x8f
     # #if HasWChar32
     #    wc_encoding    \x20000000
     # #else
     #    wc_encoding    \x00008000
     # #endif
     #    ct_encoding    JISX0212.1990-0:GL; JISX0212.1990-0:GR
     # }

     END XLC_XLOCALE


77..  ʸʸ


[1] _I_S_O_/_I_E_C _9_8_9_9_:_1_9_9_0 _C _L_a_n_g_u_a_g_e _S_t_a_n_d_a_r_d

[2] _X _L_o_g_i_c_a_l _F_o_n_t _D_e_s_c_r_i_p_t_i_o_n_s


























                              77


