/[ddp]/manuals/trunk/intro-i18n/intro-i18n.sgml
ViewVC logotype

Diff of /manuals/trunk/intro-i18n/intro-i18n.sgml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 953 by kubota, Mon Apr 10 11:14:36 2000 UTC revision 954 by kubota, Sat May 13 06:51:58 2000 UTC
# Line 1225  are no consoles which understand Unicode Line 1225  are no consoles which understand Unicode
1225  <sect id="output-x"><heading>X Clients</heading>  <sect id="output-x"><heading>X Clients</heading>
1226    
1227  <P>  <P>
1228  X itself is already internationalized.  Thus many languages can  X itself is already internationalized.  X11R5 has introduced
1229  be displayed if fonts are properly prepared.  It is users'  an idea of 'fontset' for internationalized text output.
1230  responsibility to prepare fonts and all what softwares have  Thus all what X clients have to do is to use the 'fontset'-related
1231  to do is to be careful to selection of fonts.  functions.
1232  </P>  </P>
1233    
1234  <P>  <P>
1235  Though codesets other than ASCII often contains multiple character sets,  An X font is related to a specific <em>character set</em>.  The
1236  fontsets for X are prepared for each character sets.  So a set of fontsets  conventional font-related functions can use one font at the same time.
1237  for set of character sets should be used instead of a single fontset.  However, text is expressed in a specific <em>codeset</em> and
1238    some codesets need multiple character sets.  Chinese, Japanese,
1239    and Korean are languages which need multiple character sets.
1240    These languages cannot be displayed using the conventional
1241    font-related functions.
1242  </P>  </P>
1243    
1244  <P>  <P>
1245  For example, C programs using Xlib should use series of functions  'fontset' is an idea that multiple fonts are selected and construct
1246  related to XFontSet structure instead of functions for XFontStruct  a set of fonts.  Using fontset enables to display international texts.
1247  structure.  </P>
1248    
1249    <P>
1250    Here is a list of structure and functions of conventional 'Font'-related
1251    and internationalized 'FontSet'-related.  Consult manpages for detail.
1252  <example>  <example>
1253  Font              | FontSet  Font              | FontSet
1254  ==================+====================  ==================+====================
# Line 1252  XUnloadFont()     | XFreeFontSet() Line 1260  XUnloadFont()     | XFreeFontSet()
1260  ------------------+--------------------  ------------------+--------------------
1261  XQueryFont()      | XFontsOfFontSet()  XQueryFont()      | XFontsOfFontSet()
1262  ------------------+--------------------  ------------------+--------------------
1263  XDrawString()     | XmbDrawString()  XDrawString() and | XmbDrawString() or
1264  XDrawString16()   | XwcDrawString()  XDrawString16()   | XwcDrawString()
1265  ------------------+--------------------  ------------------+--------------------
1266  XDrawText()       | XmbDrawText()  XDrawText() and   | XmbDrawText() or
1267  XDrawText16()     | XwcDrawText()  XDrawText16()     | XwcDrawText()
1268  ------------------+--------------------  ------------------+--------------------
1269  </example>  </example>
# Line 1266  If a software uses the left-hand functio Line 1274  If a software uses the left-hand functio
1274  using the corresponding right-hand functions in the table.  Note that  using the corresponding right-hand functions in the table.  Note that
1275  this table is not perfect but only for an example.  Since these  this table is not perfect but only for an example.  Since these
1276  right-hand functions use wide characters and multibyte characters  right-hand functions use wide characters and multibyte characters
1277  in C, setlocale() has to be called in advance.  in C, <tt>setlocale()</tt> has to be called in advance.
1278  </P>  </P>
1279    
1280  <P>  <P>
# Line 2103  to this chapter. Line 2111  to this chapter.
2111    
2112  &minicom;  &minicom;
2113  &user-ja;  &user-ja;
2114    &fontset;
2115    
2116    
2117    

Legend:
Removed from v.953  
changed lines
  Added in v.954

  ViewVC Help
Powered by ViewVC 1.1.5