Microsoft KB Archive/104930

From BetaArchive Wiki

Incorrect Extended Characters Using HP4.PRD

PSS ID Number: Q104930 Article last modified on 11-02-1994

====================================================================== 5.50 6.00 MS-DOS kbprint

The information in this article applies to:
- Microsoft Word for MS-DOS, versions 5.5, 6.0

SYMPTOMS

When you print using the HP4.PRD printer driver for the Hewlett-Packard (HP) LaserJet 4 printer, extended characters may print incorrectly in Word for MS-DOS. This includes extended characters that you insert using the Symbol command on the Insert menu or by pressing the ALT+<nnnn> keys.

This does not occur when you use the Courier font.

CAUSE

The HP4.PRD printer driver uses the PC-8 symbol set for all fonts except Courier, which uses the Roman-8 symbol set. This is different from all other HP LaserJet series printer drivers, which use Roman-8 for all fonts except Courier-PC.

RESOLUTION

Use the following instructions to change the symbol set to Roman-8 in HP4.PRD using the MakePRD utility:

NOTE: You should not change the character set for a proportional font such as CGTimes or Univers because the extended characters will not be spaced correctly.

  1. Run MAKEPRD.EXE to create a text file from the HP4.PRD printer driver you want to modify. For instructions on using MakePRD, see Appendix D in “Getting Started and Printer Information” for Word 6.0. For Word 5.5, see pages 303 through 306 in “Printer Information for Microsoft Word.”

  2. Open the .PRD text file in Word. Locate the font description strings for the font whose symbol set you want to change. The font description string has the following format:

    FontSize: Wtps: beginmod: endmod: beginItalicmod: endItalicmod: beginBoldmod: endBoldmod: beginItalBoldmod: endItalBoldmod: DLF: LineSpacing:

  3. Look at the beginmod: line. The text string after the word beginmod: will start with the characters ^[( followed by a 2- or 3-character identification (ID) number. Replace the 2-3 character ID number with the ID number of the desired symbol set. Be sure not to delete or change the ^[( in front of the ID number.

    For example, to change the symbol set for CGTimes from PC-8 to Roman-8, make the following change:

    From: beginmod:0 “[(10U[(s3t10vsbp12H” To: beginmod:0 “[(8U[(s3t10vsbp12H”

  4. Save the text file and use MakePRD to generate a new printer driver.

REFERENCES

“Getting Started and Printer Information,” version 6.0, pages 127-182

“Printer Information for Microsoft Word,” version 5.5, pages 303-306

KBCategory: kbprint KBSubcategory: Additional reference words: 5.50 6.00 ====================================================================== ============================================================================= Copyright Microsoft Corporation 1994.