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
+14 -14
View File
@@ -29,8 +29,8 @@ Reference to second: [ref:pic2]
result = renderer.render(doc)
# Hierarchical numbers in the figure captions.
assert "Abbildung E-2.3.1:" in result
assert "Abbildung E-2.3.2:" in result
assert "Figur E-2.3.1:" in result
assert "Figur E-2.3.2:" in result
# References are resolved to the same numbers.
assert ">E-2.3.1</a>" in result
@@ -56,8 +56,8 @@ Reference: [ref:photo1]
result = renderer.render(doc)
assert "Abbildung N-1.2.1:" in result
assert "Abbildung N-1.2.2:" in result
assert "Figur N-1.2.1:" in result
assert "Figur N-1.2.2:" in result
assert ">N-1.2.1</a>" in result
@@ -84,8 +84,8 @@ Reference: [ref:table1]
result = renderer.render(doc)
assert "Tabelle A-3.1.1:" in result
assert "Tabelle A-3.1.2:" in result
assert "Tabell A-3.1.1:" in result
assert "Tabell A-3.1.2:" in result
assert ">A-3.1.1</a>" in result
@@ -117,10 +117,10 @@ References: [ref:pic1], [ref:photo1], [ref:tab1], [ref:pic2]
result = renderer.render(doc)
assert "Abbildung E-5.2.1:" in result # pic1
assert "Abbildung E-5.2.2:" in result # photo1
assert "Tabelle E-5.2.3:" in result # tab1
assert "Abbildung E-5.2.4:" in result # pic2
assert "Figur E-5.2.1:" in result # pic1
assert "Figur E-5.2.2:" in result # photo1
assert "Tabell E-5.2.3:" in result # tab1
assert "Figur E-5.2.4:" in result # pic2
@pytest.mark.slide
@@ -139,7 +139,7 @@ Reference: [ref:pic1]
result = renderer.render(Document(markdown_text))
assert "Abbildung ES-2.1.1:" in result
assert "Figur ES-2.1.1:" in result
assert ">ES-2.1.1</a>" in result
@@ -157,7 +157,7 @@ Reference: [ref:pic1]
result = renderer.render(Document(markdown_text))
# Falls back to the bare counter.
assert "Abbildung 1:" in result
assert "Figur 1:" in result
assert ">1</a>" in result
@@ -192,5 +192,5 @@ def test_table_without_name_not_numbered():
result = renderer.render(doc)
assert "Abbildung E-1.1.1:" in result
assert "Tabelle" not in result
assert "Figur E-1.1.1:" in result
assert "Tabell" not in result