home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
qedit
/
qextra.arc
/
TEMPLATE
< prev
next >
Wrap
Text File
|
1988-05-24
|
7KB
|
191 lines
TEMPLATE FOR EXTENDED ASCII AND PRINTER CODES
=============================================
by Gene Catalano (June 1988)
As an alternative to creating macro keys for printer and extended ASCII
codes, you can use this template. Just "block copy" the desired portions
from this file into the file you are working with. (QEDIT's window mode
makes this an expedient process.)
------------------------------------------------------------------------------
BOX/LINES & SHADING
===================
┌ ───── ┐ ╔ ═════ ╗ ╓ ───── ╖ ╒ ═════ ╕ ▄▄▄▄▄
│ │ ║ ║ ║ ║ │ │ ▌ █ █ ▐
└ ───── ┘ ╚ ═════ ╝ ╙ ───── ╜ ╘ ═════ ╛ ▀▀▀▀▀
┼ ╬ ╫ ╪ ┤ ╡ ╢ ╣ ┴ ┬ ├ ╞
╟ ╩ ╦ ╠ ╧ ╨ ╤ ╥ ░ ▒ ▓
------------------------------------------------------------------------------
EUROPEAN CHARACTERS
===================
Ç ü é â ä à å ç ê ë è ï
î ì Ä Å É æ Æ ô ö ò û ù
ÿ Ö Ü ¢ £ ¥ ₧ ƒ á í ó ú
ñ Ñ ª º ¿ ⌐ ¬ ½ ¼ ¡ « »
------------------------------------------------------------------------------
SCIENTIFIC/MATHEMATIC SYMBOLS
=============================
α ß Γ π Σ σ µ τ Φ Θ Ω
δ ∞ φ ε ∩ ≡ ± ≥ ≤ ⌠
⌡ ÷ ≈ ° ∙ · √ ⁿ ² ■
******************************************************************************
PRINTER CODES
=============
The codes below are set for my printer (NEC Pinwriter 2200), which is Epson
compatible. Do not assume my codes match yours; they probably don't. Refer
to the programmer's section of your printer's manual, and replace any of my
codes with yours, if different. Then test each one. Usually you have two
or more ways to send a print code, not all of which may work (especially if
you have a "DIP switch" or "software command" control over "printer mode."
Example: many printers can be switched from "standard" mode--which is its
own--to "IBM Proprinter," "Epson LQ series," or some other printer brand.
In these cases, some print codes may be suitable for one, and not the
other.) The codes to look for in your manual are the ones preceded by
[ESC].
FORM FEED, CARRIAGE RETURN and LINE FEED codes are compatible for
all IBM compatible microcomputers...they are "[CTRL]" codes
rather that "[ESC]" codes.
Printer [ESC] codes are "case sensitive"...that is, whenever a
code includes an alphabetic character, pay attention to whether
your printer manual indicates it as uppercase or lowercase, for
that is how you should type it.
A quick way to see which of my printer's codes (if any) are compatible with
your printer, is to print out my accessory file, TEST.PRN, from the QEDIT
environment. Note that, any incompatible code can throw off the remaining
coded text to print out, even if a code that follows is actually
compatible.
To create a print code, follow these steps:
1) Press QEDIT's "<literal>" key
2) Press [ESC]
3) Press the appropriate code (1, 2, or 3 characters)
All text-imbedded printer codes are preceded by [ESC] (except "form feed,"
"carriage return" and "linefeed," which are preceded by [CTRL]). Pressing
"<literal>[ESC]" makes a tiny left-pointing arrow appear, which is the
on-screen symbol for [ESC].
How to use these codes in text: Insert the "on" code before the text to be
affected. Insert the matching "off" code at the end of text to be affected.
You may prefer to join the "on" and "off" codes as one string (or word),
move the cursor between the two (with [insert] "on"), then start
typing...and when you want to turn the code "off," just move the cursor to
the right, beyond the "off" code.
PRINT MODE CODE "on" CODE "off"
---------- --------- ----------
DRAFT MODE x0
LETTER QUALITY x1 x0 (return to draft mode)
DOUBLE STRIKE G H
ENHANCED E F
ITALICS
UNDERSCORE -1 -0
SUPERSCRIPT S0 T
SUBSCRIPT S1 T
CENTER JUSTIFICATION a1
FULL JUSTIFICATION a3 a0
PROPORTIONAL SPACING p1 p0
10 CPI P
12 CPI M P (return to 10 cpi)
SKIP OVER PERFORATION N3 O
FORM FEED
CARRIAGE RETURN/LINE FEED
Use the code for "draft mode" to turn LETTER QUALITY "off". Use the code
for "10 cpi" to turn 12 CPI "off".
There is a hyphen as part of UNDERSCORE's "on" and "off" codes, in case you
were confused by the appearance.
CENTER JUSTIFICATION needs no "off" command, as a regular carriage return
serves this purpose. The CENTER JUSTIFICATION command must be inserted in
column 1 of each line to be centered.
DRAFT MODE and 10 CPI have no "off" code, as they are considered the
printer's default mode.
SKIP OVER PERFORATION is set in PRINTER.MAC at "0"...so change the code if
you want the printer to skip lines (number of lines determined by the
number you insert...not to be greater than the current page length).
If one or both of the CARRIAGE RETURN/LINE FEED characters are
missing in the list above, it's because they tend to disappear
when saved in a file. CARRIAGE RETURN is imbedded in text by
pressing
<literal>
[ESC]
[CTRL]M
and LINE FEED is imbedded by pressing
<literal>
[ESC]
[CTRL]J
CARRIAGE RETURN/LINEFEED is not a text-imbedded code, but can be used from
the keyboard to make the printer eject the page one line up. Here is how
to do it:
1) "<drop_anchor>" on the code's first character, then "<drop_anchor>"
on the second character. The 2-character code should now be
highlighted as a block.
2) Making sure your printer is on, execute the "<print_block>" command.
Printer paper should move 1 line up.
3) Erase the CARRIAGE RETURN code.
For some reason, a single carriage return/linefeed sent to the printer via
the keyboard, makes my printer eject 4 lines (2/3 inches).
You can also use the FORM FEED character from the keyboard to eject the
printer paper to the next sheet, in the same fashion as CARRIAGE RETURN:
"block highlight" the form feed character, then perform the "<print_block>"
command. (Remember to erase the form feed character afterwards, if it's
not appropriate to text.)
(Read my article in the file QPRINTER.ART, for more information on each
code.)