pdf粘贴文本格式
Most of the time we go to great pains to preserve formatting in our text and ensure it looks just the way we want it to. What if you’re frequently pasting text and you want to strip the formatting away in the process? Read on as we help a reader tweak his workflow to be faster and more streamlined.
在大多数情况下,我们会竭尽全力在文本中保留格式并确保其外观符合我们的期望。 如果您经常粘贴文本,并且希望在此过程中删除格式怎么办? 请继续阅读,以帮助读者更快,更精简地调整工作流程。
Dear How-To Geek,
亲爱的How-To Geek,
I love reading all the articles on your web site about fixing problems and making thing more efficient. I especially love the Ask HTG column and now I’ve got a question of my own to submit for it. I have a little problem that I’m super confident you can help me with. I have to cut and paste a lot of text every day. The problem is that the source text has all sorts of different formatting (different web sites, different news articles, publications in my industry, etc.) and I need to put it all in a summary digest for my boss. My current solution, which I’ll be the first to admit is probably the worse, is to paste all the text into Notepad (because Notepad doesn’t preserve formatting) and then paste it into the final document where (if need be) I apply my own formatting before shipping it off to the boss.
我喜欢阅读您网站上有关解决问题和提高效率的所有文章。 我特别喜欢Ask HTG专栏,现在我有一个自己的问题要提交。 我有一个小问题,我非常有信心您可以帮助我。 我每天都要剪切和粘贴很多文本。 问题在于源文本具有各种不同的格式(不同的网站,不同的新闻文章,我所在行业的出版物等),我需要为老板总结一下摘要。 我将首先承认的当前解决方案可能更糟,它是将所有文本粘贴到记事本中(因为记事本不保留格式),然后将其粘贴到最终文档中(如果需要)应用我自己的格式,然后再发送给老板。
Surely there is some way for me to copy and paste without the formatting that doesn’t involve copy/pasting every section of text twice? What should I do?
当然,我可以通过某种方式进行复制和粘贴而无需进行格式化,而这种格式化不涉及将文本的每个部分都复制/粘贴两次? 我该怎么办?
Sincerely,
真诚的
CopyPaste Tired
复制粘贴累了
Problem solving is what we do best; we’re not going to let you leave this column still using Notepad as a middle man! There are several tricks you can use, depending on the operating system/application you’re working in. The first thing you can do, and the simplest to implement, is to switch from using CTRL+V (Paste) to CTRL+SHIFT+V (Paste Plain Text).
解决问题是我们最擅长的。 我们不会让您仍然以记事本作为中间人而离开本专栏! 您可以使用多种技巧,具体取决于所使用的操作系统/应用程序。您可以做的第一件事,也是最简单的实现,就是从使用CTRL + V(粘贴)切换到CTRL + SHIFT + V(粘贴纯文本)。
While this shortcut is fairly universal, in that it works in hundreds of applications and across operating systems, it isn’t actually a hardcoded system function and not all applications have to respond to it. For example, in Windows you can use CTRL+SHIFT+V to paste unformatted text into tons of programs like Google Chrome, Evernote, etc. but the shortcut isn’t support in, of all places, Microsoft Word (You can, however, use ALT+E+S in Microsoft Office apps to enable Paste Special which will allow you to select what formatting, if any, you want to preserve).
尽管此快捷方式相当通用,但它可以在数百个应用程序中以及跨操作系统使用,但它实际上并不是硬编码的系统功能,并非所有应用程序都必须对此做出响应。 例如,在Windows中,您可以使用CTRL + SHIFT + V将未格式化的文本粘贴到大量程序中,例如Google Chrome,Evernote等。但是,在所有地方,Microsoft Word都不支持该快捷方式(不过,您可以在Microsoft Office应用程序中使用ALT + E + S启用选择性粘贴,将允许您选择要保留的格式(如果有)。
If the CTRL+SHIFT+V combo doesn’t work for the application you’re preparing your document in, don’t worry. Although it’s always nice to be able to use a keyboard shortcut natively with no extra work, we have two simple workarounds you can use to strip the formatting while keeping the simplicity of a single keyboard shortcut.
如果CTRL + SHIFT + V组合不适用于正在准备文档的应用程序,请不要担心。 尽管无需额外的工作就可以在本地使用键盘快捷键总是很不错的,但是我们有两种简单的解决方法,您可以使用它们来剥离格式,同时保持单个键盘快捷键的简单性。
The first workaround relies on AutoHotkey. If you’re not already using AutoHotkey, well, there’s no time like the present to start. It’s the handiest little application we keep in our arsenal of daily use tools and there’s hardly a week that goes by where we don’t find a new use for it.
第一种解决方法依赖于AutoHotkey。 如果您还没有使用AutoHotkey,那么现在就没有像现在这样的时间了。 这是我们日常使用工具库中保留的最方便的小应用程序,并且几乎没有一周的时间我们找不到新用途。
We’d recommend checking out our beginner’s guide to get a feel for what AHK is. Once you’ve installed it and familiarized yourself with the application, you can use this script to modify your paste shortcut to automatically strip the formatting using this handy bit of AHK code, called Better Paste, courtesy of Dustin Luck/Lifehacker:
我们建议您查阅我们的初学者指南 ,以了解AHK是什么。 安装它并熟悉应用程序后,您可以使用此脚本来修改粘贴快捷方式,以使用此便捷的AHK代码(更好的粘贴)自动剥离格式,该代码由Dustin Luck / Lifehacker提供 :
$^+v:: ; CTRL+SHIFT+VClipSaved := ClipboardAll ;save original clipboard contentsclipboard = %clipboard% ;remove formattingSend ^v ;send the Ctrl+V commandClipboard := ClipSaved ;restore the original clipboard contentsClipSaved = ;clear the variableReturn
$^+v:: ; CTRL+SHIFT+V$^+v:: ; CTRL+SHIFT+VClipSaved := ClipboardAll ;save original clipboard contentsclipboard = %clipboard% ;remove formattingSend ^v ;send the Ctrl+V commandClipboard := ClipSaved ;restore the original clipboard contentsClipSaved = ;clear the variableReturn
[Note: We inverted the commands from Dustin’s original script; he had it set to CTRL+SHIFT+V for regular paste and CTRL+V for no-formatting paste. Because so many applications already support CTRL+SHIFT+V, we changed the shortcuts in order to keep things consistent and not train ourselves to use the wrong shortcut, and then removed the redundant CTRL+V script entry.]
[ 注意:我们颠倒了达斯汀原始脚本的命令; 他将常规粘贴设置为CTRL + SHIFT + V,将无格式粘贴设置为CTRL + V。 因为已经有许多应用程序支持CTRL + SHIFT + V,所以我们更改了快捷方式以保持一致,并且不训练自己使用错误的快捷方式,然后删除了多余的CTRL + V脚本条目。
We really like the AutoHotkey solution above because we’re already avid AHK users and it was no sweat to add it to our existing AHK master script.
我们真的很喜欢上面的AutoHotkey解决方案,因为我们已经是AHK的狂热用户,并且可以轻松地将其添加到我们现有的AHK主脚本中。
If you don’t want to mess around with AHK, however, there’s one more solution we can offer: PureText. We showed our readers how to use PureText back in 2009 and it’s still going strong. Install the app, select the shortcut combo you wish to use (like CTRL+SHIFT+V) and PureText will automatically strip the formatting from the text and paste it when the hotkey is triggered.
但是,如果您不想弄乱AHK,我们可以提供另一种解决方案: PureText 。 早在2009年,我们就向读者展示了如何使用PureText ,并且它还在继续发展。 安装应用程序,选择您要使用的快捷方式组合(例如CTRL + SHIFT + V),PureText将自动从文本中剥离格式,并在触发热键时将其粘贴。
Whatever tool you use, you can skip that inefficient paste-to-Notepad routine and get your work done faster!
无论使用哪种工具,都可以跳过效率低下的“粘贴到记事本”例程,更快地完成工作!
Have a pressing tech question? Shoot us an email at [email protected] and we’ll do our best to answer it.
有紧迫的技术问题吗? 向我们发送电子邮件至[email protected],我们将尽力答复。
翻译自: https://www.howtogeek.com/186723/ask-htg-how-can-i-paste-text-without-the-formatting/
pdf粘贴文本格式