public void loadConfig(){
  byte[] array;
  String caption;
  char ch;
  int i;
  String text;
  captionMap=new TreeMap<Integer,String>();
  captionPut(0x0020,"Space");
  captionPut(0x0021,"Exclamation Mark");
  captionPut(0x0022,"Quotation Mark");
  captionPut(0x0023,"Number Sign");
  captionPut(0x0024,"Dollar Sign");
  captionPut(0x0025,"Percent Sign");
  captionPut(0x0026,"Ampersand");
  captionPut(0x0027,"Apostrophe");
  captionPut(0x0028,"Left Parenthesis");
  captionPut(0x0029,"Right Parenthesis");
  captionPut(0x002A,"Asterisk");
  captionPut(0x002B,"Plus Sign");
  captionPut(0x002C,"Comma");
  captionPut(0x002D,"Hyphen-Minus");
  captionPut(0x002E,"Full Stop");
  captionPut(0x002F,"Solidus");
  captionPut(0x0030,"Digit Zero");
  captionPut(0x0031,"Digit One");
  captionPut(0x0032,"Digit Two");
  captionPut(0x0033,"Digit Three");
  captionPut(0x0034,"Digit Four");
  captionPut(0x0035,"Digit Five");
  captionPut(0x0036,"Digit Six");
  captionPut(0x0037,"Digit Seven");
  captionPut(0x0038,"Digit Eight");
  captionPut(0x0039,"Digit Nine");
  captionPut(0x003A,"Colon");
  captionPut(0x003B,"Semicolon");
  captionPut(0x003C,"Less-Than Sign");
  captionPut(0x003D,"Equals Sign");
  captionPut(0x003E,"Greater-Than Sign");
  captionPut(0x003F,"Question Mark");
  captionPut(0x0040,"Commercial At");
  captionPut(0x0041,"Latin Capital Letter A");
  captionPut(0x0042,"Latin Capital Letter B");
  captionPut(0x0043,"Latin Capital Letter C");
  captionPut(0x0044,"Latin Capital Letter D");
  captionPut(0x0045,"Latin Capital Letter E");
  captionPut(0x0046,"Latin Capital Letter F");
  captionPut(0x0047,"Latin Capital Letter G");
  captionPut(0x0048,"Latin Capital Letter H");
  captionPut(0x0049,"Latin Capital Letter I");
  captionPut(0x004A,"Latin Capital Letter J");
  captionPut(0x004B,"Latin Capital Letter K");
  captionPut(0x004C,"Latin Capital Letter L");
  captionPut(0x004D,"Latin Capital Letter M");
  captionPut(0x004E,"Latin Capital Letter N");
  captionPut(0x004F,"Latin Capital Letter O");
  captionPut(0x0050,"Latin Capital Letter P");
  captionPut(0x0051,"Latin Capital Letter Q");
  captionPut(0x0052,"Latin Capital Letter R");
  captionPut(0x0053,"Latin Capital Letter S");
  captionPut(0x0054,"Latin Capital Letter T");
  captionPut(0x0055,"Latin Capital Letter U");
  captionPut(0x0056,"Latin Capital Letter V");
  captionPut(0x0057,"Latin Capital Letter W");
  captionPut(0x0058,"Latin Capital Letter X");
  captionPut(0x0059,"Latin Capital Letter Y");
  captionPut(0x005A,"Latin Capital Letter Z");
  captionPut(0x005B,"Left Square Bracket");
  captionPut(0x005C,"Reverse Solidus");
  captionPut(0x005D,"Right Square Bracket");
  captionPut(0x005E,"Circumflex Accent");
  captionPut(0x005F,"Low Line");
  captionPut(0x0060,"Grave Accent");
  captionPut(0x0061,"Latin Small Letter A");
  captionPut(0x0062,"Latin Small Letter B");
  captionPut(0x0063,"Latin Small Letter C");
  captionPut(0x0064,"Latin Small Letter D");
  captionPut(0x0065,"Latin Small Letter E");
  captionPut(0x0066,"Latin Small Letter F");
  captionPut(0x0067,"Latin Small Letter G");
  captionPut(0x0068,"Latin Small Letter H");
  captionPut(0x0069,"Latin Small Letter I");
  captionPut(0x006A,"Latin Small Letter J");
  captionPut(0x006B,"Latin Small Letter K");
  captionPut(0x006C,"Latin Small Letter L");
  captionPut(0x006D,"Latin Small Letter M");
  captionPut(0x006E,"Latin Small Letter N");
  captionPut(0x006F,"Latin Small Letter O");
  captionPut(0x0070,"Latin Small Letter P");
  captionPut(0x0071,"Latin Small Letter Q");
  captionPut(0x0072,"Latin Small Letter R");
  captionPut(0x0073,"Latin Small Letter S");
  captionPut(0x0074,"Latin Small Letter T");
  captionPut(0x0075,"Latin Small Letter U");
  captionPut(0x0076,"Latin Small Letter V");
  captionPut(0x0077,"Latin Small Letter W");
  captionPut(0x0078,"Latin Small Letter X");
  captionPut(0x0079,"Latin Small Letter Y");
  captionPut(0x007A,"Latin Small Letter Z");
  captionPut(0x007B,"Left Curly Bracket");
  captionPut(0x007C,"Vertical Line");
  captionPut(0x007D,"Right Curly Bracket");
  captionPut(0x007E,"Tilde");
  if (isMswinFlag()) {
    array=new byte[1];
    for (i=0x20; i <= 0xFF; i++) {
      array[0]=(byte)i;
      text=new String(array);
      if ((text.length() == 1) && ((ch=text.charAt(0)) != REPLACE_CHAR)) {
        caption=(String)captionMap.get(new Integer((int)ch));
        if (caption == null)         caption="";
 else         caption+=" = ";
        caption+=winaltNotation(i);
        captionPut((int)ch,caption);
      }
    }
  }
}

