Repository navigation
mrdiff 0.4.0
Archives
Any zip — docx, xlsx, pptx, EPUB, Sketch, jar — is compared as a folder: which files inside differ, read from the archive's own table of contents (CRC and size per entry), without unpacking.
$ mrdiff deck-v1.pptx deck-v2.pptx
changed ppt/slides/slide3.xml
only in B ppt/media/image7.png
1 changed, 0 only in A, 1 only in B (inside the archive)
Word documents
When both archives hold a Word body, each paragraph's text is pulled out and compared as a line diff — one paragraph per line, with the character-level highlight. Other parts (formatting, media, properties) are counted, not compared.
$ mrdiff contract-v1.docx contract-v2.docx
paragraphs: 1 changed, 1 added, 0 removed
1 other parts differ (formatting, media, properties) — the text above is what changed in the body
1 - Article 1 Delivery by 31 October 2026.
1 + Article 1 Delivery by 30 November 2026.
Fonts
OTF, TTF, TTC. Every character both fonts have is drawn into the same 48 px cell and compared pixel by pixel; characters only one side has are listed as added or removed. WOFF is not read.
$ mrdiff Mincho-1.002.otf Mincho-1.003.otf
Fonts differ — 12 of 6,842 glyphs render differently
first: あ U+3042
only in B: 3 characters (first ① U+2460)
version: 1.002 → 1.003
--json gains kind: "archive", "docx", "font". Nothing existing changed. The README now also lists what ImageIO already decodes (PSD, HEIC, AVIF, WebP, TIFF, camera RAW).
日本語
- アーカイブ:zip なら何でも(docx・xlsx・pptx・EPUB・Sketch・jar)目次からフォルダとして比べ、中のどのファイルが違うかを言います。展開しません
- Word 文書:両方に本文があれば、段落ごとの文字を抜いて行 diff に掛けます。書式・画像・プロパティは数だけ
- フォント:OTF・TTF・TTC。両方が持つ文字を同じ枠に描いて画素で比べ、違った字形と増減した文字を言います。WOFF は読みません
--json に archive・docx・font が増え、既存の形は変わっていません。
sha256: 76c8fa938ff980d9b51b953d59629bb14c3818316412a4b5949ee66ef4837799