Skip to content

Skueb/Template-Generator

Repository files navigation

Template Generator

ICHITA & SRYA Report Template Generator — Word document formatter with Thai font support.

What it does

Upload a .docx file → select ICHITA or SRYA template → get a professionally formatted company report.

  • Cover page with title, subtitle, project metadata table
  • TH Aeonik font (ICHITA) or TH Slussen font (SRYA)
  • Heading styles — H1 with blue left border, H2 indented
  • Body text — justified, exact line spacing
  • Tables — dark header row, thin borders
  • Images — preserved from original, split if stacked
  • Header logo and page numbers from template

Quick Start

Windows (double-click)

  1. Run setup.bat (first time — installs Python venv + dependencies)
  2. Run install-fonts.bat as Administrator (installs TH Aeonik + TH Slussen fonts)
  3. Run run.bat (opens browser at http://localhost:8501)

Command line

pip install -r requirements.txt
streamlit run app.py

Fonts

Font Team Variants
TH Aeonik ICHITA Regular, Bold, BoldItalic, Light, LightItalic, Italic
TH Slussen SRYA Regular, Italic, Medium, MediumItalic, Semibold, SemiboldItalic, Bold, BoldItalic, Light, LightItalic

Files

├── app.py              # Streamlit web UI
├── config.py           # Template configuration
├── engine.py           # Core document processing engine
├── requirements.txt    # Python dependencies
├── run.bat             # Launch app (Windows)
├── setup.bat           # First-time setup (Windows)
├── install-fonts.bat   # Font installer (Windows, Run as Admin)
├── fonts/              # TH Aeonik (6) + TH Slussen (10)
└── templates/          # ICHITA + SRYA .docx templates

Claude Code

This project includes a .claude/ agent definition. Your friend can use it with Claude Code:

cd Template-Generator
claude

Then ask Claude to apply a template to any .docx file.

About

ICHITA & SRYA Report Template Generator — Word document formatter with Thai font support (TH Aeonik + TH Slussen)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors