Swedish adaptation: Instegscertifikat and HAREC

- Editions replaced by INSTEG, HAREC and UPPGRADERING (Instegscertifikat -> HAREC)
- Question pool optional; simulator, homework tool and solutions switch off without one
- All UI strings, templates, renderers and project JS localised to sv-SE
  (decimal comma, Swedish non-breaking-space rules, Å/Ä/Ö in Morse table)
- DARC branding, membership CTA and German links removed; attribution footer added
- Page names centralised in src/pages.py
- README and docs rewritten in Swedish

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-10-10 15:03:02 +02:00
co-authored by Claude Sonnet 5.5
parent 28cf11437e
commit 874838f525
81 changed files with 918 additions and 1329 deletions
+4 -4
View File
@@ -7,15 +7,15 @@ from test.util import paragraph, render_html
@pytest.mark.html
def test_halfwidth_space_html():
input = "Dies ist z.B. ein Test. D.h. hier sollten d.h. Spaces ersetzt worden sein."
target = "Dies ist z.&#8239;B. ein Test. D.&#8239;h. hier sollten d.&#8239;h. Spaces ersetzt worden sein."
input = "Det här är t.ex. ett test. T.ex. här ska mellanrummen ha ersatts, t. ex. så."
target = "Det här är t.&#8239;ex. ett test. T.&#8239;ex. här ska mellanrummen ha ersatts, t.&#8239;ex. så."
assert render_html(input) == paragraph(target)
@pytest.mark.latex
def test_halfwidth_space_latex():
input = "Dies ist z.B. ein Test. D.h. hier sollten d.h. Spaces ersetzt worden sein."
target = "\nDies ist z.\\,B. ein Test. D.\\,h. hier sollten d.\\,h. Spaces ersetzt worden sein.\n"
input = "Det här är t.ex. ett test. T.ex. här ska mellanrummen ha ersatts."
target = "\nDet här är t.\\,ex. ett test. T.\\,ex. här ska mellanrummen ha ersatts.\n"
assert mistletoe.markdown(input, FiftyOhmLaTeXRenderer) == target