KUTHA / كوثا
Englishالعربية
hello@kuthadesign.com

All workCase study / 04

DocMirra

أداة محاكاة التنسيق

Document tooling · Product design · Web app

Problem
Restyling new content to match a finished document was slow, manual work.
Outcome
A browser tool that reads a sample’s style and applies it to new content.
Live tool
DocMirra on desktop and mobile: a template beside new content already set in its style, and on the phone the finished page ready to download as a Word document
Status
Live · free to use
Platform
Web app in one page; also runs offline from a single file
Languages
Arabic and English interface
Our role
Concept, style reading, document export, product design, development
URL
docmirra.kuthadesign.com

The problem

Teams that publish a lot of text often have one document that looks right and a steady stream of new content that doesn’t. Matching it means copying fonts, sizes, colours and spacing by hand, heading by heading, and the result drifts a little every time.

We wanted a tool that treats the good document as the specification: read its style once, apply it to any new content in Arabic or English, and catch the mistakes before the file goes out.

The system

A tool that copies the look of one document onto another. Upload a sample whose style you want, add the raw content, and DocMirra reads the sample’s fonts, sizes, colours and page setup, labels every line of the new text, and hands it back in that style.

  1. Wrote the style reader: it opens a Word file, a PDF or a photo and takes the typeface, size, colour, alignment and spacing of each kind of line, with the margins and page size.
  2. Built the line labelling that sorts plain text into titles, subtitles, paragraphs, quotations, lists and sources, with a mode for Islamic texts that recognises Qur’anic verses and hadith, and one for classical Arabic poetry that sets each verse in two facing halves.
  3. Designed the analysis as a mirror: the template on one side and the new content already set in its style on the other, with every value it read open to change before it is applied.
  4. Made the editor check the work: missing subtitles, the same name spelt two ways, sections that run too long, plus a glossary, find and replace, and a live preview of the page.
  5. Wrote the exporters: Word documents built in the browser with right-to-left Arabic set properly, a styled web page, Markdown, and JSON with every line labelled.
  6. Kept it to one page that also runs offline from a single file. AI help, for descriptions, proofreading and reading photos, is optional and runs on the visitor’s own Claude or Gemini key, which stays in their browser.

Screens

The start page: choose what to make, from a Word document to labelled JSON.
The mirror: your template, and your content already set in its style.
The editor: every line labelled, the checks on the left, the page on the right.
The Arabic interface, with a preset for classical poetry.
The dark theme; the page stays on white paper.

Highlights

  • Your sample is the specification

    No style sheet to fill in: the fonts, sizes, colours and margins come from a document you already like.

  • A mirror before you commit

    The analysis shows the template and your content in its style side by side, and every value can be changed before it is applied.

  • Arabic from the start

    Right-to-left layout, Arabic type and mixed-language documents are handled in the reading, the editing and the export, in an interface available in both languages.

The outcome

DocMirra is live and free, in Arabic and English, and already in regular use by a content team that prepares its documents with it. Each release is checked by automated tests, including an accessibility pass in light and dark themes.

Built withJavaScript, single-page appWord files written in the browser (Office Open XML)pdf.js for reading PDFsOptional AI help through the visitor’s own keyNetlify

Something similar in mind?

Tell us what you’re making and who it’s for. We reply within one working day.

Support this app

Next project / 01DiwaniArabic language · Product design · Development