Searching for macro to prepare software files
Thread poster: Marie Lucchetta

Marie Lucchetta  Identity Verified
United Kingdom
Local time: 04:46
English to French
+ ...
Apr 15, 2005

I am desperately searching for a macro that prepares software files with strings looking like this:
ACTION_PRINTERSETUP=Printer Setup
to be translated with Word XP and Trados 6.5. Basically, everything left of the = sign must be ignored. If you have this macro, please, please help me!


Direct link Reply with quote
 

gianfranco  Identity Verified
Brazil
Local time: 01:46
Member (2001)
English to Italian
+ ...
You could create a macro yourself Apr 16, 2005

Dear Marie,

If you know how to record a macro, you can create it easily, just try the following procedure:


Purpose of the macro:
Apply the style tw4winExternal (which will be ignored during the translation) to the part of the lines to the left of the '=' character (including it).




1. Position your cursor anywhere in the middle of the string

2. Start the macro recorder and assign to the new macro a name and a keyboard combination (usually CTRL or ALT + a character of your choice)


NOW YOU ARE RECORDING

3. Using the key Home, move the cursor to the beginning of the line

4. Search for the sign '=' which is the separator
(make sure the search options are set to search Down or All, and not Up)

5. Select using the keyboard from the '=' to the beginning of the line

6. Apply the tw4winExternal style, available in all Trados files to the selection

7. Exit the selection from the right side (after the '=' character)

8. Go to the next line

NOW STOP RECORDING
The macro is completed

Having assigned the macro to a keyboard combination, you can run it pressing those keys, and the operation recorded (steps 3 to 8) will be exectued on the current line, once for each key press.
Keep the keys pressed until you reach the end of the file, and you will obtain that the style is applied to all lines, one at a time, but very quickly.


Gianfranco




[Edited at 2005-04-16 11:02]


Direct link Reply with quote
 
Aleksandr Okunev
Local time: 06:46
English to Russian
There is a tool Apr 16, 2005

I am desperately searching for a macro that prepares software files with strings looking like this:
ACTION_PRINTERSETUP=Printer Setup


Please, visit http://www.accurussian.net/tagger.htm
It contains the macro you need, the special thing is that you can feed the strings into it from a script I named a 'taglist'.
Quite a few folks hase already used it for PHP, XML and lots of other formats.
The manual is also there, it's over 25 pages long and was written with a brainless newbie in mind.

I mentioned it here
http://www.proz.com/topic/28049

Please, if you find it useful, please report your experience to the thread I indicated, it will hopefully be useful for someone else.

Once again, my macro is 100% fit for your task.

Happy translating!
Alex

P.S. Feel free to contact me if you are stuck.


Direct link Reply with quote
 
Aleksandr Okunev
Local time: 06:46
English to Russian
Here's a script for what you posted Apr 17, 2005

Marie Lucchetta wrote:
ACTION_PRINTERSETUP=Printer Setup


The script for Tortoise Tagger would be like this (I assume every entry is in a new line)

%%% Start ----------------
~~~WC-ON
~~~FindAsIs
~~~WriteExternal
^13[!=^13]@=
%%% End ------------------

Meaning:

Find paragraph mark (end of the previous line)
^13
and the nearest '=' sign, but not beyond a paragraph mark
[!=^13]@=

and format them with tw4WinExternal style (which will be skipped by Trados or Wordfast)

This script will skip the very first line which you'll have to format by hand, I did it for simplicity.

Stay well
Alex

[Edited at 2005-04-17 12:05]

[Edited at 2005-04-17 12:23]


Direct link Reply with quote
 
Aleksandr Okunev
Local time: 06:46
English to Russian
An important correction, Marie Apr 17, 2005

Dear Marie,
I tested the acript and instead of
[!=]@=
I made the string
[!=^13]@=
because MS Word sometimes has random glitches, for example, if you search for
r*t
Word is very likely to freeze. If it is
bamboo and kids*very happy
everything will be fine.
Thus, by adding ^13 in the list of exceptions I additionally instructed Word to look for the '=' in the same line (which I already told it to, and its serach mechanics is based on the very same principle). I don't know the reasons for that, but I have learned to override them.
HTH
Alex


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Searching for macro to prepare software files

Advanced search







TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

More info »
WordFinder
The words you want Anywhere, Anytime

WordFinder is the market's fastest and easiest way of finding the right word, term, translation or synonym in one or more dictionaries. In our assortment you can choose among more than 120 dictionaries in 15 languages from leading publishers.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search