                          WORDPERFECT 5.1 DOS
                     CUA-COMPATIBLE KEYBOARD LAYOUT

                              Version 1.0
                                97-10-27

                   by Laurent Duchastel de Montrouge

INTRODUCTION
============

For those who are still working with Wordperfect 5.1 DOS but are used to
CUA Windows keystrokes, moving around, selecting, editing, and
formatting may become very frustrating. Original keystrokes of
Wordperfect 5.1 are very different from Windows equivalent. For example,
copying a text in Wordperfect is done with Ctr-F4,1,2, while it can be
done with Ctrl-C or Ctrl-Ins under Windows.

As I work most of the time with Windows, but still have to use
Wordperfect 5.1 DOS on a regular basis, I often find myself desperately
using non-working Windows keystrokes with Wordperfect. Reflexes are
difficult to control. I therefore decided to create my own keyboard
layout to emulate common Windows keystrokes.


DISTRIBUTION
============

I decided to put this keyboard layout under public domain, which
means it is not only FREE, but you can also edit it as much as you
want. You may want to add your own macros and key definitions. 

You are invited to distribute this keyboard layout as much as you can,
but you must keep it free of charge. 

You can also distribute your own versions of this keyboard layout as
long as you keep them in the public domain, free of charge, and that you
give me some credits for the initial idea.
 
If you modify this layout in way that it would enhance its power and
compatibility with CUA Windows standard, I would be more than happy to
receive a copy. Suggestion and comments are also welcomed:

           Laurent Duchastel de Montrouge
           email1: k16210@er.uqam.ca
           email2: lduchastel@hotmail.com  

  
INSTALLATION
============

The installation is very simple: 

1. Copy the keyboard layout in the directory used for keyboard layout
and macros (the one display in Shift-F1,6,2).

2. Make this keyboard the active one by selecting it with Shift-F1,5.
That's it ! 

You can remove this keyboard anytime by deselecting it and deleting the
file.  


DEVELOPMENT NOTES
=================

There is no wizardry tricks here. Development was easy and
straightforward. You can check how each keystroke works with command
Shift-F1,5,7 and examining each macro by looking within the Action
submenu. I tried to mimick most CUA Windows keystrokes, although I did
not follow any specific standard.

The major problem was that the Wordperfect 5.1 DOS keyboard layout
feature does not support the Shift state, neither mutiple Ctrl and Alt
state. I had to figure out rough equivalent in some case. For example, I
decided to use the Alt state instead of the Shift state to mimick most
Windows keystrokes. So Shift-Home would become Alt-Home, etc. I believe
there is no way to do otherwise.

Also, some multiple state keystrokes had to be divided in two strokes.
For example, in Windows, to select a text from cursor position up to the
end of document, the command is Shift-Ctrl-End. This cannot be done with
Wordperfect DOS. To do the same thing, you must first activate the
selection (block) mode (by using any of the command Alt-Up, Alt-Down,
etc.), andm only then, use the Ctrl-End command.

Note that I also redefined common keys such as arrows. If selection mode
is active (Macro state 128), they will first turn it off, just as
Windows keystrokes do.

Some features of Wordperfect will be not available as consequence of
redefining some keys. For exemple, the Home key will not work as before
and all functions normally using that key are affected: just to name a
few, the [Home Left] and [Home Home Left] command are not available
anymore. Typing [Home] now will be always like calling the [Home Home
Home Left] command. Same thing with Ctrl-PgDn which does not erase the
end of the page anymore. PgUp and PgDown will not jump to previous or
next page anymore, but to previous or next screen. All these changes
actually help to mimick CUA Windows behaviour, but you are free to
change them back to Wordperfect 5.1 DOS default.
 
Last minor note. I developped this keyboard layout on a French-Canadian
version of Wordperfect. Normally, most commands should work without
modification as I used menu number rather than letter. However,
there are some Wordperfect commands that are language-dependent,
in particular for Yes/No answer (which is Oui/Non in French, or Si/No in
Spanish). The following macros need such modifications to suit your
language:  

     Alt-V     Paste
     Alt-Ins   Paste
     Ctrl-Z    Undo
     Del       Delete 

I am offering three keyboard layouts for three different languages
(English, French, and Spanish). The only thing that differs is the "y",
"o" or "s" in the four macros listed above. However, please take note
that I did NOT test the English and Spanish keyboard layouts, so you
have to test them yourself.

LEGEND
======

  MOVING AROUND

WP51 command   Description                        CUA/Windows equivalent
------------------------------------------------------------------------
Home           Move to beginning of line          Home
End            Move to end of line                End
Right          Move one character to right        Right
Left           Move one character to left         Left
Up             Move to one line above             Up
Down           Move to one line below             Down
PgUp           Move one screen above              PgUp
PgDown         Move one screen below              PgDown 
Ctrl-End       Move to end of document            Ctrl-End
Ctrl-Home      Move to beginning of document      Ctrl-Home

  SELECTION

WP51 command   Description                        CUA/Windows equivalent
------------------------------------------------------------------------
Alt-Right      Extend select. one char to right   Shift-Right
Alt-Left       Extend select. one char to left    Shift-Left
Alt-Up         Extend select. one line above      Shift-Up
Alt-Down       Extend select. one line below      Shift-Down
Alt-Home       Extend select. to beg. of line     Shift-Home
Alt-End        Extend select. to end of line      Shift-End
Alt-F11        Select current word                none 
Alt-F12        Select current phrase              none

Any selection command above to activate selection mode, and followed by...

Ctrl-End       Extend select. to end of document  Shift-Ctrl-End
Ctrl-Home      Extend select. to beg. of document Shift-Ctrl-Home
PgUp           Extend select. one screen above    Shift-PgUp
PgDown         Extend select. one screen below    Shift-PgDown 


  EDIT AND CLIPBOARD

WP51 command   Description                        CUA/Windows equivalent
------------------------------------------------------------------------
Alt-X          Cut to clipboard                   Ctrl-X
Alt-Del        Cut from clipboard                 Shift-Del
Alt-C          Copy to clipboard                  Ctrl-C
Ctrl-Ins       Copy to clipboard                  Ctrl-Ins
Alt-V          Paste from clipboard               Ctrl-V
Alt-Ins        Paste from clipboard               Shift-Ins
Ctrl-Z         Undo (look alike)                  Ctrl-Z         
Del            Delete (without confirmation)      Del


  FORMATTING

WP51 command   Description                        CUA/Windows equivalent
------------------------------------------------------------------------
Ctrl-B         Bold                               Ctrl-B
Ctrl-I         Italic                             Ctrl-I
Ctrl-U         Underline                          Ctrl-U
Ctrl-[         Insert character  <<               none
Ctrl-]         Insert character >>                none

