notepad-plus-plus / notepad-plus-plus

Notepad++ official repository
https://notepad-plus-plus.org/
Other
23.02k stars 4.61k forks source link

Chinese colon problem with default font #14616

Closed orwithout closed 10 months ago

orwithout commented 10 months ago

Description of the Issue

In the default font, the Chinese colon ":" is very similar to the ANSIC colon ":". In some extreme cases, it will be very difficult to troubleshoot.

Steps to Reproduce the Issue

image

OS

OS Name: Microsoft Windows Server 2022 Standard OS Version: 10.0.20348 N/A Build 20348 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Server OS Build Type: Multiprocessor Free

alankilborn commented 10 months ago

If you don't fill out the issue template in its entirety, your issue is very likely to be closed without any response.

rdipardo commented 10 months ago

For reference, the OP is probably referring to U+FF1A (FULLWIDTH COLON).

@orwithout

There is no built-in function for detecting CJK punctuation marks, except maybe the lightly wider spacing around the character in more modern fonts than Courier New. Even the very old Consolas manages to distinguish them a little bit.

If the issue is really about invalid URLs creeping into the file, there's a plugin that will convert Unicode characters into their hexadecimal ordinals. You can try using that in combination with mark, search and replace to "clean" a file of Unicode punctuation, e.g.

reveal-cn-colon