Many Hacker News titles use U+2013 EN DASH. When listed in the "HackerNews nodelet" these are rendering as "–" instead of "–". Would it be possible to convert these?
I know nothing of the code behind the scenes. Here's a couple of potential options:
$ perl -Mutf8 -C -E '
my $HN_title = "Show HN: Auto Wiki – Turn your codebase into a Wiki";
say $HN_title;
say $HN_title =~ s/–/\N{EN DASH}/gr;
say $HN_title =~ s/–/–/gr;
'
Show HN: Auto Wiki – Turn your codebase into a Wiki
Show HN: Auto Wiki – Turn your codebase into a Wiki
Show HN: Auto Wiki – Turn your codebase into a Wiki
Using – is possibly the better option; but I'm just guessing.
— Ken
In reply to Hacker News titles using U+2013 EN DASH by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |