home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / i18nv104.zip / SAMPLE / IS / READ.ME < prev   
Text File  |  1996-02-13  |  4KB  |  103 lines

  1.  
  2. ===============================================================================
  3.                   Internationalization (I18N) For OS/2                 
  4. ===============================================================================
  5.  
  6.                 Copyright IBM Corporation -- 1993, 1994, 1995
  7.  
  8. DISCLAIMER: This package is not a full implementation of the X/Open XPG4 
  9. specification and does not make any claims of XPG4 branding. It implements 
  10. only the portions of the XPG4 specification which deal with 
  11. internationalization.
  12.  
  13. X/Open is a trademark of the X/Open Company Limited.
  14.  
  15. ===============================================================================
  16.  
  17.  
  18. /************************/
  19. /***     Contents     ***/
  20. /************************/
  21.  
  22. 1.  Overview
  23. 2.  Files in this directory
  24. 3.  How to run the sample program
  25. 4.  How to compile the sample program
  26.  
  27.  
  28. 1.  Overview
  29. ============
  30.  
  31. The sample program in this directory uses the "is*" APIs.  These functions are
  32. used to determine if characters fall in to one of many different classes.  For
  33. example, is a specific character alphabetic?  or is it a punctuation mark?
  34.  
  35. The reason that these functions are provided as part of I18N is that the isw*
  36. tests vary based on locale.  What is considered alphanumeric in one part of
  37. the world is not in another part of the world.  Thus, these functions must
  38. be culturally sensitive.
  39.  
  40. Note that these functions are similar to the isw* functions in the "isw"
  41. directory, only these operate on characters, not wide characters.
  42.  
  43.  
  44. 2.  Files in this directory
  45. ===========================
  46.  
  47. File            Purpose
  48. ------------------------------------------------------------------------------
  49. is.c            Source code for the is sample program.
  50. is.def          Definition file needed for compiling the program.
  51. is.mak          Make file used to compile the sample.
  52. is.exe          Compiled version of the is sample.
  53.  
  54. build.cmd       A command file which will compile and link the sample program.
  55. read.me         This file.
  56.  
  57.  
  58. 3.  How to run the sample program
  59. =================================
  60.  
  61. The following steps show how the program can be run.
  62.  
  63.      1) Run the \i18n\bin\new_vars command file (or have the environment
  64.         variables already set).
  65.  
  66.      2) Set the value of either LC_ALL or LANG to: En_US (US English).
  67.  
  68.           Ex:   set LANG=En_US
  69.  
  70.      3) Execute the is.exe program.
  71.  
  72.           Ex:   is
  73.  
  74.      4) Experiment with changing the values of the LANG environment
  75.         variable.  Try the Fr_FR.IBM-850 locale to see the difference in 
  76.         the results (for example, some accented characters are alphabetic
  77.         in Fr_FR.IBM-850, whereas none of them are in En_US).  Try other 
  78.         locales to see the difference.  
  79.         Note: You may wish to change the codeset of OS/2 to 850 before 
  80.         running this program with the french locale.  This can be done with 
  81.         the 'chcp' command:
  82.  
  83.           Ex: chcp 850
  84.  
  85.         When you are finished, change the codepage back to 437.
  86.  
  87.  
  88. 4.  How to compile the sample program
  89. =====================================
  90.  
  91. NOTE: The sample program is already compiled for you.  If you want to see the
  92.  behavior of the program, you can just run it.  The following instructions
  93.  are needed only if you want to modify the program and recompile it.
  94.  
  95. To compile the sample application:
  96.  
  97.      1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
  98.         correctly on your system.
  99.  
  100.      2) cd to the directory which contains the is source files.
  101.  
  102.      3) Type "build" at the command prompt.
  103.