fix(pdf): preserve accented names in revised CV and letter headings

This commit is contained in:
cesnimda
2026-10-29 23:38:43 +01:00
parent 38d7133d20
commit 154a9e89f5
13 changed files with 235 additions and 13 deletions
+3
View File
@@ -6,6 +6,7 @@ import argparse
import hashlib
import importlib.util
import json
import re
from pathlib import Path
import pdfplumber
@@ -30,7 +31,9 @@ def main():
ink = json.loads((args.corpus/'name-box-metrics.json').read_text(encoding='utf-8'))
rows = []
for dom in measured['rows']:
assert re.fullmatch(r'(short-en|medium-nb|long-en|dense-nb)-[a-z-]+',dom['fixture'])
file = args.corpus/dom['fixture']/'export.pdf'
assert file.stat().st_size <= 8*1024*1024
assert sha(file) == dom['pdfSha256'], 'Native PDF changed since DOM measurement binding'
original = next(row for row in oracle['fixtures'] if row['fixture'] == dom['fixture'])
comparison = next(row for row in original['comparisons'] if row['token'] == 'S01')