Locales

Latvian typography rules · lv

Latviešu

Latvian 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 % € EUR with U+00A0.

Updated · spec 1.33.0

Run polytypo with Latvian rules

Edit the text and polytypo typesets it with the lv 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.

Latvian typography at a glance #

Taglv
NameLatvian
Primary quotes“ U+201C left double quotation mark … ” U+201D right double quotation mark
Secondary quotes“ U+201C left double quotation mark … ” U+201D right double quotation mark
Parenthetical dashspaced en dash
Range dashunspaced en dash
Rules with citationsquotes, dashes, ranges, ellipsis, hyphen, nbsp
Conformance cases34

Which locale tags resolve to Latvian? #

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
lvregistered locale
lv-LVregion removed, then the registered locale

Which quotation marks does Latvian use? #

Primary“ U+201C left double quotation mark … ” U+201D right double quotation mark — no space inside the marks
Secondary“ U+201C left double quotation mark … ” U+201D right double quotation mark — no space inside the marks

quotes

lv-quotes-primary
Viņš teica: "jā" un aizgāja.
Viņš teica: “jā” un aizgāja.
lv-quotes-nested-same-pair
Viņš teica: "Es zinu, ka "Pīlādzis" ir laba grāmata."
Viņš teica: “Es zinu, ka “Pīlādzis” ir laba grāmata.”
lv-quotes-nested-with-words
Viņš teica: "Tā ir 'citāta' no grāmatas" un aizgāja.
Viņš teica: “Tā ir “citāta” no grāmatas” un aizgāja.

How are apostrophes set in Latvian? #

apostrophe

lv-apostrophe-foreign-name
O'Brien atnāca.
O’Brien atnāca.

Which dashes does Latvian 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 on by default.

dashes

lv-dashes-parenthetical
Viņš teica - protams - ka nāks.
Viņš teica – protams – ka nāks.
lv-dashes-em-input
Tas — protams — labi.
Tas – protams – labi.

ranges

The ranges rule is on by default; rules: { ranges: false } switches it off.

lv-ranges-digits-tight
1999-2000 un 30-35 gadi
1999⁠–⁠2000 un 30⁠–⁠35 gadi

options: rules: {"ranges": true}

How is the ellipsis set in Latvian? #

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

ellipsis

lv-ellipsis-three-dots
Pagaidi... un tad.
Pagaidi… un tad.
lv-ellipsis-after-question
Ko gan viņš pateiks?...
Ko gan viņš pateiks?…
lv-ellipsis-after-exclamation
Neesi mierā!...
Neesi mierā!…

How are hyphens handled in Latvian? #

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

Where does Latvian 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)u. c. u. tml. š. g.
Units and signs bound to the preceding number with U+00A0 when the author typed a space (nbsp.beforeUnits)none
Units and signs written with a space after the number: the space is bound with U+00A0, and inserted when missing (nbsp.spacedUnits)% € EUR km °C
Units and signs written closed up to the number: a space between them is removed (nbsp.closedUnits)none
Abbreviations bound to the following number with U+00A0 (nbsp.beforeNumber)Nr.
Abbreviations bound to the following word with U+00A0 (nbsp.beforeWord)none
Symbols bound to the following number with U+00A0 (nbsp.afterSymbols)none
Initials (nbsp.initialBinding)single — a lone initial is bound to the following word as well as a chain of initials

spaces

lv-spaces-brackets
Viņš ( klusi ) aizgāja .
Viņš (klusi) aizgāja.

nbsp

lv-nbsp-units
10 % un 21 € un 5 EUR un 3 km un -8 °C
10 % un 21 € un 5 EUR un 3 km un -8 °C
lv-nbsp-abbreviations
Tas ir, piemēram, u. c. un u. tml. un š. g. rudenī
Tas ir, piemēram, u. c. un u. tml. un š. g. rudenī
lv-nbsp-before-number
Nr. 20 un nr. 5
Nr. 20 un nr. 5

How are symbols set in Latvian? #

symbols

lv-symbols-copyright
(c) 2026
© 2026

How does Latvian 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
Viņa jautāja: "Vai tā nav veikals, ko sauc par 'to aiz stūra'?" ... Gājām - gandrīz 3 km - un tas bija slēgts. Copyright (c) 2026, formāts 40x60 cm. say("a -- b ...")
Viņa jautāja: “Vai tā nav veikals, ko sauc par “to aiz stūra”?” … Gājām – gandrīz 3 km – un tas bija slēgts. Copyright © 2026, formāts 40×60 cm. say(“a – b …”)
html
<p>Viņa jautāja: "Vai tā nav veikals, ko sauc par 'to aiz stūra'?" ... Gājām - gandrīz 3 km - un tas bija slēgts. Copyright (c) 2026, formāts 40x60 cm.</p> <pre><code>say("a -- b ...")</code></pre>
<p>Viņa jautāja: “Vai tā nav veikals, ko sauc par “to aiz stūra”?” … Gājām – gandrīz 3 km – un tas bija slēgts. Copyright © 2026, formāts 40×60 cm.</p> <pre><code>say("a -- b ...")</code></pre>
markdown
Viņa jautāja: "Vai tā nav veikals, ko sauc par 'to aiz stūra'?" ... Gājām - gandrīz 3 km - un tas bija slēgts. Copyright (c) 2026, formāts 40x60 cm. `say("a -- b ...")`
Viņa jautāja: “Vai tā nav veikals, ko sauc par “to aiz stūra”?” … Gājām – gandrīz 3 km – un tas bija slēgts. Copyright © 2026, formāts 40×60 cm. `say("a -- b ...")`

Which sources define Latvian typography? #

6 citations in spec/locales/lv.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

  • Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021), I pielikums «Jautājuma zīme», p. 122: «kopā ar daudzpunkti, lai pavēstītu par lielāku pauzi, kas sekos (Ko gan viņš visu tur nepiedzīvos?...)» vvc.gov.lv

    abbreviatedAfterTerminal = false: the handbook writes «?...» with three dots (read from a page image). One house-style example, MEDIUM; no source read reduces the dots after ? or ! (the handbook's «Divpunkte», pp. 88 and 118, is a different mark: two dots for an omission), so the three dots become the ellipsis character. Retrieved 2026-11-14.

ranges

  • Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021), p. 86: «Prievārda “līdz” vietā (ja saistāmie jēdzieni ir rakstīti ar cipariem) izmanto vienotājdomuzīmi, un to ar atstarpēm neatdala. 2005.–2007. gada plāns; viņa vecums varēja būt 30–35 gadi»; I pielikums p. 114: «(1899–1915)» vvc.gov.lv

    dash.range = en-tight (U+2013, no spaces). SECONDARY (VVC house style), HIGH. Ordinal-dotted ranges such as «2005.–2007.» are not range candidates (the flank is U+002E): an algorithm limit, not data. The ranges rule is off by default. Retrieved 2026-11-14.

dashes

  • Valsts valodas centrs, LVEK, «Svarīgākie lēmumi 2014. gadā», 10.09.2014, protokols Nr. 36 5. §: «latviešu valodā nelieto garo jeb dubulto domuzīmi (—)»; Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021), p. 86: «domuzīmi (–) (Alt + 0150)», «liekot to savrupinātās daļas abās pusēs»; p. 114: «Domuzīmi no pārējā teksta atdala ar atstarpēm abās pusēs.» vvc.gov.lv

    dash.parenthetical = en-spaced (U+0020 U+2013 U+0020). The exclusion of U+2014 is NORMATIVE (LVEK); width U+2013 from Alt 0150 and the spacing from the VVC handbook (SECONDARY, HIGH). Retrieved 2026-11-14. Handbook: https://vvc.gov.lv/lv/media/62/download.

hyphen

  • Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021), p. 87 «Defise» and I pielikums p. 115 «Defise» vvc.gov.lv

    All three lists are empty: uses of the hyphen are described, but no closed list of unbreakable hyphenated forms is given. Retrieved 2026-11-14.

quotes

  • Valsts valodas centrs, Latviešu valodas ekspertu komisija, «Svarīgākie lēmumi 2014. gadā», 14.05.2014, protokols Nr. 34 3. §: «no valodas prakses viedokļa ir pareizs atverošo pēdiņu novietojums gan apakšā („) gan augšā (“), tomēr vienā tekstā konsekventi lietojams viens variants»; Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021), 7.2.3 «Pēdiņas», p. 87: «centra tulkojumos lietojam apaļās pēdiņas (“”) … Centra tulkojumu praksē atvērējpēdiņas liekam augšā»; I pielikums p. 117: «Ja tiešajā runā vai citātā ir iekļauts cita runātāja teksts, cits citāts vai nosaukums (virsraksts), lietojamas dubultpēdiņas.»; «Starp pēdiņām un tajās iekļauto tekstu atstarpes neliek.»; «Ja pēdiņās ietvertā daļa ir teikuma (vai frāzes) beigās, pieturzīmi liek aiz pēdiņām» vvc.gov.lv

    PICK-AND-PIN. LVEK accepts opening U+201E or U+201C in one text and names no closing mark, so a low-opening pair has no attested closer. The only complete pair attested is the VVC house style U+201C…U+201D (code points read from the PDF text layer of the handbook, HIGH); it is pinned, not claimed as the only legal Latvian form. « » is attested only through Blinkena (2009) p. 398, as quoted in handbook fn. 50; the book was not read. Secondary equals primary (p. 117: double marks for a quotation inside a quotation; single marks ‘’ only for cultivar names and glosses, p. 88). ACCEPTED COST of the identical pair: a nest whose inner mark touches the outer one is declined (quotes.md §6, §3.2 V1), pinned by fixtures. innerSpace none for both. punctuationPlacement none: placement depends on context (p. 117, p. 87). elisionIdioms and elisionClitics empty: apostrophe elision exists (p. 121) but no closed set. Handbook: https://vvc.gov.lv/lv/media/62/download (house style, SECONDARY). Retrieved 2026-11-14.

nbsp

  • Valsts valodas centrs, LVEK, «Svarīgākie lēmumi 2014. gadā», 12.03.2014, prot. Nr. 33 2. §: valūtu nosaukumus, kodus un grafiskos simbolus «norādīt aiz summas ar saistīto atstarpi, piemēram: … 1 234 EUR; 5678,90 $»; Valsts valodas centrs, Tiesību aktu tulkošanas rokasgrāmata (2021; https://vvc.gov.lv/lv/media/62/download), p. 89 «Atstarpes»: «5 km, 25 t, 10 %, 21 €, –8 °C»; «dažos saīsinājumos (u. c., u. tml., š. g.)»; «starp saīsinājumu Nr., nr. un skaitli (Nr. 20, 155. nr.)»; «starp iniciāli un uzvārdu (J. Kalniņš)»; pp. 107–124 «… un iepriekšējo burtu vai ciparu atstarpi neliek»; p. 78 §7.1.13 (currency) vvc.gov.lv

    Currency after the sum is NORMATIVE (LVEK 12.03.2014 prot. Nr. 33 2. §, restated in the handbook p. 78 §7.1.13); the rest is VVC house style, called «vēlams» and bounded by a warning against overuse (p. 89), SECONDARY. Handbook: https://vvc.gov.lv/lv/media/62/download. (1) beforePunctuation and narrowBeforePunctuation empty: a stated negative, «… un iepriekšējo burtu vai ciparu atstarpi neliek» for . , : ; ? ! and the apostrophe (pp. 107–124). (2) spacedUnits: % and km and °C from p. 89 (and p. 88 «15 %»), € from pp. 78 and 89, EUR from LVEK («1 234 EUR») and p. 78. Not listed though attested, by DECISION: $ (LVEK «5678,90 $»), £, ¥, USD, GBP (p. 78) and °F (fn. 54); no closed set is stated. Single-letter t, m and g are excluded by DECISION although «25 t» is attested on p. 89: they are also common words. kg and cm are not listed because no read source spaces them. A bare ° is closed up (fn. 54) and not listed; closedUnits is empty. (3) abbreviations = u. c., u. tml., š. g. (p. 89). (4) beforeNumber = Nr. only (p. 89 «Nr. 20», p. 88, p. 119); the only lowercase example of «nr.» stands after the number («155. nr.»), which N5 cannot express, so it is not listed. (5) initialBinding = single: LVEK 10.09.2014 prot. Nr. 36 5. § («pēc datuma un iniciāļa norādes lietojama saistītā atstarpe») and p. 89 («starp iniciāli un uzvārdu (J. Kalniņš)») state the rule for one initial, so «chain» would leave the cited rule unmet. ACCEPTED COST, as in fr, cs and ro: a lone capital before a full stop is read as an initial even at a sentence boundary (nbsp.md §3.9, §7.9a). (6) afterShortWords, beforeUnits, beforeWord and afterSymbols empty: no source binds un, ar, uz or no, and § is written after its number («3. §», p. 85). Not expressible and so not covered: binding after a dotted ordinal («2018. gada», «4. stāvs», «155. nr.», p. 89), after a date (LVEK), and inside digit groups («10 000»). Retrieved 2026-11-14.

Is something missing or wrong in the Latvian rules? #

Have something to add or discuss about Latvian typography? Open a thread in GitHub Discussions and name the locale (lv), or read the existing threads. A rule changes only with a cited source, so bring one if you have it.

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.