Skip to content
SATANG.B
All workProduct
v1.2 · shippedAccessibility

Thai PDF Fixer

Broken Thai PDFs, readable again — for blind users on NVDA and JAWS.

Turns Thai PDFs with broken text into Word files that screen readers read correctly. Every step works from the keyboard and is announced, and Python is bundled — nothing else to install.

Before · PDF

ส ำนักงำนคณะกรรมกำร
ผู ้ขอรับบริกำร

Screen reader: unreadable

After · Word

สำนักงานคณะกรรมการ
ผู้ขอรับบริการ

NVDA reads it correctly

Thai PDF Fixer app icon
  • NVDA
  • JAWS
  • 100% keyboard
keyboard operable
100%
and JAWS announce every step
NVDA
extra things to install
0
updates itself
Auto
Why I built it

Many Thai PDFs store characters in the wrong order: they look fine but a screen reader reads gibberish. This repairs the text before it reaches the user.

Results

8 → 10 Mar 2026 · 69 commits in 3 days · v1.2.12
  • A self-updating Windows installer; users install no Python
  • Every step works from the keyboard and is announced to screen readers

What it does

  • Repairs vowels and tone marks

    Fixes split sara am and misplaced tone marks, with PyThaiNLP for word boundaries.

    Before · PDF

    ส ำนักงำนคณะกรรมกำร
    ผู ้ขอรับบริกำร

    Screen reader: unreadable

    After · Word

    สำนักงานคณะกรรมการ
    ผู้ขอรับบริการ

    NVDA reads it correctly

  • Keeps tables and images

    Tables and images come across into the Word file too.

  • Built for screen readers

    Each step is announced, with sounds for success and errors.

Screens

1 screens · click to enlarge

What went wrong — and how I fixed it

Real problems from the commit history, not a highlight reel.

  1. 01
    Problem

    Garbled Thai from custom font encodings, split sara am and TIS-620/Windows-874 mojibake.

    How I fixed it

    Character remapping, combining-mark reordering, rebuilding sara am and CID-to-Unicode resolution.

  2. 02
    Problem

    The PyInstaller build crashed on start (ModuleNotFoundError).

    How I fixed it

    Forced the pure-Python package instead of the compiled modules.

  3. 03
    Problem

    Thai broke in the converter’s output on Windows.

    How I fixed it

    Forced UTF-8 on stdout/stderr.

  4. 04
    Problem

    Auto-update broke: missing signatures, a key corrupted by a newline, and 404s from spaces in the file name.

    How I fixed it

    Build and publish manually, use printf instead of echo, and hyphenate the file name.

  5. 05
    Problem

    Text-to-speech was unreliable.

    How I fixed it

    Removed it and used aria-live so the user’s own screen reader speaks.

Under the hood

Broken PDF in. Readable Word out.

  1. 01Pick a PDF with the keyboard
  2. 02Text, tables and images extracted with PyMuPDF and pdfplumber
  3. 03Thai character order repaired
  4. 04Saved as .docx, announced by the screen reader
Role
Solo — design, the Python pipeline and the Tauri app
Stack
Tauri · Next.js · Python · PyMuPDF · pdfplumber · PyThaiNLP · python-docx