Locales

Swedish typography rules · sv

Svenska

Swedish sets primary quotation marks as ”…” and secondary quotation marks as ’…’. A break in a sentence is written with an en dash (U+2013) with a space on each side; number and date ranges take an en dash (U+2013) with no surrounding spaces. Numbers bind to units such as % ‰ kr with U+00A0.

Updated · spec 1.12.0

Run polytypo with Swedish rules

Edit the text and polytypo typesets it with the sv locale, in your browser. The code under the form is the call that produces the result.

Runs in your browser. Nothing you paste is sent anywhere.

The call the form above is making, right now

Other locales, and all the options, are in the full playground.

Swedish typography at a glance #

Tagsv
NameSwedish
Primary quotes” U+201D right double quotation mark … ” U+201D right double quotation mark
Secondary quotes’ U+2019 right single quotation mark … ’ U+2019 right single quotation mark
Parenthetical dashspaced en dash
Range dashunspaced en dash
Rules with citationsquotes, dashes, ellipsis, nbsp, hyphen
Conformance cases154

Which locale tags resolve to Swedish? #

The locale option is resolved exactly, then by declared alias, then by dropping the region once; anything else throws POLYTYPO_UNKNOWN_LOCALE.

TagHow it resolves
svregistered locale
sv-FIregion removed, then the registered locale

Which quotation marks does Swedish use? #

Primary” U+201D right double quotation mark … ” U+201D right double quotation mark — no space inside the marks
Secondary’ U+2019 right single quotation mark … ’ U+2019 right single quotation mark — no space inside the marks

quotes

sv-quotes-basic
Han sa "hej" och gick.
Han sa ”hej” och gick.
sv-quotes-nested
"Han sa 'hej'", sa jag.
”Han sa ’hej’”, sa jag.
sv-quotes-nesting-with-question
"Hon frågade: 'vad nu?'"
”Hon frågade: ’vad nu?’”

How are apostrophes set in Swedish? #

apostrophe

sv-apostrophe-contraction
don't
don’t
sv-apostrophe-elision
l'été
l’été
sv-apostrophe-possessive-plural
the dogs' bowls
the dogs’ bowls

Which dashes does Swedish use for breaks and ranges? #

Parenthetical break (dash.parenthetical)an en dash (U+2013) with a space on each side
Between numbers and dates (dash.range)an en dash (U+2013) with no surrounding spaces

The dashes rule reads the parenthetical convention. The ranges rule reads the range convention and is off by default.

dashes

sv-dashes-parenthetical-spaced-input
Planen - om det finns en - misslyckas.
Planen – om det finns en – misslyckas.
sv-dashes-parenthetical-double-hyphen
Planen--om det finns en--misslyckas.
Planen – om det finns en – misslyckas.
sv-dashes-authored-em-dash-converts
dokument — PDF-filer — och du
dokument – PDF-filer – och du

ranges

The ranges rule is off by default; these cases enable it with rules: { ranges: true }.

sv-ranges
1914-1918 and pp. 34-36
1914⁠–⁠1918 and pp. 34⁠–⁠36

options: rules: {"ranges": true}

sv-ranges-hyphen-range-bound
1914-1918
1914⁠–⁠1918

options: rules: {"ranges": true}

sv-ranges-one-two-digits
Tar 5-10 dagar
Tar 5⁠–⁠10 dagar

options: rules: {"ranges": true}

How is the ellipsis set in Swedish? #

An ellipsis keeps its full form after ! and ?; this locale does not abbreviate it there.

ellipsis

sv-ellipsis-three-dots
Wait... what?
Wait… what?
sv-ellipsis-mixed-run
Wait…… what?
Wait… what?
sv-ellipsis-two-dots-after-terminal
Really?..
Really?…

How are hyphens handled in Swedish? #

The hyphen lists are empty for this locale, so the hyphen rule changes nothing.

Where does Swedish use no-break spaces? #

Characters that take U+00A0 before them (nbsp.beforePunctuation)none
Characters that take U+202F before them (nbsp.narrowBeforePunctuation)none
Short words after which the space becomes U+00A0, so the word is not left at the end of a line (nbsp.afterShortWords)none
Multi-token abbreviations whose internal spaces become U+00A0 (nbsp.abbreviations)none
Units and signs bound to the preceding number with U+00A0 (nbsp.beforeUnits)% ‰ kr € kg g mg km m cm mm l dl cl ml kW kWh min sek tim h °C
Abbreviations bound to the following number with U+00A0 (nbsp.beforeNumber)none
Abbreviations bound to the following word with U+00A0 (nbsp.beforeWord)none
Symbols bound to the following number with U+00A0 (nbsp.afterSymbols)§
Initials (nbsp.initialBinding)none — disabled: initials are never bound to the name that follows

spaces

sv-spaces-collapse-run
Hello world.
Hello world.
sv-spaces-strip-before-punctuation
Hello , world !
Hello, world!
sv-spaces-bracket-inner
( ok ) and [ x ]
(ok) and [x]

nbsp

sv-nbsp-unit
Vi gick 5 km i dag
Vi gick 5 km i dag
sv-nbsp-currency-unit
Det kostar 100 kr
Det kostar 100 kr
sv-nbsp-percent
Priset steg 5 %
Priset steg 5 %

How are symbols set in Swedish? #

symbols

sv-symbols-copyright
Copyright (c) 2026 Iurii Rogulia
Copyright © 2026 Iurii Rogulia
sv-symbols-tm-and-registered
Acme(tm) and Acme (R)
Acme™ and Acme ®
sv-symbols-s1-asymmetry
f(c) and f(tm)
f(c) and f™

How does Swedish text behave in text, HTML and Markdown modes? #

Each input is the locale's sample sentence followed by a code run, say("a -- b ..."). text mode sets the whole string as prose, code run included. In html and markdown mode the code run comes back byte for byte; only the prose is set.

text
Hon frågade: "Är det inte affären i 'hörnet'?" ... Vi gick - nästan 3 km - och hittade den stängd. Copyright (c) 2026; trycket mäter 40x60 cm och kostar 10,5 % mer. say("a -- b ...")
Hon frågade: ”Är det inte affären i ’hörnet’?” … Vi gick – nästan 3 km – och hittade den stängd. Copyright © 2026; trycket mäter 40×60 cm och kostar 10,5 % mer. say(”a – b …”)
html
<p>Hon frågade: "Är det inte affären i 'hörnet'?" ... Vi gick - nästan 3 km - och hittade den stängd. Copyright (c) 2026; trycket mäter 40x60 cm och kostar 10,5 % mer.</p> <pre><code>say("a -- b ...")</code></pre>
<p>Hon frågade: ”Är det inte affären i ’hörnet’?” … Vi gick – nästan 3 km – och hittade den stängd. Copyright © 2026; trycket mäter 40×60 cm och kostar 10,5 % mer.</p> <pre><code>say("a -- b ...")</code></pre>
markdown
Hon frågade: "Är det inte affären i 'hörnet'?" ... Vi gick - nästan 3 km - och hittade den stängd. Copyright (c) 2026; trycket mäter 40x60 cm och kostar 10,5 % mer. `say("a -- b ...")`
Hon frågade: ”Är det inte affären i ’hörnet’?” … Vi gick – nästan 3 km – och hittade den stängd. Copyright © 2026; trycket mäter 40×60 cm och kostar 10,5 % mer. `say("a -- b ...")`

Which sources define Swedish typography? #

10 citations in spec/locales/sv.json, grouped by the rule each one supports. A citation names the authority; the note records what the source does and does not settle.

ellipsis

  • Språkrådet, Snabba skrivregler, kap. 1 “Skiljetecken och skrivtecken” (tre punkter) www.diva-portal.org

    `abbreviatedAfterTerminal` is false. The guide treats “tre punkter” as an ordinary mark alongside utropstecken and frågetecken; no two-dot form after `!`/`?` exists in Swedish. That form is Russian-only.

dashes

  • Språkrådet, Snabba skrivregler, §1.10 “Tankstreck (–)” www.diva-portal.org

    Range, verbatim: “Det används framför allt mellan siffror och mellan ortnamn för att visa till exempel tidsperioder, avstånd och intervall. Du har då inget mellanslag före eller efter tankstrecket.” (öppet 9–18, åren 2026–2028, s. 3–5). Parenthetical, verbatim: “Tankstreck kan ibland användas före paus eller tillägg. På samma sätt används det vid mer självständiga inskott … Då har du mellanslag före och efter tankstrecket.” Swedish uses the en dash (tankstreck) in both roles; there is no em dash in the recommendation.

hyphen

  • Språkrådet, Snabba skrivregler, §4.4 (sammansättningar med förkortningar) and kap. 7 (avstavning) www.diva-portal.org

    `prefixes`, `suffixes` and `compounds` are empty. The guide’s hyphen material states when to insert a bindestreck in compounds (e-post, EU-länderna, FN-arbete, satellit-tv-program, lan-spel) and treats avstavning as a separate topic; it never forbids a line break at an existing hyphen. Swedish compounding is productive, so there is no closed inventory to list — the field exists for the Russian кое- / -таки / из-под case. No U+2011 requirement found in any Språkrådet material consulted.

quotes

  • Språkrådet (Institutet för språk och folkminnen), Snabba skrivregler – i skolan och på jobbet, red. Ola Karlsson, §1.13 “Citattecken (”)” www.diva-portal.org

    Verbatim: “Normala svenska citattecken ser ut som två små upphöjda nior och har samma form i början och slutet, alltså ”ord”. Men citattecken kan ha olika utseende i olika typsnitt och i olika språk, som i “engelska”, „tyska“ och «norska». Använd svenska citattecken i svensk text, även om det du citerar är på ett annat språk.” This settles the ❓ in PLAN.md §7: »…» is attested in Swedish book typography and older practice, but Språkrådet’s current recommendation is ”…” (U+201D on both sides), so that is what this file encodes.

  • Språkrådet, Snabba skrivregler, §1.14 “Apostrof (’)” www.diva-portal.org

    Verbatim: “En apostrof ser ut som en liten upphöjd nia (’). … Apostrof används även vid citat inuti ett citat, se ▶ 6.1.1.” Hence the secondary pair is U+2019 on both sides. Isof’s Frågelådan phrases the same rule as “enkla citattecken … när du har ett citat i ett citat”.

nbsp

  • Språkrådet, Snabba skrivregler, §1.16 “Tecken och mellanslag” www.diva-portal.org

    Verbatim: “Tecken som ersätter ord, som & för och, + för plus och % för procent, skrivs helst med mellanslag före och efter, precis som när du skriver ut orden: 5 % eftersom du skriver fem procent.” Examples given: “Ek & Lund (Ek och Lund), 3 € (tre euro), § 7 (paragraf sju), 2 + 3 (två plus tre)”. And: “För att de tecken och siffror som hör ihop ska hamna på samma rad och inte på olika rader, kan du använda så kallat fast mellanslag.” This is the authority for `%`, `€` and `§`. Note the direction: Språkrådet’s own example is “§ 7”, the sign before the number, so `§` is in `afterSymbols`, the opposite of Finnish. Swedish legal citation also writes “5 §”; that order is not covered by the cited example and is deliberately not encoded. `&` and `+` are omitted because they take a space on both sides and do not fit this schema’s bind-to-a-number model.

  • Språkrådet, Snabba skrivregler, §4.3.4 “Förkortningar för måttenheter”; BIPM, The International System of Units (SI), 9th ed. (2019), concise summary www.bipm.org

    Språkrådet verbatim: “Internationella förkortningar för måttenheter går alltid bra att skriva som förkortningar, som cm (centimeter), kg (kilo), kWh (kilowattimme) och ml (milliliter). Dessa skriver du alltid utan punkt. Så skriver du också svenska förkortningar som liknar måttenheter, som kr (kronor), min (minut), sek (sekund) och tim (timme).” BIPM verbatim: “A single space is always left between the number and the unit.” The unit list is restricted to forms named by one of these two sources.

  • Språkrådet, Snabba skrivregler, §4.3.1 and §4.5 “Vanliga förkortningar” www.diva-portal.org

    `abbreviations` is empty because Swedish multi-word abbreviations are written closed up, with no internal space: the guide’s own list gives bl.a., dvs., e.d., fr.o.m., f.d., f.ö., m.a.o., m.fl., m.m., obs., osv., p.g.a., s.k., t.ex., t.o.m. There is therefore no internal space to make non-breaking. (Older typographic practice spaced these — “t. ex.” — but that is not the current recommendation.)

  • No Språkrådet guidance found for short-word binding or for initials; values deliberately conservative

    `afterShortWords`, `beforePunctuation` and `narrowBeforePunctuation` are empty by design. §1.16 states the general rule plainly — “När du använder vanliga skiljetecken sätter du inget mellanslag före tecknet, men efter tecknet ska du ha mellanslag” — which rules out any before-punctuation space, and Swedish has no rule against short words at line end. `initialBinding` is "none" (spec 0.6.0: the field used to be the boolean bindInitials, false): §1.16 recommends fast mellanslag only for “de tecken och siffror som hör ihop”, i.e. signs and digits, not personal initials.

  • Språkrådet, Snabba skrivregler, §1.16 “Tecken och mellanslag” and §4.5 “Vanliga förkortningar” www.diva-portal.org

    `beforeNumber` and `beforeWord` are empty, and this was the closest call in this file. Språkrådet does write kl. 8–16, nr 3 and s. 3–5, and §1.16 recommends fast mellanslag so that “de tecken och siffror som hör ihop ska hamna på samma rad”. But that sentence is scoped to tecken — the sign-and-digit pairs of §1.16 (%, €, §, &, +) — and the guide nowhere extends it to abbreviations such as kl., nr or s. Encoding them would convert a plausible reading into a normative claim the source does not make, so the lists stay empty. `beforeWord` likewise: no Swedish authority consulted requires binding a title (dr, prof.) to a following name.

Already using polytypo? Add our badge

Two lines: a script tag and a span. No per-embed network call. Pick a language and a theme, then copy the code into your footer or credits. Embedding notes cover Content Security Policy. Sites with the badge are listed on Sites using polytypo.

<script async src="https://polytypo.dev/badge.js"></script>
<span data-polytypo-lang="en" data-polytypo-theme="light"></span>

Search runs in your browser. Nothing is sent anywhere.