Home » Archimedes archive » Acorn User » AU 1996-01.adf » Regulars » StarInfo/L-Jones/!Quotes/!Help/Text

StarInfo/L-Jones/!Quotes/!Help/Text

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1996-01.adf » Regulars
Filename: StarInfo/L-Jones/!Quotes/!Help/Text
Read OK:
File size: 079A bytes
Load address: 0000
Exec address: 0000
File contents
Help for Smart Quotes

Before you use the front end, you must load the module
�SmartQuote�. It would be nice if you could get the
computer to load it for you. Alas, I have tried
everything, but Acorn�s Obey thingumy just simply
refuses to allow it. Sorry! If anyone finds a neat way
of doing it then let me know, please!

                   ---------------

This application intercepts key presses and attempts
to intelligently convert any quotation marks which are
typed into their open or closing counterparts.
For instance:
"Hello, what's that?"
Would be converted into:
�Hello, what�s that?�

The application loads the module SmartQuotes when it
is booted. This shouldn�t (in theory) do anything
until either the main program is loaded, or �Quotes
ON� is typed at the command line.

When the program is loaded you can use Interactive
Help to find out about what it does. Basically, select
on the icon toggles the quote conversion on and off,
while adjust will bring up a window containing
quotation marks which can be inserted directly at the
caret by clicking on them (a bit like !Chars).

If the application is Quit it turns conversion off and
quits the module. If �Hide� is selected from the menu,
the front end program will be quit, but it will leave
conversion on if this was the most recent state.

When the application is quit, the module still accepts
the commands:
Quotes On
Quotes Off
To turn conversion On and Off.

Personally, I leave the module in my boot file and
don�t use the front end at all.

The program unfortunately is not totally foolproof,
and so will not always give you the quotation marks
which you actually want. If this happens the only
thing you can do is go back and change them youself. I
hope it works correctly most of the time though!

One last thing, The program only works when you are
in the desktop. If you leave the desktop, the program
will de-activate itself as soon as it realises!

The Flying Pig!

