# keymanapp/keyboards architecture

> Architecture diagram of the GitHub repository keymanapp/keyboards, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keymanapp/keyboards
- Repository: https://github.com/keymanapp/keyboards

## Overview

This repository is a catalog of Keyman keyboard layouts, rather than a single application. The user workflow is to select a keyboard in a Keyman app, type using its layout, and produce text in the target script. The tree and README distinguish release, legacy, and experimental collections; sampled source shows layout rules and generated keyboard behavior, including a standalone Chinese Pinyin input-method component. Most keyboard implementations were not sampled, so broad collection relationships are documented at directory level and unverified runtime links are dashed.

Main entry points: [`release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp`](https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp) (Pinyin IMX), [`release`](https://github.com/keymanapp/keyboards/tree/master/release) (Release keyboards), [`legacy`](https://github.com/keymanapp/keyboards/tree/master/legacy) (Legacy keyboards), [`experimental`](https://github.com/keymanapp/keyboards/tree/master/experimental) (Experimental keyboards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_collections["Keyboard collections"]
  node_release["Release keyboards"]
  node_legacy["Legacy keyboards"]
  node_experimental["Experimental keyboards"]
end

subgraph group_runtime["Keyboard runtime"]
  node_bod["Bod transliterating"]
  node_tibetan["Tibetan EWTS"]
  node_gurage["Gurage layout<br/>[gff_gurage.php]"]
  node_pan_africa["Pan Africa layout"]
  node_sitelan_pona["Sitelen Pona layout"]
end

subgraph group_guides["Layout references"]
  node_keyboard_help["Keyboard help<br/>[rac_hazaragi.php]"]
  node_ipa_help["IPA layout reference<br/>[nlci_ipa.php]"]
  node_hiero_help["Hieroglyphic reference<br/>[hieroglyphic.php]"]
end

subgraph group_pinyin["Pinyin input method"]
  node_imx["Pinyin IMX<br/>[KeymanIMX.cpp]"]
  node_imxlib["IMX library declarations<br/>[imxlib.h]"]
  node_imxheaders["IMX declarations<br/>[keymanimx.h]"]
end

node_user(("Keyboard user"))
node_keyman["Keyman apps"]
node_text["Typed text"]

node_user -.->|"types in"| node_keyman
node_keyman -->|"offers category"| node_experimental
node_keyman -.->|"loads layout"| node_release
node_keyman -.->|"loads layout"| node_legacy
node_experimental -.->|"produces text"| node_text
node_release -.->|"produces text"| node_text
node_legacy -.->|"produces text"| node_text
node_imx -->|"includes"| node_imxlib
node_imx -->|"includes"| node_imxheaders
node_tibetan -.->|"maps keystrokes"| node_text
node_bod -.->|"maps keystrokes"| node_text
node_sitelan_pona -->|"converts words"| node_text

click node_release "https://github.com/keymanapp/keyboards/tree/master/release"
click node_legacy "https://github.com/keymanapp/keyboards/tree/master/legacy"
click node_experimental "https://github.com/keymanapp/keyboards/tree/master/experimental"
click node_bod "https://github.com/keymanapp/keyboards/blob/master/legacy/b/bod_transliterating/source/bod_transliterating.js"
click node_tibetan "https://github.com/keymanapp/keyboards/blob/master/legacy/t/tibetan_unicode_ewts/source/tibetan_unicode_ewts.js"
click node_gurage "https://github.com/keymanapp/keyboards/blob/master/release/gff/gff_gurage/source/help/gff_gurage.php"
click node_pan_africa "https://github.com/keymanapp/keyboards/blob/master/release/sil/sil_pan_africa_mnemonic/source/help/sil_pan_africa_mnemonic.php"
click node_sitelan_pona "https://github.com/keymanapp/keyboards/blob/master/experimental/s/sp_lentan_ucsur/source/help/sp_lentan_ucsur.php"
click node_keyboard_help "https://github.com/keymanapp/keyboards/blob/master/release/rac/rac_hazaragi/source/help/rac_hazaragi.php"
click node_imx "https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp"
click node_imxlib "https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/imxlib.h"
click node_imxheaders "https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/keymanimx.h"
click node_ipa_help "https://github.com/keymanapp/keyboards/blob/master/release/nlci/nlci_ipa/source/help/nlci_ipa.php"
click node_hiero_help "https://github.com/keymanapp/keyboards/blob/master/release/h/hieroglyphic/source/help/hieroglyphic.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_release,node_legacy,node_experimental,node_user toneBlue
class node_bod,node_tibetan,node_gurage,node_pan_africa,node_sitelan_pona toneAmber
class node_keyboard_help,node_ipa_help,node_hiero_help toneMint
class node_imx,node_imxlib,node_imxheaders toneRose
class node_keyman,node_text toneIndigo
```

## Components

### Keyboard collections

- [Release keyboards](https://github.com/keymanapp/keyboards/tree/master/release): `release`
- [Legacy keyboards](https://github.com/keymanapp/keyboards/tree/master/legacy): `legacy`
- [Experimental keyboards](https://github.com/keymanapp/keyboards/tree/master/experimental): `experimental`

### Keyboard runtime

- [Bod transliterating](https://github.com/keymanapp/keyboards/blob/master/legacy/b/bod_transliterating/source/bod_transliterating.js): `legacy/b/bod_transliterating/source/bod_transliterating.js`
- [Tibetan EWTS](https://github.com/keymanapp/keyboards/blob/master/legacy/t/tibetan_unicode_ewts/source/tibetan_unicode_ewts.js): `legacy/t/tibetan_unicode_ewts/source/tibetan_unicode_ewts.js`
- [Gurage layout](https://github.com/keymanapp/keyboards/blob/master/release/gff/gff_gurage/source/help/gff_gurage.php): `release/gff/gff_gurage/source/help/gff_gurage.php`
- [Pan Africa layout](https://github.com/keymanapp/keyboards/blob/master/release/sil/sil_pan_africa_mnemonic/source/help/sil_pan_africa_mnemonic.php): `release/sil/sil_pan_africa_mnemonic/source/help/sil_pan_africa_mnemonic.php`
- [Sitelen Pona layout](https://github.com/keymanapp/keyboards/blob/master/experimental/s/sp_lentan_ucsur/source/help/sp_lentan_ucsur.php): `experimental/s/sp_lentan_ucsur/source/help/sp_lentan_ucsur.php`

### Layout references

- [Keyboard help](https://github.com/keymanapp/keyboards/blob/master/release/rac/rac_hazaragi/source/help/rac_hazaragi.php): `release/rac/rac_hazaragi/source/help/rac_hazaragi.php`
- [IPA layout reference](https://github.com/keymanapp/keyboards/blob/master/release/nlci/nlci_ipa/source/help/nlci_ipa.php): `release/nlci/nlci_ipa/source/help/nlci_ipa.php`
- [Hieroglyphic reference](https://github.com/keymanapp/keyboards/blob/master/release/h/hieroglyphic/source/help/hieroglyphic.php): `release/h/hieroglyphic/source/help/hieroglyphic.php`

### Pinyin input method

- [Pinyin IMX](https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp): `release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp`
- [IMX library declarations](https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/imxlib.h): `release/c/cs_pinyin/source/keymanimx/imxlib.h`
- [IMX declarations](https://github.com/keymanapp/keyboards/blob/master/release/c/cs_pinyin/source/keymanimx/keymanimx.h): `release/c/cs_pinyin/source/keymanimx/keymanimx.h`

### Other components

- **Keyboard user**
- **Keyman apps**
- **Typed text**

## Connections

- Keyboard user → Keyman apps: types in
- Keyman apps → Experimental keyboards: offers category
- Keyman apps → Release keyboards: loads layout
- Keyman apps → Legacy keyboards: loads layout
- Experimental keyboards → Typed text: produces text
- Release keyboards → Typed text: produces text
- Legacy keyboards → Typed text: produces text
- Pinyin IMX → IMX library declarations: includes (evidence: `release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp`)
- Pinyin IMX → IMX declarations: includes (evidence: `release/c/cs_pinyin/source/keymanimx/KeymanIMX.cpp`)
- Tibetan EWTS → Typed text: maps keystrokes
- Bod transliterating → Typed text: maps keystrokes
- Sitelen Pona layout → Typed text: converts words (evidence: `experimental/s/sp_lentan_ucsur/source/help/sp_lentan_ucsur.php`)
