home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
pbaseiv.zip
/
P4MSC001.TIP
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
72 lines
The standard HP LaserJet character set doesn't include
extended ASCII characters. When printing screen dumps or
anything from a program without a good LaserJet driver, you
end up with a bunch of foreign-accented characters where
your lines and boxes should be.
To prevent these accidental accents from appearing when you
print, I created two data files, HPLJFONT.STD and
HPLJFONT.EXT, that contain the codes for selecting standard
and extended character sets. At the DOS prompt, type "COPY
HPLJFONT.EXT PRN" to get the extended characters. Copy
HPLJFONT.STD to the printer for the LaserJet's defaults.
J. L. Richards
Richmond, British Columbia, Canada
Editor's note: HPLJFONT.STD and HPLJFONT.EXT are both
included on your PowerBase *.* Volume IV diskette in the
P4UTIL directory. Copy the two files to any directory, for
example, c:\util. Using these files will be simpler if you
create two one-line batch files, HPEXT.BAT and HPSTD.BAT,
and put them in a directory listed in your PATH command. The
contents of these one-line batches should be
COPY C:\UTIL\HPLJFONT.EXT PRN:
and
COPY C:\UTIL\HPLJFONT.STD PRN:
respectively.
For a more complete solution, HPPR.BAT (see listing) turns
on the extended characters, prints up to nine ASCII files,
then returns to the printer's defaults. When creating
HPPR.BAT, replace the path `c:\util\' on lines 3 and 5 with
the actual path to the directory holding HPLJFONT.STD and
HPLJFONT.EXT. Also, make sure the DOS PRINT.COM utility is
stored in a directory listed in the current PATH. Then type
"HPPR <file1> <file2>...<filen>" to print your file or
files.
Postscript: While these two solutions reconfigure your laser
printer temporarily, there's another technique you can use
to solve the problem once and for all: make the changes
permanent via the printer's control panel. For step-by-step
instructions on how to do it, see the tip "IBM-Compatible
LaserJet Fonts" on the same menu as this one.
HPPR.BAT (Use Alt-F to extract)
---- BEGIN LISTING ----
@echo off
if "%1"=="" goto HELP
copy c:\util\hpljfont.ext prn:
print %1,%2,%3,%4,%5,%6,%7,%8,%9
copy c:\util\hpljfont.std prn:
goto END
:HELP
echo Enter PRHP file1 file2...
echo to print files using
echo extended ASCII characters
:END
---- END LISTING ----
Title: Accidental Accents
Category: MSC
Issue date: Jan 1991
Editor: Tom Swan
Supplementary files: P4UTIL\HPLJFONT.EXT,
P4UTIL\HPLJFONT.STD