home *** CD-ROM | disk | FTP | other *** search
/ World Book - Encyclopedia of Science / WBScience.iso / DATA / QryConfig / Verity / sample.cs < prev    next >
Text File  |  1998-04-26  |  3KB  |  119 lines

  1. #
  2. # Sample charset file for VDK 2.0.
  3. #
  4. $control: 1
  5. charset:
  6. {
  7.   #
  8.   # Description: Name another character set from which to inherit the 
  9.   # initial set of attributes. Any settings in this file will overwrite 
  10.   # that initial set of attributes.
  11.   #
  12.   # Default: 850
  13.   #
  14.   # This keyword is optional
  15.   inherit: charset-name
  16.  
  17.   #
  18.   # Description: This gives the major and minor version number of the
  19.   #   the current charset. This information is stamped into collections
  20.   #   when they are created so that you can tell which version of a
  21.   #   charset the collection is created with.
  22.   #
  23.   # Default: The default version is 1.0
  24.   #
  25.   # These keywords are optional
  26.   Major-Version: number
  27.   Minor-Version: number
  28.  
  29.   #
  30.   # Description: Load in a library of routines to implement functional 
  31.   # callbacks for this character set. Fill in a normal DDA spec for a library 
  32.   #
  33.   # Example:  
  34.   #  driver: "DLL:/usr/verity/bin/8859.so:Init8859"
  35.   #
  36.   # This keyword is optional
  37.   driver: dda-spec
  38.  
  39.   #
  40.   # Description: What type of character set is this?
  41.   #
  42.   # This keyword is required
  43.   type: "singlebyte" or "multibyte"
  44.  
  45.   #
  46.   # Description: list shift-in and shift-out characters if this is a 
  47.   # shifted multibyte character set.
  48.   #
  49.   # Note: the type keyword must be set to multibyte. A multibyte
  50.   # charset is flagged as shifted multibyte by putting in one of these 
  51.   # shift keywords.
  52.   #
  53.   # This keyword is required
  54.   shift: "shift-in-char" "shift-out-char"
  55.  
  56.   #
  57.   # Description: If there is a character that is defined to be invalid 
  58.   # put it here.
  59.   #
  60.   # Default: none
  61.   #
  62.   # This keyword is optional
  63.   invalid: "char"
  64.  
  65.   #
  66.   # Description: Define an 8 bit character set mapping tables. 
  67.   #
  68.   # Note: It may only be used for an 8bit to 8bit mapping.  
  69.   # These are the same format as in the old vdk10.cmp files, but
  70.   # the difference is that these tables show how to EXPORT from this 
  71.   # character set to an external character set, whereas the old .cmp files 
  72.   # showed how to import.
  73.   #
  74.   # You can specify 0 or more tables, one for each external charset you 
  75.   # wish to support.
  76.   table: name
  77.   {
  78.     text: 0  "\x00\x01\x02 ..."
  79.     text: 16 "\x00\x01\x02 ..."
  80.     ...
  81.   }
  82.  
  83.   #
  84.   # Description: Multibyte character set mapping table.
  85.   # any charset (8bit, multibyte) -> any external charset (8bit, multibyte)
  86.   #
  87.   # Note: If this character set is a multibyte character set, you can only 
  88.   # use this type of mapping and not the 8bit table above.
  89.   #
  90.   # You can specify 0 or more tables, one for each external charset you 
  91.   # wish to support.
  92.   mtable: name type
  93.   {
  94.     # invalid char for the external char set
  95.     invalid: "char"
  96.     # shift characters for the external char set
  97.     shift: "shift-in-char" "shift-out-char"
  98.  
  99.     map: "src-char" "dest-char"
  100.     map: "src-char" "dest-char"
  101.     ...
  102.     map: "src-char" "dest-char"
  103.   }
  104.  
  105.   #
  106.   # Description: List of all valid characters in this charset to generate 
  107.   # a "next char" table for non-shifted multibyte charsets. This table 
  108.   # is used to iterate through and manipulate multibyte strings.
  109.   #
  110.   # This keyword is required for non-shifted multibyte character sets only.
  111.   nextchar:
  112.   {
  113.     char: "char"
  114.     char: "char"
  115.     char: "char"
  116.     ...
  117.   }
  118. }
  119.