00000000  48 65 6c 70 20 66 6f 72  20 53 6d 61 72 74 20 51  |Help for Smart Q|
00000010  75 6f 74 65 73 0a 0a 42  65 66 6f 72 65 20 79 6f  |uotes..Before yo|
00000020  75 20 75 73 65 20 74 68  65 20 66 72 6f 6e 74 20  |u use the front |
00000030  65 6e 64 2c 20 79 6f 75  20 6d 75 73 74 20 6c 6f  |end, you must lo|
00000040  61 64 20 74 68 65 20 6d  6f 64 75 6c 65 0a 94 53  |ad the module..S|
00000050  6d 61 72 74 51 75 6f 74  65 95 2e 20 49 74 20 77  |martQuote.. It w|
00000060  6f 75 6c 64 20 62 65 20  6e 69 63 65 20 69 66 20  |ould be nice if |
00000070  79 6f 75 20 63 6f 75 6c  64 20 67 65 74 20 74 68  |you could get th|
00000080  65 0a 63 6f 6d 70 75 74  65 72 20 74 6f 20 6c 6f  |e.computer to lo|
00000090  61 64 20 69 74 20 66 6f  72 20 79 6f 75 2e 20 41  |ad it for you. A|
000000a0  6c 61 73 2c 20 49 20 68  61 76 65 20 74 72 69 65  |las, I have trie|
000000b0  64 0a 65 76 65 72 79 74  68 69 6e 67 2c 20 62 75  |d.everything, bu|
000000c0  74 20 41 63 6f 72 6e 91  73 20 4f 62 65 79 20 74  |t Acorn.s Obey t|
000000d0  68 69 6e 67 75 6d 79 20  6a 75 73 74 20 73 69 6d  |hingumy just sim|
000000e0  70 6c 79 0a 72 65 66 75  73 65 73 20 74 6f 20 61  |ply.refuses to a|
000000f0  6c 6c 6f 77 20 69 74 2e  20 53 6f 72 72 79 21 20  |llow it. Sorry! |
00000100  49 66 20 61 6e 79 6f 6e  65 20 66 69 6e 64 73 20  |If anyone finds |
00000110  61 20 6e 65 61 74 20 77  61 79 0a 6f 66 20 64 6f  |a neat way.of do|
00000120  69 6e 67 20 69 74 20 74  68 65 6e 20 6c 65 74 20  |ing it then let |
00000130  6d 65 20 6b 6e 6f 77 2c  20 70 6c 65 61 73 65 21  |me know, please!|
00000140  0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000150  20 20 20 20 20 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |     -----------|
00000160  2d 2d 2d 2d 0a 0a 54 68  69 73 20 61 70 70 6c 69  |----..This appli|
00000170  63 61 74 69 6f 6e 20 69  6e 74 65 72 63 65 70 74  |cation intercept|
00000180  73 20 6b 65 79 20 70 72  65 73 73 65 73 20 61 6e  |s key presses an|
00000190  64 20 61 74 74 65 6d 70  74 73 0a 74 6f 20 69 6e  |d attempts.to in|
000001a0  74 65 6c 6c 69 67 65 6e  74 6c 79 20 63 6f 6e 76  |telligently conv|
000001b0  65 72 74 20 61 6e 79 20  71 75 6f 74 61 74 69 6f  |ert any quotatio|
000001c0  6e 20 6d 61 72 6b 73 20  77 68 69 63 68 20 61 72  |n marks which ar|
000001d0  65 0a 74 79 70 65 64 20  69 6e 74 6f 20 74 68 65  |e.typed into the|
000001e0  69 72 20 6f 70 65 6e 20  6f 72 20 63 6c 6f 73 69  |ir open or closi|
000001f0  6e 67 20 63 6f 75 6e 74  65 72 70 61 72 74 73 2e  |ng counterparts.|
00000200  0a 46 6f 72 20 69 6e 73  74 61 6e 63 65 3a 0a 22  |.For instance:."|
00000210  48 65 6c 6c 6f 2c 20 77  68 61 74 27 73 20 74 68  |Hello, what's th|
00000220  61 74 3f 22 0a 57 6f 75  6c 64 20 62 65 20 63 6f  |at?".Would be co|
00000230  6e 76 65 72 74 65 64 20  69 6e 74 6f 3a 0a 94 48  |nverted into:..H|
00000240  65 6c 6c 6f 2c 20 77 68  61 74 91 73 20 74 68 61  |ello, what.s tha|
00000250  74 3f 95 0a 0a 54 68 65  20 61 70 70 6c 69 63 61  |t?...The applica|
00000260  74 69 6f 6e 20 6c 6f 61  64 73 20 74 68 65 20 6d  |tion loads the m|
00000270  6f 64 75 6c 65 20 53 6d  61 72 74 51 75 6f 74 65  |odule SmartQuote|
00000280  73 20 77 68 65 6e 20 69  74 0a 69 73 20 62 6f 6f  |s when it.is boo|
00000290  74 65 64 2e 20 54 68 69  73 20 73 68 6f 75 6c 64  |ted. This should|
000002a0  6e 91 74 20 28 69 6e 20  74 68 65 6f 72 79 29 20  |n.t (in theory) |
000002b0  64 6f 20 61 6e 79 74 68  69 6e 67 0a 75 6e 74 69  |do anything.unti|
000002c0  6c 20 65 69 74 68 65 72  20 74 68 65 20 6d 61 69  |l either the mai|
000002d0  6e 20 70 72 6f 67 72 61  6d 20 69 73 20 6c 6f 61  |n program is loa|
000002e0  64 65 64 2c 20 6f 72 20  94 51 75 6f 74 65 73 0a  |ded, or .Quotes.|
000002f0  4f 4e 95 20 69 73 20 74  79 70 65 64 20 61 74 20  |ON. is typed at |
00000300  74 68 65 20 63 6f 6d 6d  61 6e 64 20 6c 69 6e 65  |the command line|
00000310  2e 0a 0a 57 68 65 6e 20  74 68 65 20 70 72 6f 67  |...When the prog|
00000320  72 61 6d 20 69 73 20 6c  6f 61 64 65 64 20 79 6f  |ram is loaded yo|
00000330  75 20 63 61 6e 20 75 73  65 20 49 6e 74 65 72 61  |u can use Intera|
00000340  63 74 69 76 65 0a 48 65  6c 70 20 74 6f 20 66 69  |ctive.Help to fi|
00000350  6e 64 20 6f 75 74 20 61  62 6f 75 74 20 77 68 61  |nd out about wha|
00000360  74 20 69 74 20 64 6f 65  73 2e 20 42 61 73 69 63  |t it does. Basic|
00000370  61 6c 6c 79 2c 20 73 65  6c 65 63 74 0a 6f 6e 20  |ally, select.on |
00000380  74 68 65 20 69 63 6f 6e  20 74 6f 67 67 6c 65 73  |the icon toggles|
00000390  20 74 68 65 20 71 75 6f  74 65 20 63 6f 6e 76 65  | the quote conve|
000003a0  72 73 69 6f 6e 20 6f 6e  20 61 6e 64 20 6f 66 66  |rsion on and off|
000003b0  2c 0a 77 68 69 6c 65 20  61 64 6a 75 73 74 20 77  |,.while adjust w|
000003c0  69 6c 6c 20 62 72 69 6e  67 20 75 70 20 61 20 77  |ill bring up a w|
000003d0  69 6e 64 6f 77 20 63 6f  6e 74 61 69 6e 69 6e 67  |indow containing|
000003e0  0a 71 75 6f 74 61 74 69  6f 6e 20 6d 61 72 6b 73  |.quotation marks|
000003f0  20 77 68 69 63 68 20 63  61 6e 20 62 65 20 69 6e  | which can be in|
00000400  73 65 72 74 65 64 20 64  69 72 65 63 74 6c 79 20  |serted directly |
00000410  61 74 20 74 68 65 0a 63  61 72 65 74 20 62 79 20  |at the.caret by |
00000420  63 6c 69 63 6b 69 6e 67  20 6f 6e 20 74 68 65 6d  |clicking on them|
00000430  20 28 61 20 62 69 74 20  6c 69 6b 65 20 21 43 68  | (a bit like !Ch|
00000440  61 72 73 29 2e 0a 0a 49  66 20 74 68 65 20 61 70  |ars)...If the ap|
00000450  70 6c 69 63 61 74 69 6f  6e 20 69 73 20 51 75 69  |plication is Qui|
00000460  74 20 69 74 20 74 75 72  6e 73 20 63 6f 6e 76 65  |t it turns conve|
00000470  72 73 69 6f 6e 20 6f 66  66 20 61 6e 64 0a 71 75  |rsion off and.qu|
00000480  69 74 73 20 74 68 65 20  6d 6f 64 75 6c 65 2e 20  |its the module. |
00000490  49 66 20 90 48 69 64 65  91 20 69 73 20 73 65 6c  |If .Hide. is sel|
000004a0  65 63 74 65 64 20 66 72  6f 6d 20 74 68 65 20 6d  |ected from the m|
000004b0  65 6e 75 2c 0a 74 68 65  20 66 72 6f 6e 74 20 65  |enu,.the front e|
000004c0  6e 64 20 70 72 6f 67 72  61 6d 20 77 69 6c 6c 20  |nd program will |
000004d0  62 65 20 71 75 69 74 2c  20 62 75 74 20 69 74 20  |be quit, but it |
000004e0  77 69 6c 6c 20 6c 65 61  76 65 0a 63 6f 6e 76 65  |will leave.conve|
000004f0  72 73 69 6f 6e 20 6f 6e  20 69 66 20 74 68 69 73  |rsion on if this|
00000500  20 77 61 73 20 74 68 65  20 6d 6f 73 74 20 72 65  | was the most re|
00000510  63 65 6e 74 20 73 74 61  74 65 2e 0a 0a 57 68 65  |cent state...Whe|
00000520  6e 20 74 68 65 20 61 70  70 6c 69 63 61 74 69 6f  |n the applicatio|
00000530  6e 20 69 73 20 71 75 69  74 2c 20 74 68 65 20 6d  |n is quit, the m|
00000540  6f 64 75 6c 65 20 73 74  69 6c 6c 20 61 63 63 65  |odule still acce|
00000550  70 74 73 0a 74 68 65 20  63 6f 6d 6d 61 6e 64 73  |pts.the commands|
00000560  3a 0a 51 75 6f 74 65 73  20 4f 6e 0a 51 75 6f 74  |:.Quotes On.Quot|
00000570  65 73 20 4f 66 66 0a 54  6f 20 74 75 72 6e 20 63  |es Off.To turn c|
00000580  6f 6e 76 65 72 73 69 6f  6e 20 4f 6e 20 61 6e 64  |onversion On and|
00000590  20 4f 66 66 2e 0a 0a 50  65 72 73 6f 6e 61 6c 6c  | Off...Personall|
000005a0  79 2c 20 49 20 6c 65 61  76 65 20 74 68 65 20 6d  |y, I leave the m|
000005b0  6f 64 75 6c 65 20 69 6e  20 6d 79 20 62 6f 6f 74  |odule in my boot|
000005c0  20 66 69 6c 65 20 61 6e  64 0a 64 6f 6e 91 74 20  | file and.don.t |
000005d0  75 73 65 20 74 68 65 20  66 72 6f 6e 74 20 65 6e  |use the front en|
000005e0  64 20 61 74 20 61 6c 6c  2e 0a 0a 54 68 65 20 70  |d at all...The p|
000005f0  72 6f 67 72 61 6d 20 75  6e 66 6f 72 74 75 6e 61  |rogram unfortuna|
00000600  74 65 6c 79 20 69 73 20  6e 6f 74 20 74 6f 74 61  |tely is not tota|
00000610  6c 6c 79 20 66 6f 6f 6c  70 72 6f 6f 66 2c 0a 61  |lly foolproof,.a|
00000620  6e 64 20 73 6f 20 77 69  6c 6c 20 6e 6f 74 20 61  |nd so will not a|
00000630  6c 77 61 79 73 20 67 69  76 65 20 79 6f 75 20 74  |lways give you t|
00000640  68 65 20 71 75 6f 74 61  74 69 6f 6e 20 6d 61 72  |he quotation mar|
00000650  6b 73 0a 77 68 69 63 68  20 79 6f 75 20 61 63 74  |ks.which you act|
00000660  75 61 6c 6c 79 20 77 61  6e 74 2e 20 49 66 20 74  |ually want. If t|
00000670  68 69 73 20 68 61 70 70  65 6e 73 20 74 68 65 20  |his happens the |
00000680  6f 6e 6c 79 0a 74 68 69  6e 67 20 79 6f 75 20 63  |only.thing you c|
00000690  61 6e 20 64 6f 20 69 73  20 67 6f 20 62 61 63 6b  |an do is go back|
000006a0  20 61 6e 64 20 63 68 61  6e 67 65 20 74 68 65 6d  | and change them|
000006b0  20 79 6f 75 73 65 6c 66  2e 20 49 0a 68 6f 70 65  | youself. I.hope|
000006c0  20 69 74 20 77 6f 72 6b  73 20 63 6f 72 72 65 63  | it works correc|
000006d0  74 6c 79 20 6d 6f 73 74  20 6f 66 20 74 68 65 20  |tly most of the |
000006e0  74 69 6d 65 20 74 68 6f  75 67 68 21 0a 0a 4f 6e  |time though!..On|
000006f0  65 20 6c 61 73 74 20 74  68 69 6e 67 2c 20 54 68  |e last thing, Th|
00000700  65 20 70 72 6f 67 72 61  6d 20 6f 6e 6c 79 20 77  |e program only w|
00000710  6f 72 6b 73 20 77 68 65  6e 20 79 6f 75 20 61 72  |orks when you ar|
00000720  65 0a 69 6e 20 74 68 65  20 64 65 73 6b 74 6f 70  |e.in the desktop|
00000730  2e 20 49 66 20 79 6f 75  20 6c 65 61 76 65 20 74  |. If you leave t|
00000740  68 65 20 64 65 73 6b 74  6f 70 2c 20 74 68 65 20  |he desktop, the |
00000750  70 72 6f 67 72 61 6d 0a  77 69 6c 6c 20 64 65 2d  |program.will de-|
00000760  61 63 74 69 76 61 74 65  20 69 74 73 65 6c 66 20  |activate itself |
00000770  61 73 20 73 6f 6f 6e 20  61 73 20 69 74 20 72 65  |as soon as it re|
00000780  61 6c 69 73 65 73 21 0a  0a 54 68 65 20 46 6c 79  |alises!..The Fly|
00000790  69 6e 67 20 50 69 67 21  0a 0a                    |ing Pig!..|
0000079a