manual icon indicating copy to clipboard operation
manual copied to clipboard

Use figure dashes to obscure single digits

Open bentley opened this issue 1 year ago • 1 comments

According to Unicode, figure dash is semantically identical to hyphen‐minus. Having a digit’s width seems desirable in this case.

Before After
Before After

[^0-9a-zA-Z][0-9][0-9][0-9]-[^0-9a-zA-Z] should pick up all existing cases in the corpus. To make sure, I also tried the broader [0-9][0-9]*-[^a-zA-Z], but it didn’t catch anything new except false positives.

bentley avatar Apr 07 '24 06:04 bentley

Good idea, thanks! However a word joiner is not necessary because a figure dash only breaks after and not before. Can you remove the word joiner from the changes?

acabal avatar Apr 09 '24 16:04 acabal

Done. (I’m unable to squash at the moment, sorry.)

bentley avatar Apr 11 '24 23:04 bentley

Thanks!

acabal avatar Apr 12 '24 01:04 acabal