【开发者自荐】一款剪切板内容预处理工具,自动OCR任何软件的截到剪切板里的图,自动删除富文本格式,调整多行缩进,删除或添加空格、换行、小标题

复制来的文本,往往还需要整理一遍才能使用:从 OCR 识别后的 PDF 中复制文字,汉字之间可能夹着多余空格;AI 回答中带有你不需要的编号、小标题前缀或列表标记;从 Word、网页复制的内容带着原来的样式和过多空白行;从 ChatGPT 复制代码后,又需要逐行额外添加四个空格。

ClipEditor 正是为了减少这些重复劳动而设计。它提供一个“粘贴前的文本预处理区”,让你提取纯文本,并一键清理普通空格、删除空白行、移除支持的列表前缀,或为每个非空行增加 2、4、8、12 个空格。还支持手动编辑、查找替换和临时历史标签,方便检查结果、回看之前的内容。

你可以选择处理完成后手动复制,也可以让结果自动写回剪贴板,直接去目标应用粘贴。不必为了整理一段文字,反复打开编辑器、逐行删除和调整。另外它只有几百kb大小。

Github下载链接: GitHub - AlrightPeachesStudio/ClipEditor: A Windows clipboard text toolkit with cleanup tools, find and replace, line indentation, editable history tabs, live clipboard monitoring, and automatic clipboard updates. Features Simplified Chinese and English interfaces with saved preferences. Made by Alright Peaches Studio. · GitHub

Made by Alright Peaches Studio - a Steam game and software producer
More apps from the author, please support: https://store.steampowered.com/search?term=Alright+Peaches+Studio

3 个赞

能不能增加实时处理,比方我在软件中勾选去掉空格,复制后直接黏贴就变成没有空格的

1 个赞

直接修改剪贴板(处理后自动复制进剪切板)

应该就是这个意思吧
如果不是,像clipboardfusion之类的剪切板应用好像也是可以的

1 个赞

是的,本身就具备实时处理功能。可以勾选上就是实时的,并且会记住选项,下次打开依旧是实时的。

与这个软件相适配的软件还有一个Alright Peaches Studio开发的Steam软件

试了半天没试出来,比方说我复制20260913 195401,然后直接去黏贴还是20260913 195401,必须去软件里点一下“去空格和换行”才可以去掉,直接修改剪贴板和实时监控都选了,不行啊。要怎样设置?

1 个赞

比如你勾选了直接修改剪贴板和实时监听。那么你此时复制了一串数字中间有空格比如“11 33 7 9”,你希望将它们变成“113379”再去粘贴,你还要点击下方按钮“去空格和换行”再去粘贴,否则软件怎么知道你想处理什么?我大体明白你的需求,你希望只要剪贴板里粘贴进有空格的一串文本,都自动处理为无空格,然后复制进剪贴板供你去粘贴。这个需求后续版本可以考虑做,还希望您帮忙宣传本软件。

对,设置好后,无需再开软件,直接黏贴就可以去掉各种想去掉的 :grinning_face_with_smiling_eyes:

1 个赞

现在试一下最新版本:

最新版本2.5.0.0能做到:

增加一个自动处理模式,选择此模式时,剪贴板监听模式自动变成实时监听,然后选择一个文本处理项,此时该按钮被按下后就显示被锁定的状态,除非选择别的模式或按其它按钮该状态才解锁,当处于这种自动处理模式时,只要剪切板里的内容发生变化,按照按钮所指示的操作被操作后直接复制进剪贴板并且在文本框中显示处理好的内容。这样用户可以无需点击任何按钮,在此模式下只要复制一个内容,就自动对该内容进行相应操作,并把操作好的内容返回剪贴板,供用户去粘贴。

Add an “Auto-Processing” mode. When this mode is selected, the clipboard monitoring mode automatically switches to real-time monitoring. Then, select a text processing option; when the button is pressed, it will display a locked state. This state remains locked unless another mode is selected or another button is pressed. While in this Auto-Processing mode, whenever the content in the clipboard changes, the action indicated by the button is performed, the result is copied directly to the clipboard, and the processed content is displayed in the text box. This allows users to perform the corresponding operation on any copied content automatically without clicking any buttons; the processed content is then returned to the clipboard for the user to paste.

是这样的,查找和替换也做成这样,或者叫自定义。比方说复制的时候想把_替换成空格,贴出来就提换好了

1 个赞

可以,等下一个版本,再收集一些其他人的建议和意见,在下一个版本来做。请帮忙多宣传宣传,谢谢。

锁定改成选择,一次多选几个,比方选1个去除空格选一个字母小写再选一个。。。

1 个赞

为了方便大家下载,也提供了百度pan链接

目前有多个版本2.3.0.0、2.5.0.0、2.6.0.0、2.7.0.0、2.8.0.0、2.9.0.0

有新版本后,会依据Github上更新,同步更新百度pan这边。

链接: https://pan.baidu.com/s/17oPOAsueolcDaDSuXN09dw?pwd=6899 提取码: 6899

在新版2.6.0.0版本中除了全部替换,又增加一个普通替换按钮(替换当前查找到的),另外对于自动处理模式,全部替换按钮也可以被锁定了,就是只要复制进剪贴板里的内容含有查找栏里的内容,就替换为指定内容,并复制回剪贴板,注意被替换内容如果为空则以空来替换之。
(Github与百度pan上都已经同步更新,供大家免费下载。)

Alright Peaches Studio开发的其它软件和游戏:Steam 搜索

在新版本2.7.0.0中,增加了在自动处理模式模式时,可以同时选择多个按钮,比如全部替换和文本处理里的各个按钮,点击一下该按钮锁定,再点一下该按钮解锁,当多个按钮被锁定时,则一次执行相应的处理,然后把结果返回剪切板供用户去粘贴。
Alright Peaches Studio的其它软件和游戏:

In the new version 2.7.0.0, a feature has been added that allows users to select multiple buttons simultaneously in automatic processing mode—such as the “Replace All” button and various buttons in the “Text Processing” section. Clicking a button once locks it, and clicking it again unlocks it. When multiple buttons are locked, the corresponding processing is executed all at once, and the results are then copied to the clipboard for the user to paste.
Other Software and Games from Alright Peaches Studio:

Github下载链接: GitHub - AlrightPeachesStudio/ClipEditor: A Windows clipboard text toolkit with cleanup tools, find and replace, line indentation, editable history tabs, live clipboard monitoring, and automatic clipboard updates. Features Simplified Chinese and English interfaces with saved preferences. Made by Alright Peaches Studio. · GitHub


百度pan下载链接: https://pan.baidu.com/s/17oPOAsueolcDaDSuXN09dw?pwd=6899 提取码: 6899

非常好用。查找和替换太少了,如果在一个查找替换里和下面常驻中都找不到符号或文字的时候,需要多一个或多几个查找替换

1 个赞

那其实我的思路的话是在下一个2.8.0.0版本中增加一个符号比如&&&,如果输入张三&&&李四,替换为王五&&&赵六,那么全文中的张三就会被替换为王五,李四则被替换为赵六,这样就不需要许多替换了。不过目前该软件的用户还太少了,还麻烦帮忙宣传一下,这个软件其实历史非常长有十多年了,只是一直是我自用的,最近才把它系统性地做出来一个开源版本。希望推广一下,因为确实非常好用。


Alright Peaches Studio的其它软件和游戏:

在本2.8.0.0版本中,使用 &&& 批量查找和替换

查找、替换和全部替换现在支持使用 &&& 分隔多组相互对应的内容。

例如:

  • 查找:张三&&&李四
  • 替换为:王五&&&赵六

程序会把第一组和第一组对应、第二组和第二组对应:

  • 张三 → 王五
  • 李四 → 赵六

查找

点击“查找下一个”时,程序会在当前位置之后查找所有由 &&& 分隔的项目,并停留在最先出现的匹配项上。

如果后面没有匹配项,程序会从文本开头继续查找。

替换

点击“替换”时:

  • 如果当前已经选中了一个匹配项,则替换该匹配项。
  • 如果当前没有选中匹配项,则查找并替换接下来最先出现的一项。
  • 每个查找项只使用与它位置对应的替换项。

全部替换

点击“全部替换”时,程序会替换全文中的所有对应内容。

所有规则均以原文为基础同时处理,因此前一组产生的替换结果不会被后一组再次替换。

使用空替换项删除内容

为了清楚显示,下面使用 ␠ 表示一个真正的空格。实际输入时不要输入 ␠ 字符,而是在查找框最前面按一次空格键。

例如:

  • 查找:␠&&&111
  • 替换为:d&&&

实际的查找框内容是“一个空格”,然后紧接着输入 &&&111。

这两组规则分别是:

  • 空格 → d
  • 111 → 空内容,即删除 111

例如原文:

ABC 111 DEF

全部替换后变为:

ABCddDEF

其中两个空格分别变成了 d,而 111 被删除。

使用注意事项

  • 查找项和替换项必须按照相同顺序一一对应。
  • 查找项和替换项数量不同时,程序会停止操作并显示提示。
  • 查找项不能为空。
  • 替换项可以为空,空替换项表示删除对应内容。
  • 如果整个替换框为空,所有查找到的项目都会被删除。
  • &&& 是专用分隔符,会被程序理解为多组内容之间的分界。

Other Software and Games from Alright Peaches Studio:

In this 2.8.0.0 Ver., Using &&& for Multiple Find and Replace Rules

Find, Replace, and Replace All now support multiple corresponding items separated by &&&.

For example:

  • Find: cat&&&111
  • Replace with: dog&&&000

The items are paired according to their positions:

  • cat → dog
  • 111 → 000

Find

When you click “Find next,” the program searches for every item separated by &&& and selects whichever matching item appears first after the current position.

If no match remains after the current position, the search continues from the beginning of the text.

Replace

When you click “Replace”:

  • If a valid match is currently selected, that match is replaced.
  • If no valid match is selected, the program finds and replaces the next earliest match.
  • Each find item uses the replacement item in the corresponding position.

Replace All

When you click “Replace all,” every occurrence of every corresponding item is replaced throughout the text.

All rules are applied to the original text simultaneously. A result produced by one rule will therefore not be processed again by another rule.

Deleting Text with an Empty Replacement

In the example below, ␠ visually represents one real space. Do not type the ␠ character. Instead, press the Space key once at the beginning of the Find box.

For example:

  • Find: ␠&&&111
  • Replace with: d&&&

The actual Find value begins with one space, followed immediately by &&&111.

These entries create two rules:

  • Space → d
  • 111 → empty text, which deletes 111

For example, this text:

ABC 111 DEF

becomes:

ABCddDEF

Both spaces are changed to d, while 111 is deleted.

Important Notes

  • Find and replacement items must correspond in the same order.
  • The number of find and replacement items must be the same.
  • Find items cannot be empty.
  • Replacement items may be empty. An empty replacement deletes the corresponding text.
  • If the entire Replace box is empty, every matched item is deleted.
  • &&& is a reserved separator used to divide multiple items.

好的,试了下,查找替换配合下面常驻,非常好用

1_2_3=2 3

查找:1&&&_
替换:&&&(空格)
再勾选下面“去每行前空格”

1 个赞