1

Is there a difference between the two shorthands "= and "- defined by babel-swedish? While they evidently are defined differently, I fail to find a difference in their descriptions or a case where they differ.

They are defined and in the documentation described as

  • \declare@shorthand{swedish}{"=}{\hbox{-}\allowhyphens} 'an explicit hyphen sign allowing subsequent hyphenation, for expressions such as “studiebidrag och -lån”.'
  • \declare@shorthand{swedish}{"-}{\nobreak-\bbl@allowhyphens} 'an explicit hyphen sign, allowing hyphenation in the rest of the word, such as e. g. in “x"-axeln”'
2
  • @Mico From what I can tell this is not the case. For example, generalsekreterare"=generalsekreterare and generalsekreterare"-generalsekreterare are hyphenated identically.
    – Fredrik P
    Jan 22, 2023 at 23:10
  • I've deleted my earlier comment.
    – Mico
    Jan 22, 2023 at 23:56

1 Answer 1

1

I get clearly different hyphenation from both when compiling with pdflatex:

\documentclass{article}
\usepackage[swedish]{babel}
\textwidth=3mm
\begin{document}
xxx 
generalsekreterare"=generalsekreterare  

xxx
generalsekreterare"-generalsekreterare
\end{document}

enter image description here

With lualatex both hyphenate the same:

enter image description here

2
  • Alright! I didn't try different engines.
    – Fredrik P
    Jan 23, 2023 at 15:07
  • hyphenation across engines is "interesting" ;-) Jan 23, 2023 at 15:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .