# ribbonjikough/momotranslator architecture

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

- Interactive diagram: https://gitdiagram.com/ribbonjikough/momotranslator
- Repository: https://github.com/ribbonjikough/momotranslator

## Overview

MomoTranslator is a desktop comic-translation assistant. The documented workflow is to analyze comic frames, find speech bubbles, order them (with manual adjustment), recognize text, and translate it using Google or the ChatGPT web interface. The README also notes that lettering is not publicly available. The main Python implementation was not excerpted, so stage links reflect documented capabilities rather than verified internal calls; the language files are UI translations, not translation engines.

Main entry points: [`pyqt5_momotranslator.py`](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py) (Desktop GUI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Comic Workflow"]
  node_app["Desktop GUI"]
  node_frames["Frame Detection"]
  node_bubbles["Bubble Detection"]
  node_ordering["Bubble Ordering"]
  node_ocr["Text Recognition"]
  node_translate["Translation"]
end

subgraph group_locales["UI Locales"]
  node_en["English UI"]
  node_ja["Japanese UI"]
  node_ko["Korean UI"]
  node_zhcn["Simplified Chinese UI"]
  node_zhtw["Traditional Chinese UI"]
end

node_user(("Translator"))
node_google["Google Translate"]
node_chatgpt["ChatGPT Web"]

node_user -->|"launches"| node_app
node_app -->|"offers analysis"| node_frames
node_app -->|"offers analysis"| node_bubbles
node_app -->|"offers ordering"| node_ordering
node_app -->|"offers recognition"| node_ocr
node_app -->|"offers translation"| node_translate
node_translate -->|"uses option"| node_google
node_translate -->|"uses option"| node_chatgpt

click node_app "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_frames "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_bubbles "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_ordering "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_ocr "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_translate "https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py"
click node_en "https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_en_US.ts"
click node_ja "https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_ja_JP.ts"
click node_ko "https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_ko_KR.ts"
click node_zhcn "https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_zh_CN.ts"
click node_zhtw "https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_zh_TW.ts"

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_app,node_frames,node_bubbles,node_ordering,node_ocr,node_translate toneBlue
class node_en,node_ja,node_ko,node_zhcn,node_zhtw toneAmber
class node_user,node_google,node_chatgpt toneIndigo
```

## Components

### Comic Workflow

- [Desktop GUI](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`
- [Frame Detection](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`
- [Bubble Detection](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`
- [Bubble Ordering](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`
- [Text Recognition](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`
- [Translation](https://github.com/ribbonjikough/momotranslator/blob/main/pyqt5_momotranslator.py): `pyqt5_momotranslator.py`

### UI Locales

- [English UI](https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_en_US.ts): `MomoHanhuaUserData/MomoTranslator_en_US.ts`
- [Japanese UI](https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_ja_JP.ts): `MomoHanhuaUserData/MomoTranslator_ja_JP.ts`
- [Korean UI](https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_ko_KR.ts): `MomoHanhuaUserData/MomoTranslator_ko_KR.ts`
- [Simplified Chinese UI](https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_zh_CN.ts): `MomoHanhuaUserData/MomoTranslator_zh_CN.ts`
- [Traditional Chinese UI](https://github.com/ribbonjikough/momotranslator/blob/main/MomoHanhuaUserData/MomoTranslator_zh_TW.ts): `MomoHanhuaUserData/MomoTranslator_zh_TW.ts`

### Other components

- **Translator**
- **Google Translate**
- **ChatGPT Web**

## Connections

- Translator → Desktop GUI: launches (evidence: `README.md`)
- Desktop GUI → Frame Detection: offers analysis (evidence: `README.md`)
- Desktop GUI → Bubble Detection: offers analysis (evidence: `README.md`)
- Desktop GUI → Bubble Ordering: offers ordering (evidence: `README.md`)
- Desktop GUI → Text Recognition: offers recognition (evidence: `README.md`)
- Desktop GUI → Translation: offers translation (evidence: `README.md`)
- Translation → Google Translate: uses option (evidence: `README.md`)
- Translation → ChatGPT Web: uses option (evidence: `README.md`)
