用于在 Microsoft Word 中的合并单词之间添加空格的宏

发布于 2025-01-03 04:33:55 字数 230 浏览 2 评论 0原文

今天我不得不在 Microsoft Word 中编辑一篇糟糕的文本,其中有很多段落,所有单词都合并在一起,并且文本无法阅读,噩梦:) 所以,我想,也许有一个解决方案? 我有这个想法:1)我浏览放置光标的文本(或段落) 应该分开的单词之间(即 loremipsum 应该变成 lorem ipsum)。 2)宏记住我放置光标的所有场合 3)宏在单词之间插入必要的空格

但是当我放置光标时插入空格也可以很好。 有什么建议吗? 谢谢!

Today I had to edit a terrible text in Microsoft Word that have many paragraphs where all words are merged and text was impossible to read, nightmare :)
So, I thought, maybe there is a solution to this?
I have this idea: 1) I go through text (or paragraph) placing cursor
between words which should be separated (i.e. loremipsum should become lorem ipsum).
2) macro remember all occasions when I placed cursor
3) macro inserts necessary spaces between words

But inserting a space when I place cursor also can be good.
Any suggestions?
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇俏 2025-01-10 04:33:55

用户939536,欢迎来到SO。在构建成熟的 Word 插件之前,大部分功能已经存在。

如果您进入单词选项->校对->自动更正选项(您的版本可能有不同的方法),您可以看到自动替换为其他单词的单词列表。您可以将最常用的组合词放在这里,让 Word 为您完成这项工作。

当然,另一种途径是构建一个外接程序,它将:

  1. 拥有一个包含常用替换单词的数据库(可能是在启动时读取的文本文件)
  2. 用于搜索文档的搜索功能
  3. 一个向用户提供替换选择的界面或跳过。

User939536, welcome to SO. Before you build a full-fledged Add-In to Word, a good chunk of your functionality is already there.

If you go to Word Options->Proofing->Autocorrect Options (your version may have a different method), you can see the list of words to automatically replace with other words. You can put your most commonly combined words here and let Word do the work for you.

The other route of course is to build an Add-In that will:

  1. Have a database of commonly replaced words (probably a text file that's read on startup)
  2. A search function to search the document
  3. An interface to present the user with the choice to Replace or Skip.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文