Simplified Chinese Solaris User's Guide

Creating Characters With sdtudctool

The sdtudctool utility supports bitmap, Type 1, and CID fonts. This section contains instructions for using the sdtudctool to create, input, and print new characters for the Simplified Chinese locales in the following code ranges.

Table 9–2 Code Points for Locales

Locale 

Code Ranges 

zh 

0xD7FA-0xD7FE 

zh.GBK 

0xA140-0xA7A0 

0xAAA1-0xAFFE 

0xF8A1-0xFEFE 

zh_CN.GB18030 

0xA140-0xA7A0 

0xAAA1-0xAFFE 

0xF8A1-0xFEFE 

How to Use the sdtudctool

You can use the following procedure to create characters in the zh locale.

  1. To start the utility, type the following command:


    system% sdtudctool
    

    The following window appears.

    The preceding context describes the graphic.
  2. Click the Character button.

    The following dialog box appears:

    The preceding context describes the graphic.
  3. Specify the code position of the new character.

  4. Create the outline or bitmap for the character using the drawing tools.

  5. Click save from the file menu to save the character.

    The new character(s) are saved in $HOME/.Xlocale/{locale}/fonts/UDC..

How to Specify sdtudctool Options

  1. Choose options from the file menu.

    The options dialog box appears.

    The preceding context describes the graphic.
  2. Turn on the append font path option to append the UDC font aliases to your font path.

  3. Turn on save font path option to add the font files to the system font path.

    The new font files located in $HOME/.Xlocale/{locale}/fonts/UDC) will be listed in the $HOME/.OWfontpath file and made available to the X server the next time you log in.

    If Save Font Path is off, the font files will still be saved in $HOME/.Xlocale/{locale}/fonts/UDC, but will not be added to the system fontpath the next time you log in.

  4. Choose one or more of the following point sizes for the bitmap fonts: 12, 14, 16, 20, 24.

How to View a Character Reference

  1. To view the character reference, click the icon below the help menu.

    The following window appears.

    The preceding context describes the graphic.
  2. To close the window, click the icon again.

How to Register the UDC to the NewPinYin Input Method

  1. Choose save from the file menu or choose the open dictionary tool option from the file menu. The sdtudc_register tool panel appears.

    The preceding context describes the graphic.
  2. Input the PinYin in the reading column.

    The preceding context describes the graphic.
    Note –

    The only the valid PinYin can be registered to NewPinyin input method.


  3. Click Confirm button

    The following dialog box appears.

    The preceding context describes the graphic.
  4. The UDC and its PinYin will be registered in /var/tmp/newpyudc.txt. Click OK in the dialog to confirm

How to Type the New Characters

Use the NewPinyin or NeiMa input method to type the UDC's PinYin spelling for the characters you create.

  1. Type shan in NewPinyin mode.

    The preceding context describes the graphic.
  2. Type D7FA in GB NeiMa mode.

    The preceding context describes the graphic.

How to Print the New Characters

  1. Set the fontpath for mp utility.


    system% setenv UDC_BASE $HOME/.Xlocale/zh
    
  2. Print a text file which contains UDCs by specifying the configuration file for UDC.


    system% /usr/openwin/bin/mp -u/usr/lib/lp/locale/zh/mp/mp.conf.U\
     udc.txt > udc.ps