diff --git a/build/render-compare.ps1 b/build/render-compare.ps1 new file mode 100644 index 00000000..86df7f8c --- /dev/null +++ b/build/render-compare.ps1 @@ -0,0 +1,55 @@ +<# +.SYNOPSIS + Compares Filee's document renderers with the PDFs 한글 printed, over a private corpus outside the repository. + +.DESCRIPTION + The corpus is a folder (searched recursively) of documents next to the PDF 한글 printed of each: doc.hwpx + doc.pdf, + or doc.hwp + doc.pdf. Nothing of it is copied into the repository. Every document is rendered by rhwp (fetch it with + build/fetch-engines.ps1 -Only rhwp) and, once one is registered, by Filee's layout engine; each rendering is compared + with 한글's PDF (page count, line breaks, baselines, per-page SSIM at 100 dpi) and read back (text, overlapping + glyphs, glyphs outside the page, embedded fonts). The results go to an HTML report with the page that differs most of + each document side by side. + + It runs RenderCorpusTests in tests/Filee.Engines.Tests (docs/RENDER-QUALITY.md). + +.PARAMETER Corpus + The corpus folder. Defaults to the FILEE_RENDER_CORPUS environment variable. + +.PARAMETER Report + The HTML report to write. Defaults to filee-render-compare-