Zap Documentation      Latest release     
ZapRedraw      Contact      Download     

Previous | Contents | Index | Next

Chapter 13: Extensions to Zap

Here we look at various useful extensions to Zap. Some of them may or may not have come with the core distribution; if not, they are available from wherever you got Zap itself (or, if not, from the main Zap site - see section 15.2).

13.1 ZapSpell: spell checking for Zap

ZapSpell provides features to allow you to spell check from within Zap. A number of features are included; spell checking the selection or an entire file (using throwback to mark unrecognised words), and simple dictionary lookup.

The front end is started by the SPELL command (cA or from the Misc->Spell menu). It will select the word at the cursor, and try to find that word in the dictionary. The main window has a large number of buttons; Previous and Next move backwards and forwards through the file looking for unrecognised words; Check selection and Check buffer will open a throwback window containing all unrecognised words; Replace replaces the current selection in the file with the current word in the writable icon at the top of the spelling window.

ZapSpell uses Computer Concepts' Impression Spell module (not supplied); it also provides an interface to Computer Concepts' WordWorks thesaurus/dictionary application.

More information is available in the documentation which comes with ZapSpell, which is a 'normal' Zap extension - ie it lives in !Zap.Modules.

13.2 Behind-the-scenes extensions to Zap

There are a few extensions which Zap can use to make your life easier. These are autoloaded when required (although you can turn that feature off - see section 12.2.6).

These extensions all live in !Zap.Code.Extensions - in general this needn't concern you, however, because they tend to be supplied with the core distribution. Even if you obtain them separately, they will usually be supplied within a dummy !Zap structure, so you can simply copy them over the top of your current Zap installation.

In general these aren't specific to Zap - but they are so useful with Zap that they can be installed with it, and automatically loaded by it.

13.2.1 Olly Betts' Line editor

The most important extension is Olly Bett's excellent line editor. This supplies a variety of features to Zap: it is used to provide a history for the minibuffer and the search windows, and it is used in Taskwindow mode to provide a command line editing facility similar to tcsh (and other Unix shells) or 4DOS.

We strongly suggest having this autoloaded (unless you load it in your boot sequence :-), because it makes life so much easier. See Olly's documentation for details on how to use and configure the line editor.

13.2.2 ExtBASICAsm: extended assembly and disassembly

ExtBASICAsm, and its companion, Debugger Plus, are a pair of extensions written by Darren Salt, and which give support for additional BASIC assembly, and disassembly options. In particular, many of the more recent ARM opcodes are supported (including ones that in general won't be used in RISC OS).

In the autoload menu (see section 12.2.6) they are referred to as Disassembler and Assembler.

Documentation is supplied with them; in addition, you should look at section 10.3 for information on how to configure Zap's use of Debugger Plus when disassembling ARM code.

13.2.3 HidePtr: hiding the mouse pointer while you work

This is a simple extension written by Martin Ebourne which hides the mouse pointer while you are typing, and then unhides it again when you use the mouse. This prevents your being distracted while working with a file in Zap, but gives you instant access to the mouse when you need it. It is also apparently a common feature amongst DTP and word processing packages.

13.2.4 DeepKeys: Better keyboard response

This is an attempt to limit the problems Zap has to do with keyboard modifiers. For instance, if you save a file, and while saving press scT (insert current time), sometimes if the save takes a long time Zap will not notice that shift was held down when cT was pressed, and will perform the wrong action (in this case selecting the entire file).

DeepKeys makes this much more bearable. Unlike its predecessor, KeyboardExtend, there are no known conflicts with other programs.

13.2.5 FlashCar: flashing the cursor in dialogue boxes

You may have already noticed that Zap has a feature to flash its text cursor; this extension gives you the same facilities in all your RISC OS dialogue boxes.

13.2.6 IClear: clear writeable icons using the mouse

Martyn Fox's IClear allows you to clear the contents of a writeable icon using the mouse. Simply double click on the icon using Select or Adjust, and the icon is inverted. As soon as you press a key, the text in the icon will be replaced with the character that you typed. With the icon inverted, a further click will de-invert the icon and put things back to normal (in case you decide you want the current contents after all).


The next section in the manual is chapter 14, which you should read if you want to help with Zap development, whether in a technical or non-technical role.

If not, you can move onto the last section of the manual, chapter 15, which covers other user documentation included with Zap; the future of Zap, and how to get in touch with the Zap development team. It also discusses the Zap license, and covers things such as bug reports.

Previous | Contents | Index | Next


© Copyright Zap Developers 1992-2004. All Rights Reserved.