简体   繁体   English

特殊首字母缩写词查找器

[英]Special Acronym Finder

I'm compiling an acronyms/abbreviations table for a document.我正在为文档编译一个首字母缩写词/缩写表。 Beyond a simple acronym finder, I would like to find special acronyms that aren't entirely conventional.除了简单的首字母缩略词查找器之外,我还想找到不完全传统的特殊首字母缩略词。

Generally I can find acronyms by using <[AZ]{2,}> in an advanced search.通常,我可以通过在高级搜索中使用<[AZ]{2,}>来找到首字母缩略词。 This captures any whole word that is comprised solely of uppercase letters.这将捕获仅由大写字母组成的任何整个单词。 But I have acronyms that take on other forms too.但我也有其他 forms 的首字母缩略词。 Beyond an acronym being in the form ABC I have acronyms in this document of other forms.除了ABC形式的首字母缩写词之外,我在其他 forms 的文档中还有首字母缩写词。

  1. ABC Generic form, 2 or more uppercase letters ABC通用形式,2 个或更多大写字母

  2. AB&C 1 or more letters preceding and following & AB&C前后 1 个或多个字母&

  3. ABC(D) 1 letter in parentheses following 2 or more letters (this only appears twice, so I'm not too worried about it.) ABC(D) 2个或更多字母后的括号中的1个字母(这只出现两次,所以我不太担心。)

  4. A/C 1 or more letters both preceding and following / A/C前后各有 1 个或多个字母/

  5. ABC-12 2 or more letters followed by a hyphen and 1 or 2 numbers. ABC-12 2 个或多个字母后跟一个连字符和 1 个或 2 个数字。 This only appears once, so I'm not really worried about it.这只会出现一次,所以我并不担心。

In my efforts to create an acronym finder, I've developed this specialized search.在我努力创建首字母缩略词查找器的过程中,我开发了这种专门的搜索。

<[AZ]{1,}[\&\/]*[AZ]{1,}>

Trying to translate this, I see that this is searching for 1 or more uppercase letters preceding 0 or more of & or / followed by 1 or more uppercase letters.试图翻译这个,我看到这是在 0 个或多个&/之前搜索 1 个或多个大写字母,后跟 1 个或多个大写字母。 In theory this should find forms 1,2, and 4, but in reality it only finds forms 2 and 4, and not 1. (I'm not as much worried about form 3 as I am form 1, 2, and 4.) I'm stumped at what I need to change.理论上,这应该找到 forms 1,2 和 4,但实际上它只找到 forms 2 和 4,而不是 1。(我并不担心表格 3,因为我担心表格 1、2 和 4。 ) 我对我需要改变的地方感到困惑。 I've tried doing an OR |我试过做OR | statement to find one or more form, but Microsoft Word's 'regex' options are different (or appear to be different) from what I generally use.声明以查找一种或多种形式,但 Microsoft Word 的“正则表达式”选项与我通常使用的不同(或看起来不同)。

In summary, my question is what form should my special acronym finder be to find forms 1, 2, and 4 in the table above?总而言之,我的问题是我的特殊首字母缩写词查找器应该采用什么形式才能在上表中查找 forms 1、2 和 4?

You can use a wildcard Find, where:您可以使用通配符Find,其中:

Find = <[AZ][A-Z0-9&()/-]{1,}查找 = <[AZ][A-Z0-9&()/-]{1,}

Beyond that, for identifying acronyms in parentheses and the text to which they refer, see: https://www.msofficeforums.com/word-vba/42313-acronym-definiton-list-generator.html除此之外,要识别括号中的首字母缩写词及其所指的文本,请参阅: https://www.msofficeforums.com/word-vba/42313-acronym-definiton-list-generator.html

See also: https://www.msofficeforums.com/word-vba/19395-acronym-finder-macro-microsoft-word.html另请参阅: https://www.msofficeforums.com/word-vba/19395-acronym-finder-macro-microsoft-word.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM