haideralsaadi83-design

Arabic Side By Side Translation — Development skill for Claude Code

Development community

Claude Code skill: translate any document into MSA and lay it out as a bilingual two-column DOCX.

How to install Arabic Side By Side Translation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open haideralsaadi83-design/arabic-side-by-side-translation and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Arabic Side By Side Translation does

Claude Code skill: translate any document into MSA and lay it out as a bilingual two-column DOCX.

Alternatives in Development

  • Dense Compression Protocol — Astryx Translation Protocol 30.7k ★
  • Octo Docs — Document delivery with export to PPTX, DOCX, PDF formats 2.8k ★
  • Translation Detect — 同步原版更新、检测翻译状态、制定同步计划, 完成后自动建议执行翻译 695 ★

README

Arabic Side-by-Side Translation

A [Claude Code](https://claude.com/claude-code) skill that translates any document into Modern Standard Arabic (MSA) and lays the result out as a bilingual two-column document — original in column 1, Arabic translation in column 2, row-aligned on every page.

Claude does the translating itself (no external translation API). This skill's script only handles document assembly: turning already-translated pairs of text into a laid-out DOCX.

What it handles

  • Pasted text, .docx, .pptx, .xlsx, .pdf, and webpages as source input
  • Headings, paragraphs, bullet/numbered lists, tables, and images as row-aligned content units
  • Charts/infographics: the original graphic is kept untouched in both columns; only extractable labels/captions are translated
  • Full RTL correctness for the Arabic column — paragraph direction (bidirectional + rightToLeft), right-alignment, leading list markers that land on the correct edge, and RTL-aware nested table cells (not just text alignment)

Usage

Install as a Claude Code skill (drop the folder in `~/.claude/skills/`), then ask Claude to produce a bilingual/side-by-side Arabic translation of a document. Claude reads the source, translates each content unit into MSA, and calls the build script to assemble the final file:

node scripts/build_bilingual_docx.js input.json output.docx [--font "Arial"]

See [`SKILL.md`](SKILL.md) for the full workflow and the `input.json` schema (row types: `heading`, `paragraph`, `list`, `table`, `image`).

Requirements

  • Node.js
  • `docx` npm package (npm install docx)
  • LibreOffice (soffice) for the DOCX → PDF verification/delivery step

License

MIT