Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How to change the order of two sets of words

$
0
0

Hi everyone:

 

I am translating a hundreds page of tables in indesign CS5, and need a coding that could help me to change the order of words in a phrase in all documents.

 

In the output language (Chinese), the order of words normally changes from the input language, e.g:

 

original: Construction of word1 word2 word3, Construction of word4 word5

output: word1 word2 word3 Construction, word4 word5 Construction

 

So, I kinda have a limited sets of words like "Construction", but thousands of "word", so a GREP coding that could change "A B", "A B C", "A B C D"... to "B A", "B C A", "B C D A" will greatly help me out.

 

An other example:

 

Input: Construction of Airport in San Francisco

Output: San Francisco 机场建设   


If this helps, I can also use an intermediate word for 机场建设, for example jichangjianshe, then change all then back.


Much appreciate any enlightenment!!


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>