Lurker News

Comments (96) 22 threads

Show all comments

Showing thread 3 of 22

Someone12344 replies#
It might make more sense as a clipboard filter.

If you're an English speaker that doesn't often handle languages which gain from zero width characters you could just have a listener scan your clipboard for zero-width characters, silently strip them, and then re-populate the clipboard.
Although I've been thinking about building a clipboard filter for Windows a lot lately, I'm getting tired of copying text to the address bar or notepad to strip text formatting information.

tomerico2 replies#
Ctrl+shift+v pastes without formatting
enzanki_ars1 reply#
Not on all apps though. Office apps do not respect that shortcut convention and require clicking on the "Paste Without Formatting" button.
MereInterest1 reply#
In Office, you can hit Ctrl after pasting, then "t" to select paste without formatting, which is nicer than switching from keyboard to mouse. The obnoxious thing is that, if the source text did not actually have formatting, then there is no menu that opens by Ctrl, and "t" is instead inserted verbatim. Wrecks havoc with my muscle memory, that I need to keep track of where I copied text from when pasting.

Continue this thread — 1 reply

irrational#
That just removes formatting. zero-width characters are not formatting so they wouldn't be removed. They are as real as the letter A - you wouldn't want ctrl+shift+v to remove all A's from your text, would you?
Alex39172 replies#
Zero width characters can also be used to force long strings of text to wrap correctly, so this may break the layout of sites that allow things like URLs in UGC text.
Someone12341 reply#
Why would a website flow through a user's clipboard?
teolandon#
they're talking about OP's extension that modifies how the website is presented. Not the clipboard idea.
EamonnMR#
In my experience, adding a zero width character into something that someone might copy/paste is generally a bad idea because it'll lead to some very irritated users having to manually remove them from copied data.
fouc#
The extension itself could just strip the characters during the copy action only perhaps
roel_v#
There is the puretext utility that strips formatting. Can't remember if it's open source so that you could add stripping zw chars.