# tranhoangnam712/wps-bug-ubuntu-fonts architecture

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

- Interactive diagram: https://gitdiagram.com/tranhoangnam712/wps-bug-ubuntu-fonts
- Repository: https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts

## Overview

This repository provides two distro-specific Bash installers for WPS Office. The user runs the script matching their package family, chooses a proprietary-font or open-source-font setup, and receives WPS updates, font installation, and documented compatibility fixes. The README describes these capabilities but no script source was available, so internal call wiring and which script implements each individual fix cannot be verified; the graph shows only the documented associations.

Main entry points: [`wps-install-apt.sh`](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh) (APT installer), [`wps-install-dnf.sh`](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-dnf.sh) (DNF installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Installation"]
  node_apt["APT installer<br/>[wps-install-apt.sh]"]
  node_dnf["DNF installer<br/>[wps-install-dnf.sh]"]
  node_update["WPS update<br/>[wps-install-apt.sh]"]
end

subgraph group_fonts["Font options"]
  node_personal["Microsoft fonts<br/>[wps-install-apt.sh]"]
  node_business["Forged fonts<br/>[wps-install-apt.sh]"]
  node_shared["Shared fonts<br/>[wps-install-apt.sh]"]
end

subgraph group_fixes["Compatibility fixes"]
  node_video["Video playback fix<br/>[wps-install-apt.sh]"]
  node_bold["Fake bold fix<br/>[wps-install-apt.sh]"]
  node_export["PDF export fix<br/>[wps-install-apt.sh]"]
end

node_user(("Linux user"))
node_wps["WPS Office"]
node_updateapi["WPS update API"]

node_user -->|"runs"| node_apt
node_user -->|"runs"| node_dnf
node_apt -->|"updates"| node_update
node_dnf -->|"updates"| node_update
node_update -->|"queries"| node_updateapi
node_update -->|"installs"| node_wps
node_apt -->|"offers"| node_personal
node_apt -->|"offers"| node_business
node_apt -->|"installs"| node_shared
node_dnf -->|"offers"| node_personal
node_dnf -->|"offers"| node_business
node_dnf -->|"installs"| node_shared
node_personal -->|"provides fonts"| node_wps
node_business -->|"provides fonts"| node_wps
node_shared -->|"provides fonts"| node_wps
node_apt -->|"fixes"| node_video
node_apt -->|"fixes"| node_bold
node_apt -->|"fixes"| node_export
node_dnf -->|"fixes"| node_video
node_dnf -->|"fixes"| node_bold
node_dnf -->|"fixes"| node_export

click node_apt "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_dnf "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-dnf.sh"
click node_update "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_personal "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_business "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_shared "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_video "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_bold "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"
click node_export "https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh"

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_apt,node_dnf,node_update,node_user toneBlue
class node_personal,node_business,node_shared toneAmber
class node_video,node_bold,node_export,node_updateapi toneMint
class node_wps toneIndigo
```

## Components

### Installation

- [APT installer](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`
- [DNF installer](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-dnf.sh): `wps-install-dnf.sh`
- [WPS update](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`

### Font options

- [Microsoft fonts](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`
- [Forged fonts](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`
- [Shared fonts](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`

### Compatibility fixes

- [Video playback fix](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`
- [Fake bold fix](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`
- [PDF export fix](https://github.com/tranhoangnam712/wps-bug-ubuntu-fonts/blob/main/wps-install-apt.sh): `wps-install-apt.sh`

### Other components

- **Linux user**
- **WPS Office**
- **WPS update API**

## Connections

- Linux user → APT installer: runs
- Linux user → DNF installer: runs
- APT installer → WPS update: updates
- DNF installer → WPS update: updates
- WPS update → WPS update API: queries
- WPS update → WPS Office: installs
- APT installer → Microsoft fonts: offers
- APT installer → Forged fonts: offers
- APT installer → Shared fonts: installs
- DNF installer → Microsoft fonts: offers
- DNF installer → Forged fonts: offers
- DNF installer → Shared fonts: installs
- Microsoft fonts → WPS Office: provides fonts
- Forged fonts → WPS Office: provides fonts
- Shared fonts → WPS Office: provides fonts
- APT installer → Video playback fix: fixes
- APT installer → Fake bold fix: fixes
- APT installer → PDF export fix: fixes
- DNF installer → Video playback fix: fixes
- DNF installer → Fake bold fix: fixes
- DNF installer → PDF export fix: fixes
