# neouyghur/uyghur-multi-script-converter architecture

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

- Interactive diagram: https://gitdiagram.com/neouyghur/uyghur-multi-script-converter
- Repository: https://github.com/neouyghur/uyghur-multi-script-converter

## Overview

UMSC is a small Python library for converting Uyghur text among writing systems, including UAS, ULS, CTS, UCS, UYS, IPA, Uzbek Latin, and XJUS. The principal workflow is to choose source and target scripts, pass text through `UgMultiScriptConverter`, and receive converted text. The package exports that class, while its script mappings and revision rules are implemented in one module. The excerpts show mapping behavior but omit the converter’s dispatch implementation, so the graph keeps the internal relationship at the documented level.

Main entry points: [`umsc/umsc.py`](https://github.com/neouyghur/uyghur-multi-script-converter/blob/master/umsc/umsc.py) (Script converter)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_caller(("Converter user"))
node_converter["Script converter<br/>[umsc.py]"]
node_mapping["Mapping rules<br/>[umsc.py]"]
node_converted["Converted text"]

node_caller -->|"chooses scripts"| node_converter
node_converter -->|"converts text"| node_mapping
node_converter -->|"returns result"| node_converted

click node_converter "https://github.com/neouyghur/uyghur-multi-script-converter/blob/master/umsc/umsc.py"
click node_mapping "https://github.com/neouyghur/uyghur-multi-script-converter/blob/master/umsc/umsc.py"

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_caller toneBlue
class node_converter,node_mapping toneTeal
class node_converted toneIndigo
```

## Components

### Other components

- **Converter user**
- [Script converter](https://github.com/neouyghur/uyghur-multi-script-converter/blob/master/umsc/umsc.py): `umsc/umsc.py`
- [Mapping rules](https://github.com/neouyghur/uyghur-multi-script-converter/blob/master/umsc/umsc.py): `umsc/umsc.py`
- **Converted text**

## Connections

- Converter user → Script converter: chooses scripts (evidence: `README.md`)
- Script converter → Mapping rules: converts text (evidence: `README.md`)
- Script converter → Converted text: returns result (evidence: `README.md`)
