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.

- 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
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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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





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.
