# mdarh/arabickeyboard architecture

> Architecture diagram of the GitHub repository mdarh/arabickeyboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mdarh/arabickeyboard
- Repository: https://github.com/mdarh/arabickeyboard

## Overview

##### Installation Components
- AMD64 (64-bit) MSI installer
- i386 (32-bit) MSI installer
- IA64 (Itanium) MSI installer
- A central "setup.exe" component that acts as the universal installer

##### Runtime Architecture
- Windows Input Method Manager (IMM) at the top
- Custom Arabic Keyboard Implementation in the middle
- Windows Registry Integration at the bottom

##### User Interface Layer
- A visual representation of:
- Keyboard Layout Manager
- Character Mapping System
- Input Method Editor (IME)

##### Component Relationships
- Installation flow from setup.exe to architecture-specific MSI files
- Interaction between keyboard layout and Windows IMM
- Registry integration points

##### Labels
- Architecture support (AMD64, i386, IA64)
- Input method integration points
- Character mapping flow
- System requirements

Specific Implementation Details:

##### Installation Flow
- Setup.exe → Architecture Detection → Appropriate MSI Installer → System Integration

##### Runtime Flow
- User Input → IME → Character Mapping → Windows Text Services → Application

Level of Detail:

- Keep the high-level architecture clear while showing the critical components
- Installation and runtime paths
- System integration points
- Architecture support clearly

Additional Considerations:

##### Version compatibility
- Windows version support
- Architecture support
- System requirements

##### External dependencies
- Windows Input Method Manager
- Registry requirements
- System permissions needed

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Installation
        Setup["Setup.exe"]
        ArchDetect["Architecture Detection"]
        AMD64["AMD64 MSI Installer"]
        I386["i386 MSI Installer"]
        IA64["IA64 MSI Installer"]
    end

    subgraph "Runtime Layer"
        IMM["Windows Input Method Manager"]
        IME["Input Method Editor"]
        CharMap["Character Mapping System"]
    end

    subgraph "System Integration"
        Registry["Windows Registry"]
        WOW64["WOW64 Compatibility Layer"]
        AMD64_Impl["AMD64 Implementation"]
        I386_Impl["i386 Implementation"]
        IA64_Impl["IA64 Implementation"]
    end

    subgraph "User Interface"
        KBLayout["Keyboard Layout Manager"]
        TextServices["Windows Text Services"]
        UserInput["User Input"]
    end

    %% Relationships
    Setup --> ArchDetect
    ArchDetect --> AMD64
    ArchDetect --> I386
    ArchDetect --> IA64
    
    AMD64 --> AMD64_Impl
    I386 --> I386_Impl
    IA64 --> IA64_Impl
    
    UserInput --> IME
    IME --> CharMap
    CharMap --> TextServices
    
    AMD64_Impl --> IMM
    I386_Impl --> IMM
    IA64_Impl --> IMM
    
    WOW64 --> AMD64_Impl
    WOW64 --> I386_Impl
    
    IMM --> Registry
    KBLayout --> IME

    %% Styling
    classDef installer fill:#b3e0ff
    classDef runtime fill:#98fb98
    classDef system fill:#ffa500
    classDef windows fill:#d3d3d3
    
    class Setup,AMD64,I386,IA64 installer
    class IMM,IME,CharMap runtime
    class Registry,WOW64,AMD64_Impl,I386_Impl,IA64_Impl system
    class TextServices,ArchDetect windows

    %% Click events
    click Setup "https://github.com/MDARH/ArabicKeyboard/blob/master/src/setup.exe"
    click AMD64 "https://github.com/MDARH/ArabicKeyboard/blob/master/src/ArabicHS_amd64.msi"
    click I386 "https://github.com/MDARH/ArabicKeyboard/blob/master/src/ArabicHS_i386.msi"
    click IA64 "https://github.com/MDARH/ArabicKeyboard/blob/master/src/ArabicHS_ia64.msi"
    click AMD64_Impl "https://github.com/MDARH/ArabicKeyboard/tree/master/src/amd64"
    click I386_Impl "https://github.com/MDARH/ArabicKeyboard/tree/master/src/i386"
    click IA64_Impl "https://github.com/MDARH/ArabicKeyboard/tree/master/src/ia64"
    click WOW64 "https://github.com/MDARH/ArabicKeyboard/tree/master/src/wow64"
```
