Fonts: Armenian and Georgian are offered but missing from SCRIPTS, so no font check covers them #455
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#455
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found on 2026-09-29 in a read-only review of postulo at
95348908d, comparing the languages offered withlanguages.SCRIPTSand the font probes.Checked again on 2026-10-01 against
mainat0a5cad587: still present.SCRIPTSrecords the non-Latin script of only five languages:am,ar,bg,elandti. Armenian (hy) and Georgian (ka), offered since #118, are absent, soscripts_offered()never names their scripts.check_fonts, the font status in Server settings andtests/test_fonts.pyall start from that set, so none of them ever asks whether Armenian or Georgian can be drawn. (Macedonian, Serbian and Ukrainian are missing too, but Cyrillic is already checked throughbg.)core/languages.py:574(SCRIPTS) andcore/languages.py:583(scripts_offered);documents/fonts.py:39(PROBES, with no Armenian or Georgian probe) anddocuments/fonts.py:147(renderable_scripts);documents/management/commands/check_fonts.py:29;tests/test_fonts.py:74, wheretest_every_non_latin_language_declares_its_scriptchecks its own fixed set{"ar", "am", "ti", "bg", "el"}and so cannot notice a new language.check_fonts, or opens the font status in Server settings, and is told every offered script draws. A CV written in Armenian or Georgian then renders as empty boxes. The container image is not affected today, because it installsfonts-noto-core, but the test meant to keep the image honest does not know either script exists."hy": "Armenian"and"ka": "Georgian"(andmk,sr,ukas Cyrillic) toSCRIPTS; add probes("hye", "Ա")and("kat", "ა")todocuments/fonts.PROBES; add both scripts toCOVERAGEintests/test_fonts.pywithfonts-noto-core. Replace the fixednot_latinset with a check that cannot drift: every offered language outside an explicit list of Latin-script codes must have aSCRIPTSentry.Done when
tests/test_fonts.pyfails today forhyandka(a language offered that is neither in the Latin list nor inSCRIPTS) and passes once both are declared, probed and covered.