Download the tools - 450KB. Unzip this file into a directory. You can use them from that directory.
The showcp application allows you to display various codepages and unicode. This is written as a PM testcase, and can be used as a sample for doing unicode display processing.
There is a single parameter which is a codepage number. If this is not specified, the current process codepage is used.
A grid of 256 codepoints is displayed. Basic information about the character the mouse is over is shown at the bottom of the screen. For detailed information select the character with the mouse. When this codepoint is the starter for a multiple byte sequence (as shown by a number in red) selecting it will bring up another page of 256 codepoints.
Return to a previous level by selecting outside the character box. On the character info screen, you can select anywhere on the main window to return. If you need to set focus without returning, select the frame of the window. You can use the PageUp and PageDown keys to move to previous or subsequent characters or wards.
You can select from a large set of codepages which are supported by PM. You can change to a predetermined list of fonts. This will give you a system font if you do not have the font installed.
You can print the page which will be sent to your default printer.
The files showcp.exe, unicode.nam, and unicode.tab should be in the current directory or in the path. This code should run on any version of Warp or Merlin on which any version of Java is installed. For full functionality, it is necessary to have the unicode font (Times New Roman MT 30) which comes with Java 1.1.
To display the full unicode set, it is necessary to replace the IBM949 file in /language/codepage. This changes the definition to the Microsoft 949 definition.
The printkb utility allows you to print a graphic representation of a keyboard layout using PostScript.
makekb takes two fixed parameters, and a set of switches which start with a hyphen (-). The options can be specified at any point in the command. File names may use either slash (/) or backslash (\) as a path separator.
printkb kblfile [otufile] -options
The first parameter is the name of the input keyboard layout file. If a name without extension is given, the file type ".kbl" is added. This can give the path to the file.
The second parameter is optional and specifies the name of the output keyboard layout file. If this is not specified, the output is sent to "lpt1".
There are several options which must begin with a hyphen (-) and may be anywhere in the command line.
printkb tries to simulate the normal method of engraving keytops. It is possible for a key to have more meanings that printkb will use. printkb will place up to four labels on a key. All labels are placed on the surface of the key. On real keyboards, the alt or altgr actions are often labeled on the front of the key.
The resulting output is valid Encapsulated PostScript (it contains structuring comments including a BoundingBox). It can thus be used as input to any program which takes EPS.
It is possible to create a keyboard definition which is too complex for printkb. The keyboard used to input Japanese is a example of this where there are a large number of meanings assigned to each key. To get a usable printout you may desire to construct two keyboards for printing purposes.
Deadkeys are shown with a small gray blob where the character would be.
The files printkb.dlf, printkb.psh, and printkb.sft must be in the current directory or in the PATH in order to run printkb.
The printcp utility provides a means of printing a codepage using PostScript. This only works for single byte codepages and the single byte part of double byte codepages. The output file can be sent directly to a printer, or an encapsulated PostScript file can be created.
printcp takes two fixed parameters, and a set of switches which start with a hyphen (-). The options can be specified at any point in the command. File names may use either slash (/) or backslash (\) as a path separator.
printcp codepage [outfile] -options
The first parameter is the input codepage, and can be a uconv object, an AFP codepage, or an IBM source format codepage. This is the pathname to the input file.
The second parameter is the output file. If not specified, this defaults to "lpt1".
There are a large number of options which are used to customize the desired printout:
The following are examples of calls to printcp:
printcp ibm850 ibm850.eps -u -m printcp /language/codepage/ibm850 -i -l
The files unicode.nam, printkb.dlf, and printcp.psh must be in the current directory or in the PATH in order to run printcp.