public void loadConfig ( ) { byte [ ] array ; String caption ; char ch ; int i ; String text ; captionMap = new TreeMap < Integer , String > ( ) ; captionPut ( 0x0020 , "Space" ) ; captionPut ( 0x0021 , "Exclamation Mark" ) ; captionPut ( 0x0022 , "Quotation Mark" ) ; captionPut ( 0x0023 , "Number Sign" ) ; captionPut ( 0x0024 , "Dollar Sign" ) ; captionPut ( 0x0025 , "Percent Sign" ) ; captionPut ( 0x0026 , "Ampersand" ) ; captionPut ( 0x0027 , "Apostrophe" ) ; captionPut ( 0x0028 , "Left Parenthesis" ) ; captionPut ( 0x0029 , "Right Parenthesis" ) ; captionPut ( 0x002A , "Asterisk" ) ; captionPut ( 0x002B , "Plus Sign" ) ; captionPut ( 0x002C , "Comma" ) ; captionPut ( 0x002D , "Hyphen-Minus" ) ; captionPut ( 0x002E , "Full Stop" ) ; captionPut ( 0x002F , "Solidus" ) ; captionPut ( 0x0030 , "Digit Zero" ) ; captionPut ( 0x0031 , "Digit One" ) ; captionPut ( 0x0032 , "Digit Two" ) ; captionPut ( 0x0033 , "Digit Three" ) ; captionPut ( 0x0034 , "Digit Four" ) ; captionPut ( 0x0035 , "Digit Five" ) ; captionPut ( 0x0036 , "Digit Six" ) ; captionPut ( 0x0037 , "Digit Seven" ) ; captionPut ( 0x0038 , "Digit Eight" ) ; captionPut ( 0x0039 , "Digit Nine" ) ; captionPut ( 0x003A , "Colon" ) ; captionPut ( 0x003B , "Semicolon" ) ; captionPut ( 0x003C , "Less-Than Sign" ) ; captionPut ( 0x003D , "Equals Sign" ) ; captionPut ( 0x003E , "Greater-Than Sign" ) ; captionPut ( 0x003F , "Question Mark" ) ; captionPut ( 0x0040 , "Commercial At" ) ; captionPut ( 0x0041 , "Latin Capital Letter A" ) ; captionPut ( 0x0042 , "Latin Capital Letter B" ) ; captionPut ( 0x0043 , "Latin Capital Letter C" ) ; captionPut ( 0x0044 , "Latin Capital Letter D" ) ; captionPut ( 0x0045 , "Latin Capital Letter E" ) ; captionPut ( 0x0046 , "Latin Capital Letter F" ) ; captionPut ( 0x0047 , "Latin Capital Letter G" ) ; captionPut ( 0x0048 , "Latin Capital Letter H" ) ; captionPut ( 0x0049 , "Latin Capital Letter I" ) ; captionPut ( 0x004A , "Latin Capital Letter J" ) ; captionPut ( 0x004B , "Latin Capital Letter K" ) ; captionPut ( 0x004C , "Latin Capital Letter L" ) ; captionPut ( 0x004D , "Latin Capital Letter M" ) ; captionPut ( 0x004E , "Latin Capital Letter N" ) ; captionPut ( 0x004F , "Latin Capital Letter O" ) ; captionPut ( 0x0050 , "Latin Capital Letter P" ) ; captionPut ( 0x0051 , "Latin Capital Letter Q" ) ; captionPut ( 0x0052 , "Latin Capital Letter R" ) ; captionPut ( 0x0053 , "Latin Capital Letter S" ) ; captionPut ( 0x0054 , "Latin Capital Letter T" ) ; captionPut ( 0x0055 , "Latin Capital Letter U" ) ; captionPut ( 0x0056 , "Latin Capital Letter V" ) ; captionPut ( 0x0057 , "Latin Capital Letter W" ) ; captionPut ( 0x0058 , "Latin Capital Letter X" ) ; captionPut ( 0x0059 , "Latin Capital Letter Y" ) ; captionPut ( 0x005A , "Latin Capital Letter Z" ) ; captionPut ( 0x005B , "Left Square Bracket" ) ; captionPut ( 0x005C , "Reverse Solidus" ) ; captionPut ( 0x005D , "Right Square Bracket" ) ; captionPut ( 0x005E , "Circumflex Accent" ) ; captionPut ( 0x005F , "Low Line" ) ; captionPut ( 0x0060 , "Grave Accent" ) ; captionPut ( 0x0061 , "Latin Small Letter A" ) ; captionPut ( 0x0062 , "Latin Small Letter B" ) ; captionPut ( 0x0063 , "Latin Small Letter C" ) ; captionPut ( 0x0064 , "Latin Small Letter D" ) ; captionPut ( 0x0065 , "Latin Small Letter E" ) ; captionPut ( 0x0066 , "Latin Small Letter F" ) ; captionPut ( 0x0067 , "Latin Small Letter G" ) ; captionPut ( 0x0068 , "Latin Small Letter H" ) ; captionPut ( 0x0069 , "Latin Small Letter I" ) ; captionPut ( 0x006A , "Latin Small Letter J" ) ; captionPut ( 0x006B , "Latin Small Letter K" ) ; captionPut ( 0x006C , "Latin Small Letter L" ) ; captionPut ( 0x006D , "Latin Small Letter M" ) ; captionPut ( 0x006E , "Latin Small Letter N" ) ; captionPut ( 0x006F , "Latin Small Letter O" ) ; captionPut ( 0x0070 , "Latin Small Letter P" ) ; captionPut ( 0x0071 , "Latin Small Letter Q" ) ; captionPut ( 0x0072 , "Latin Small Letter R" ) ; captionPut ( 0x0073 , "Latin Small Letter S" ) ; captionPut ( 0x0074 , "Latin Small Letter T" ) ; captionPut ( 0x0075 , "Latin Small Letter U" ) ; captionPut ( 0x0076 , "Latin Small Letter V" ) ; captionPut ( 0x0077 , "Latin Small Letter W" ) ; captionPut ( 0x0078 , "Latin Small Letter X" ) ; captionPut ( 0x0079 , "Latin Small Letter Y" ) ; captionPut ( 0x007A , "Latin Small Letter Z" ) ; captionPut ( 0x007B , "Left Curly Bracket" ) ; captionPut ( 0x007C , "Vertical Line" ) ; captionPut ( 0x007D , "Right Curly Bracket" ) ; captionPut ( 0x007E , "Tilde" ) ; if ( isMswinFlag ( ) ) { array = new byte [ 1 ] ; for ( i = 0x20 ; i <= 0xFF ; i ++ ) { array [ 0 ] = ( byte ) i ; text = new String ( array ) ; if ( ( text . length ( ) == 1 ) && ( ( ch = text . charAt ( 0 ) ) != REPLACE_CHAR ) ) { caption = ( String ) captionMap . get ( new Integer ( ( int ) ch ) ) ; if ( caption == null ) caption = "" ; else caption += " = " ; caption += winaltNotation ( i ) ; captionPut ( ( int ) ch , caption ) ; } } } }
loadconfig ( ) method load configuration data from a text file in the current working directory , which is usually the same folder as the program ' s * . class files . should we encounter an error , then print a message , but continue normal execution . none of the file data is critical to the operation of this program . please see the following web sources for the most recent unicode mapping tables for regular characters : http : / / www . unicode . org / public / unidata / ucd . html http : / / www . unicode . org / public / unidata / unicodedata . txt the best source for information about chinese - japanese - korean ideographs is : http : / / www . unicode . org / public / unidata / unihan . html http : / / www . unicode . org / public / unidata / unihan . txt names for the korean hangul syllables can be found in : http : / / www . unicode . org / public / unidata / hangulsyllabletype . txt http : / / www . unicode . org / public / unidata / jamo . txt http : / / www . iana . org / assignments / idn / kr - korean . html ( best raw data file ) http : / / www . unicode . org / public / mappings / vendors / micsft / windows / cp949 . txt
