fix(pdf): preserve accented names in revised CV and letter headings
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user