4 ms·
I'd love a utility that takes text from my clipboard, converts it to ASCII and strips all formatting, then pastes it. It would need to map Unicode (and other ch
by forapurpose 8y ago
I'd love a utility that takes text from my clipboard, converts it to ASCII and strips all formatting, then pastes it. It would need to map Unicode (and other character set) characters to ASCII equivalents, but even if it covered only the common characters I would be very happy. Any tips?
EDIT: minor edits
- sirsar 8y agoOn Windows, AutoHotkey has all the tools you need for this. The built-in `Clipboard` variable contains only the textual data, and the `OnClipboardChange` event allows you to watch the clipboard for changes. You could then use regular expressions to remove unwanted characters and formatting.
- hk__2 8y agoOn macOS I use the fact that pasting in the console strips all formatting. `pbpaste | pbcopy` in my terminal pastes to plain text then copy it again. It doesn’t map Unicode to ASCII, though.
- jimktrains2 8y agoiconv will convert encodings and do things like "translit" mode converting for ß to ss, € to Eur, and ö to oe.
- pbhjpbhj 8y agoKDE's clipper lets you do actions, so provided you have a script to convert input text to unformatted or ASCII or what-have-you then it's 2 clicks to get it in to your clipboard ready to paste.