Skip to main content
Participant
January 24, 2023
Question

Adobe ExtendScript to find Acronyms

  • January 24, 2023
  • 2 replies
  • 739 views

Can anyone help me make a script to find Acronyms on framaker ? Please and thank you !

    This topic has been closed for replies.

    2 replies

    Participant
    January 26, 2023

    Any help would be appreciated ! 

    Bob_Niland
    Community Expert
    Community Expert
    January 26, 2023

    I'm not a scripter (and haven't messed with regex in over a decade), but anyone who can help is apt to want to know what characterizes the content you need to find:
    ? short strings of all-caps set off by whitespace
    ? short strings inside some punctuation
    ? and now for something, completely different

    Fightergator
    Inspiring
    February 5, 2023

    Thank you so much ! Once they are found i wanted to replace them with the full name . Im looking for acronyms that are all captial letters.

    Ex. (ABC)->Alphabet 


    I understand you are looking for simple acronyms in all capital letters and you want to replace them. However, I still need more information:

    1. Where is the replacement text coming from; a separate document or you will enter it manually after each "find"?

    2. How are currently finding and replacing the acronyms.  If using the Find/Change panel, can I assume you understand how to search manually using Wildcards & Regular Expressions?

    3. Are you searching simple documents or books?

    The reason I'm asking is that this all makes a difference how you write your script. 

    Bob_Niland
    Community Expert
    Community Expert
    January 25, 2023

    Any abbrevations, or just those that arguably can be pronounced?

    And what do you need to do with them when found?

    Or, based on your similar question in another thread, are you needing to find thing set-off by some punctuation (ABC)?

    Participant
    January 25, 2023

    I think any abbrevations would be easy to start with and once they are found i want to replace them with the full word .