Searching for macro to prepare software files Thread poster: Marie Lucchetta
|
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! | | | gianfranco Brazil Local time: 10:31 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 ke... See more 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] ▲ Collapse | | | Aleksandr Okunev (X) Local time: 16:31 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. | | | Aleksandr Okunev (X) Local time: 16:31 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] | |
|
|
Aleksandr Okunev (X) Local time: 16:31 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 ... See more 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 ▲ Collapse | | | 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 CafeTran Espresso | You've never met a CAT tool this clever!
Translate faster & easier, using a sophisticated CAT tool built by a translator / developer.
Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools.
Download and start using CafeTran Espresso -- for free
Buy now! » |
| Trados Business Manager Lite | Create customer quotes and invoices from within Trados Studio
Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |