Note: what follows relates to Italian, but the same issue arises in French; I’m pretty sure I reproduced this behaviour in English, but it’s not that easy to distinguish between a bug and the complexity of English hyphenation…
Words preceded by an article and an apostrophe (such as l’impossibilità) are not hyphenated; this also applies to pronoun-apostrophe-word as in the example given.
This code does not hyphenate t’ispiri:
#set page(width: 45mm, height: 42mm)
#set text(lang: "it")
#set par(justify: true)
traggi un suono di crudo lamento,
o t'ispiri il Signore un concento
This does, with a soft hyphen, but it is only practical on very small documents, and pretty wysiwyg:
#set page(width: 45mm, height: 42mm)
#set text(lang: "it")
#set par(justify: true)
traggi un suono di crudo lamento,
o t'is#(sym.hyph.soft)piri il Signore un concento
Merci for the workaround and for pointing out the issue --I admit I didn’t check the typst repository.
I am quite weary at adopting the workaround with U+02BC for aesthetic reasons (document quality…), even though it would be a global solution with little effort.
For what it’s worth, to my understanding using sym.wj after the apostrophe should work, but it doesn’t:
traggi un suono di crudo lamento,
o t'#(sym.wj)ispiri il Signore un concento
In my mind, it should instruct typst that those are two distinct words and that it can’t break after the apostrophe; well, no, it still does no hyphenation.
Word joiner - Wikipedia is not perfectly clear to me. I was looking for a zero-width non-breakable space and I landed there.
Anyway, after reading the github issue, I also am confident that someone will fix this.
The sym.zws was in effect my solution for the document I was preparing; but then I realized that it inserts a point-of-linebreaking after the apostrophe; rightly so, I guess.
So I searched for a sym.zwnbs (which doesn’t exist), and that’s where I landed on sym.wj
–but why I never had to worry about all of this doing professional TeX and LaTeX in a phisics edition house striving for quality, during years? Mistery
I suspect because of smartquotes? I mean you could try turning that off for the whole document, but would have do deal with the guillemets by yourself, which is a pain…