# Policy Text Redline Packager Local source edition 1.0.0. Compare two editions of a public policy or handbook. Download a readable redline and a reversible patch, with hashes for both texts. ## Run locally Extract the complete ZIP. Use Python 3.12 from a terminal in the extracted directory. The tool uses the Python standard library. python run.py example.json results Use a new output folder for each run. Start with example.json and replace its synthetic values with your own data. Preserve field names, types and units. Files and reports are processed on your computer. ## Inputs Supply before and after as plain UTF-8 text using LF line endings, up to 256 KiB and 2000 lines each. A final newline is significant. Use documents suitable for hosted processing. ## Results Read REVIEW.html offline. CHANGE.patch is a unified diff for a file named policy.txt. In a scratch folder containing the old file, run git apply --check CHANGE.patch and then git apply CHANGE.patch. Use git apply -R CHANGE.patch to restore the old version. Identical documents produce an empty patch. OUTPUT records both SHA-256 hashes. The results folder includes summary.json and the output files produced by this input. The sample produces: REVIEW.html, CHANGE.patch. ## Español · Comparador de versiones de políticas Genera una vista HTML de los cambios y un parche reversible para dos ediciones de un mismo texto. Extrae el ZIP completo y abre una terminal en esa carpeta con Python 3.12. El programa usa la biblioteca estándar de Python. Ejecuta: python run.py example.json resultados Copia example.json para preparar tus datos. Conserva los nombres y tipos de los campos, usa una carpeta de salida nueva y consulta summary.json junto con los archivos generados. La descripción detallada de los campos está en inglés. The included LICENSE covers use and modification for your own personal and commercial projects. This edition includes its source and can run locally after setup.