Mobile menu

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

Marie Lucchetta  Identity Verified
United Kingdom
Local time: 06:33
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: 02:33
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: 08:33
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: 08:33
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: 08:33
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


Translation news related to SDL Trados





SDL MultiTerm 2017
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2017 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2017 you can automatically create term lists from your existing documentation to save time.

More info »
SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »



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