diff options
Diffstat (limited to 'tmac/sv.tmac')
-rw-r--r-- | tmac/sv.tmac | 52 |
1 files changed, 31 insertions, 21 deletions
diff --git a/tmac/sv.tmac b/tmac/sv.tmac index 3e2102272..f2fbef401 100644 --- a/tmac/sv.tmac +++ b/tmac/sv.tmac @@ -1,6 +1,6 @@ .\" Swedish localization for groff .\" -.\" Copyright (C) 2006-2020 Free Software Foundation, Inc. +.\" Copyright (C) 2006-2022 Free Software Foundation, Inc. .\" Written by Werner Lemberg (wl@gnu.org) .\" .\" This file is part of groff. @@ -25,6 +25,14 @@ .cp 0 . . +.\" If changing from an existing locale, we need to preserve the state +.\" of the "suppress hyphenation before a page location trap" bit. +.nr locale*use-trap-hyphenation-mode 0 +.if d locale \ +. if \n[.hy]=\n[\*[locale]*hyphenation-mode-trap] \ +. nr locale*use-trap-hyphenation-mode 1 +. +. .ds locale swedish\" . . @@ -114,13 +122,6 @@ .mso trans.tmac . . -.\" man package -.if d an \{\ -. ie \n[cR] .nr HY 32 -. el .nr HY 34 -.\} -. -. .\" ms package .if r GS \{\ . \" update the date @@ -133,26 +134,23 @@ .\" mm package -- additional Swedish localization is done in mse.tmac . . -.\" me package -.if d @R \{\ -. ds _td_format \En(dy \E*(mo \En(y4 -. ld -.\} -. -. .\" Default encoding .mso latin1.tmac . .ss 12 0 . +.\" Set up hyphenation. +. .\" Swedish hyphenation (\lefthyphenmin=1, \righthyphenmin=2) -.\" -.\" Hyphenation value 2 (bit 1) may already have been set by troffrc or -.\" a macro package; preserve it. -.ie (\n[.hy]%2=0 & (\n[.hy]%4)) \ -. hy 34 +.nr \*[locale]*hyphenation-mode-base 32 +.nr \*[locale]*hyphenation-mode-trap 34 +. +.ie \n[locale*use-trap-hyphenation-mode] \ +. hy \n[\*[locale]*hyphenation-mode-trap] .el \ -. hy 32 +. hy \n[\*[locale]*hyphenation-mode-base] +. +.rr locale*use-trap-hyphenation-mode . .hcode å å Å å .hcode ä ä Ä ä @@ -163,6 +161,18 @@ .hpf hyphen.sv . . +.\" man package +.if d an \ +. an*reset-hyphenation-mode +. +. +.\" me package +.if d @R \{\ +. ds _td_format \En(dy \E*(mo \En(y4 +. ld +.\} +. +. .cp \n[*groff_sv_tmac_C] .do rr *groff_sv_tmac_C . |