[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
AutoQuotes etc. in XY4DOS
- Subject: AutoQuotes etc. in XY4DOS
- From: TBaehr@xxxxxxxx
- Date: Thu, 21 Sep 1995 23:29:55 -0400
Here are some programs that automatically convert, as you type,
your typed quotes into "real" curly quotese, (2) two hyphens to
an em dash while allowing you to type single hyphens and rows of
hyphens without converting, and (3) combinations of "f" and a
letter -- fi, fl, ff, ffi, ffl -- into their ligatured
counterparts. The programs work in conjunction with
AutoCheck or AutoReplace.
Each program is to be "loaded" on a key using the LDPM command (in your
STARTUP.INT file is best). So you need to modify your keyboard file and your
STARTUP.INT file before using the programs. The programs are
collected in a file TYPING.ZIP, which is presented here in the
XXBUG format. To create
TYPING.ZIP, download *this* file to your hard disk and make an
extra copy of it so you can keep the instructions. Open the copy
in XyWrite, and delete everything before and after (and
including) the lines that contain "CUT
HERE." Save the file as TYPING.SCR. Then go to DOS and type DEBUG <
TYPING.SCR. A new file, TYPING.ZIP, will be created.
When you unzip TYPING.ZIP, you'll get QUOTE.PGM, DASH.PGM, and
EFF.PGM -- and also a file called ADDTHIS. Stash them in the same subdirectory as
EDITOR.EXE or anything else in your path.
Now do surgery on STARTUP.INT by adding the lines in ADDTHIS to your
STARTUP.INT file. the lines look like this:
BX LDPM QUOTE.PGM Q2,&Q ;*;
BX LDPM DASH.PGM Q2,&D ;*;
BX LDPM EFF.PGM Q2,&F ;*;
You can add them almost anywhere in STARTUP.INT by opening the
INT file, going to the beginning of a line, hitting F5, and
typing ME ADDTHIS and hitting Enter.
Save the file. Then quit and restart XyWrite.
Now modify your keyboard file by putting
40=&q in the SHIFT and CAPS+SHIFT tables
12=&d in the main table and the CAPS table
33=&f in the main table and the CAPS+SHIFT table.
You can comment out the old key assignments by typing a semicolon
at the beginning of the line.
Save and load the keyboard file.
Now when you want to automatically type curly quotes and the
other stuff, just activate AutoCheck or AutoReplace.
Limitation: This works best with Speedo fonts. I don't have
much experience with what TrueType fonts do under Windows.
Here's what happens: You type a quote and you get the
up-and-down hashmarks.
If the next character is a letter or number, you get ASCII 264.
If the next character is a space or carriage return (there are
other characters in the macros, which you can see of you look at
them), you get ASCII 265. You type a hyphen. If the next
character is anything but another hyphen, the program ends and
all you get is the hyphen. You type a second hyphen. Now two of
them show on screen. If the next character is a hyphen, the
program ends and all you get is three or more hyphens. If the
next character is anything else, the hyphens are converted to
ASCII 260. You type f. If the next character is i or l, you get
the ligatured counterpart. If the next character is f, you get
another f. Then if the next character is i or l, you get the
ligatured ffi or ffl. If the next character is anything else,
you get the ligatured ff. You have to be in WYSIWYG mode to see
them, of course.
Have fun!
----------------------------->CUT
HERE<-----------------------------
NTYPING.ZIP
E100 FC BB 03 00 BF D4 01 BE CC 01 33 C9 AD 86 CC AA FE C0 E2 FB
4B
E115 75 F5 B9 FF FD BA 20 02 52 B4 3F CD 21 5F 72 60 8B F7 50 8B
C8
E12A B0 2A F2 AE 75 55 B0 0D F2 AE 87 F7 BB 00 01 B2 04 AC 3C 2A
72
E13F 62 74 46 57 BF D2 01 B9 40 00 8A E1 F2 AE 5F 75 35 FE C1 2A
E1
E154 88 27 43 FE CA 75 E0 56 BE 00 01 AD 86 C4 8B D0 AD 86 C4 5E
B1
E169 02 D2 E0 D3 E0 D2 E2 D3 EA D0 E1 D1 EA D1 D8 E2 FA 86 C2 AA
8A
E17E C4 AA 8A C2 AA EB B1 BF 20 02 58 33 D2 F7 D8 13 D2 F7 DA 33
DB
E193 8B CA 8B D0 B8 01 42 CD 21 8B 0E CA 01 CC AC 3C 0A 75 FB AC
57
E1A8 BF D2 01 B9 40 00 8A E1 F2 AE 5F 75 D0 FE C1 2A E1 86 E0 32
E4
E1BD 8B 1E CA 01 03 D8 89 1E CA 01 E9 6C FF 00 00 30 0A 41 1A 61
1A
E1D2 2B 2D
G=100
W220
Q GXDPlus 1.0
*XXBUG20--00000340--21091995--ADC7EE81------------------TYPING.ZI
P
nI2g1--E++U+6+5NbB-woQvnPU+++++w-+++5++++FIN49Z-5HJjbuOOl9glFlH3c
jOqh
nYc4GdVe2uknZfYxPtlelbdRfbOjbyfHzXRPfUWAg9LLK-HajLkzIigsnqB6GdD7z
soIZ
nW9mvHvkPJ1qmUYmZxTwPhTxBN2EMVmmR+t4SV0kR2+OIUz7xb60asf+PMXF6ykmw
dcBI
nH2RG+FKOmMWkGEc+I2g1--E++c+6+5GuBFxYz-PtNU+++Bk++++6++++F23HG0tE
FopP
ntyaagGvAIQIlO9qhfN8-YeMOVCgAtOvLLSQOgNuLOtqftrfRzsrKus6X90pppUIt
fpwD
np9fCAxXGQfqBbR9zlfB8uxQ3V+3tl8jzruUBFDxM49-ex548xwbD9pVDgcriDV0B
IU-E
nGkA23++0++U+K2Yo5nd36aCY++++rE++++Y+++-FJIxIFGtEFopP3llaM8WXdu0X
OAz9
nhFv2Ax7lR57qQLJnxz1owjPlxTAD0+k81UYB0sy6X16oAXMlBHCrg1F6yBzoAK4x
ojx4
nurKSPVffkVlJ56DKqxce4GVdeY4snZ1iybKi2ShtiROtSU8BXv0op3YLt9lyDJ1L
CgxU
nGwjpvs0IUS3uKni1xTwPhTxlAek90+A86qbmR5Ac9GXGU0XL-8grUejbk3EDtog-
+3-9
n+kEI++6+0+15i1IT4SCCRX6+++-G++++-k+++232F3F6GJDvrvEu7uIUJu4kB9wY
JOwU
nDJR5fT-zIvqpZXIj3oki7P2s+m8JUWuJadM4YIa1mIU-+3-9+E6I+-E++U+6+5Nb
B-wo
nQvnPU+++++w-+++5++++++++++2+6+++++++++-3FYMiI2RBI2g-+VE+3++0++U+
R9cp
n5qHw3jZa++++r+++++U++++++++++E+U++++dE+++2F-IoUiI2RBI2g-+VE+3++0
++U+
nK2Yo5nd36aCY++++rE++++Y++++++++++E+U++++AE2++33JHpF39Z-5HJ-9+E6I
+-E+
n+U+6+ASsBFwNsstqAU+++36++++5++++++++++2+6++++Dk-++--F2FIG2ZHI2g3
-U++
E+++2++E+pk+++3A0+++++36+
*XXBUG Version 2.21 by Chad Wagner
----------------------------->CUT
HERE<-----------------------------
If you have downloaded this script file, remove any captured
communications header and then enter
DEBUG < filename
where filename is the name of this script file.