Re: PSA: HTML fragment mode interaction between Chromium, Clipboard & Notepad++
Maria Sophia <[email protected]> Wed, 11 Feb 2026 16:10:45 -0500
| Newsgroups | alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows |
|---|---|
| Organization | BWH Usenet Archive (https://usenet.blueworldhosting.com) |
| Message-ID | <[email protected]> |
Carlos E. R. wrote:
>> There are various "laundering recipes" for fixing issue like that.
>> Presumably this Notepad++ behavior has already been noted (somewhere).
>> It would be unusual for "bad manners" to go unacknowledged.
>
> I remember reading references to clipboard managers, long ago. Maybe one
> by PC Magazine? Or maybe payware.
Well, I guess I should look for a better clipboard manager than the native
Windows but I've already fixed the Notepad++ shortcuts.xml to handle it.
Since I'm a freeware junkie, I give my stuff away for free even as I've
invested, oh, I don't know, scores of hours writing this unique macro.
I'll post my latest Notepad++ shortcuts.xml file for all to benefit from.
It has been tested against dirty Unicode-contaminated test cases with
zero-width characters, combining marks, curly apostrophes, all sorts of
weird spaces and invisible operators, Unicode dashes, line separators, etc.
But it's not perfect yet, but it's almost professional quality (IIDSSM).
(If someone paid me for it, then it would be professional quality.) :)
It has been tested against this testcase, for example.
##############################
# BASIC APOSTROPHE TESTS
##############################
Here’s
Here‘s
Hereʼs
Hereʹs
Hereˈs
Hereˮs
Hereꞌs
Here's
Hereʼs
Here‛s
Hereʾs
Hereʿs
##############################
# ZERO-WIDTH CHARACTERS
##############################
Heres (U+200B)
Heres (U+200D)
Heres (U+200C)
Heres (U+2060)
Heres (U+200B between e and s)
Heres (U+200B at end)
Here’s (U+200B between ’ and s)
Heres (U+200C between e and s)
Heres (U+2060 between e and s)
##############################
# COMBINING MARKS
##############################
Here͑s (U+0351)
Herės (U+0307)
Here̱s (U+0331)
Here̵s (U+0335)
Here̶s (U+0336)
Here̷s (U+0337)
Here̸s (U+0338)
##############################
# DOUBLE QUOTES
##############################
“Hello”
”Hello“
„Hello‟
❝Hello❞
##############################
# DASHES AND MINUS SIGNS
##############################
A–B (EN DASH U+2013)
A—B (EM DASH U+2014)
A―B (HORIZONTAL BAR U+2015)
A‐B (HYPHEN U+2010)
A‑B (NON-BREAKING HYPHEN U+2011)
A‒B (FIGURE DASH U+2012)
A−B (MINUS SIGN U+2212)
A⁃B (BULLET DASH U+2043)
##############################
# SPACES
##############################
Hello World (NO-BREAK SPACE U+00A0)
Hello World (FIGURE SPACE U+2007)
Hello World (NARROW NBSP U+202F)
Hello World (THIN SPACE U+2009)
Hello World (PUNCTUATION SPACE U+2008)
Hello World (SIX-PER-EM SPACE U+2006)
Hello World (HAIR SPACE U+200A)
##############################
# SYMBOLS AND DIACRITICS
##############################
ğ (U+011F)
á (U+00E1)
š (U+0161)
ě (U+011B)
✓ (U+2713)
• (U+2022)
→ (U+2192)
° (U+00B0)
© (U+00A9)
® (U+00AE)
™ (U+2122)
##############################
# INVISIBLE OPERATORS
##############################
ab (U+2060)
ab (U+2061)
ab (U+2062)
ab (U+2063)
ab (U+2064)
ab (U+180E)
##############################
# SOFT HYPHEN AND LINE SEPARATORS
##############################
softhyphen (U+00AD)
line
separator (U+2028)
para separator
(U+2029)
next
line
(U+0085)
##############################
# MULTI-WORD STRESS TEST
##############################
Here’s Here’s Here’s Here’s Here’s
Here’s Here’s Here’s Here’s Here’s
Here’s Here’s Here’s Here’s Here’s
Here’s Here’s Here’s
##############################
# MIXED CHAOS STRESS TEST
##############################
Here’s Heʼre’s Heʹre’s He͑re’s
Here‑is‑a‑tangled‑mess‑of‑dashes—and—marks…
Here’sastringwithzero‑widtheverywhere