tats/w3m

Hyphens inserted in the middle of words on some terminals

lucabol opened this issue · 4 comments

This is a fun one ...

When opening pages on my blog (i.e. https://www.lucabol.com/posts/2022-03-09-using-zig-comptime-for-conceptual-dryness/) on some terminals many words have either hyphens in them or empty spaces cutting the words in multiple parts.

Neither Lynx, Chrome or Firefox or any other program exposes this behavior. Looking at the source of the web page in w3m, I see the hyphens. Looking at the source in other browsers, I don't. When I copy and paste the words with hyphens from the terminals, the pasted text doesn't have the hyphens.

I am on Ubuntu 20.03 under WSL2. On mintty I see hyphens, on Windows Terminal I see empty spaces instead of hyphens, on WezTerm it works just fine.

Example from mintty. In Windows Terminal there are spaces instead of hyphens.

While writ­-ing my C# Forth, I grew un­-happy about the con­-cep­-tual.
N-R-K commented

Duplicate of #224 ?

I don't see soft hypens in the source code for the page I refer to, but perhaps I miss something.

rkta commented
tats commented

Fixed by #256