Notepad3 icon indicating copy to clipboard operation
Notepad3 copied to clipboard

Problem occoured when Replace half-width with full-width punctuation mark and English letters

Open DOSforever opened this issue 3 years ago • 0 comments

在某些全角字符的情况下第二次及后续的替换仍然会用第一次替换所用的字符

第一次要用全角的逗号替换半角的逗号 Search String: , Replace with:

点击 Relace All ,没问题。

不关闭替换对话框。

第二次要用全角的冒号替换半角的冒号 Search String: : Replace with: 点击 Relace All 或按 Alt+A 键,结果会把半角的冒号替换成全角的逗号。

同样,如果是用全角的英文字符替换半角的英文字符也会发生这样的情况,如 第一次用 替换 aA ,第二次用 替换 bB ,却会发生用 替换为 bB 的现象。

在 5.21.227.1 64-bit 版 和 5.21.1129.1 64-bit 版上试了多次都是如此。

如果是纯中文的汉字字符则没有这个问题。 在 build 350 版上没这问题


In the case of some full-width characters, the second and subsequent substitutions will still use the characters used for the first substitution

For the first time, replace the half-width comma with a full-width comma Search String: , Replace with: Click Relace All, no problem.

Do not close the Replace dialog box.

The second time is to replace the half-width colon with a full-width colon Search String: : Replace with: Clicking Relace All or pressing Alt+A will replace the half-width colon with a full-width comma.

Similarly, this can happen if you replace half-width English characters with full-width English characters, such as The first time replaces "a" or "A" with "", and the second time replaces "b" or "B" with "", the phenomenon of replacing “b" or "B" with "" will occur.

This was the case after multiple attempts on 5.21.227.1 64-bit and 5.21.1129.1 64-bit.

If it is a pure Chinese kanji character, there is no problem. This is not the problem on version build 350.

DOSforever avatar Oct 31 '22 12:10 DOSforever