Keyboard Support

Contact and Search Homepage

Header bottom

Other versions
Version 18.0 (home page)Version 17.0 (home page, current version)Version 16.0 (home page)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0Version 7.0 (home page)Version 6.0 (home page)Version 5.0 (home page)Version 4.0 (home page)


On this page

Step 2: Writing the Header

Overview of a keyboard file

A keyboard file is divided into two sections: the header and the rules. The header section defines the name of the keyboard, its bitmap, and other general settings. The rules are used to define how the keyboard responds to keystrokes from the user, and are divided into groups. We will start by writing the header.

The keyboard header

The keyboard header is the first part of a keyboard; it consists of statements that help Keyman identify the keyboard and set default options for it. Each statement in the header must be on a separate line and is usually written with capital letters, although that is not required. Keeping the statements in the header in upper case helps you identify them easily, and keeps them consistent with keyboard programs other people might write.

We will begin to write the keyboard. If Keyman Developer is not already running, start it now. It will open with a blank keyboard file ready for us.

Type or paste the following code into the keyboard file. This is the header of our keyboard file.

c Simplified French Keyboard for Keyman 7.0
c This keyboard program uses a simplified set of keys
c for typing French, especially for those who don't know the
c standard French keyboard.
c NOTE: This keyboard was created from the Keyman keyboard
c programming tutorial.

store(&Version) "7.0"             c This keyboard is for use with Keyman 7.0
store(&Name)    "Quick French"
store(&Bitmap)  "qfrench.ico"
store(&MnemonicLayout) "1"        c This keyboard uses a mnemonic layout.

begin Unicode > use(Main)

An explanation of the various parts of the header follows on the next page.

Step 3: The Keyboard Header