*** LanguageSetup.gsdoc.orig Tue Jul 29 14:13:49 2003 --- LanguageSetup.gsdoc Tue Jul 29 14:15:59 2003 *************** *** 13,19 **** yjchenx@hotmail.com ! 2.0 2003-07-21 This article illustrates how to set up GNUstep for the East --- 13,19 ---- yjchenx@hotmail.com ! 2.1 Beta 2003-07-21 This article illustrates how to set up GNUstep for the East *************** *** 49,55 **** Set the NSGlobalDomain variables such as NSFont, ! NSFontSize, and NSUserFont, to name a few, to appropriate values using the GNUstep's utility defaults. --- 49,56 ---- Set the NSGlobalDomain variables such as NSFont, ! NSFontSize, NSUserFont, and NSLanguages ! , to name a few, to appropriate values using the GNUstep's utility defaults. *************** *** 189,201 **** the characters correctly.

! At least, you need to change the user default value NSFont. For example, suppose you have a hypothetical .nfont package ! called MyFont and want to use it to display the characters. To do this, use the GNUstep's utility defaultsas follows:

$ defaults write NSGlobalDomain NSFont MyFont

Depending on a situation, you may also need to set NSUserFont --- 190,205 ---- the characters correctly.

! At least, you need to change the user default value NSFont, ! and NSBoldFont. For example, suppose you have a hypothetical .nfont package ! called MyFont and MyBoldFont, ! and want to use it to display the characters. To do this, use the GNUstep's utility defaultsas follows:

$ defaults write NSGlobalDomain NSFont MyFont + $ defaults write NSGlobalDomain NSBoldFont MyBoldFont

Depending on a situation, you may also need to set NSUserFont *************** *** 214,225 **** --- 218,243 ----

$ defaults delete NSGlobalDomain NSFont + $ defaults delete NSGlobalDomain NSBoldFont

For further details about the user default values, the reader can refer to the documents DefaultsSummary.html and NSFont.html shipped with the GNUstep core library package.

+

+ You can also change the default language (English) into your native language. + If an application has a directory called MyLanguage.lproj in the bundle + (could be in Resources/ directory), + it may be localized for that language. To enable this functionality, + which displays the interface in that language, you need to set the user + default value NSLanguages to the language. + Otherwise, it will fall back to the default one (English). + To change the default language, use +

+ + $ defaults write NSGlobalDomain NSLanguages "(MyLanguage)" + Examples *************** *** 233,286 **** LC_CTYPE, and LANG.

! ! Chinese ! Traditional Chinese ! ! ! Environmental Variables: ! ! ! GNUSTEP_STRING_ENCODING=NSBIG5StringEncoding ! LC_CTYPE=zh_TW.Big5 ! ! ! ! ! .nfont package: ! !

! MingTi.nfont (using Arphic font as example) !

!
! ! ! MingTi.nfont/FontInfo.plist: ! ! ! { ! Face = ( ! { ! PostScriptName = "MingTi"; ! Name = "Regular"; ! Files = ("bsmi00lp.ttf") ! } ! ); ! } ! ! ! ! ! User Defaults: ! ! ! $ defaults write NSGlobalDomain NSFont MingTi ! !
--- 251,318 ---- LC_CTYPE, and LANG.

! ! Traditional Chinese ! Environmental Variables: ! ! GNUSTEP_STRING_ENCODING=NSBIG5StringEncoding ! LC_CTYPE=zh_TW.Big5 ! ! ! ! ! .nfont package: ! !

! Here, use Arphic MingTi font as example !

!

! First, make a directory for an .nfont package you are going to make: !

! ! $ cd $GNUSTEP_USER_ROOT/Library/Fonts (or $GNUSTEP_SYSTEM_ROOT/Library/Fonts) ! $ mkdir 'MingTi.nfont' ! $ cd 'MingTi' ! !

! Make a copy of the font file in the directory. !

! ! $ ln -s /usr/X11R6/lib/X11/fonts/local/bsmi00lp.ttf ./ ! !

! And write a FontInfo.plist (see below). !

!
! ! ! MingTi.nfont/FontInfo.plist: ! ! ! { ! Face = ( ! { ! PostScriptName = "MingTi"; ! Name = "Regular"; ! Files = ("bsmi00lp.ttf") ! } ! ); ! } ! ! ! ! ! User Defaults: ! ! ! $ defaults write NSGlobalDomain NSFont MingTi ! $ defaults write NSGlobalDomain NSBoldFont MingTi ! $ defaults write NSGlobalDomain NSLanguages "(TraditionalChinese)" !