How can I add a specific segmentation rule in Workbench?
Thread poster: Mohammad Reza Razaghi

Mohammad Reza Razaghi  Identity Verified
Iran
Local time: 12:45
Member (2006)
English to Farsi (Persian)
+ ...
Jan 16, 2010

Hi all,

I am currently working on a huge project in Word format, which also contains HTML codes, such as: "{hr size="1"}", "{font color="red"}", "{br}", etc. (I've replaced the "" characters by "{" or "}" here, otherwise they are not shown correctly).

Many sentences are only separated by a {br} code and therefore some segments become extremely huge in TagEditor! I tried to add a new segmentation rule for {br} in WB to translate each sentence individually, but it didn't work.

What can be done (other than manually shrinking the segments by Ctrl + Alt + Page up)?

BTW, I'm using SDL Trados 2007 (SP2).

Thank you in advance for your input!

Best,

Mohammad Reza


Direct link Reply with quote
 
xxxOlaf
Local time: 11:15
English to German
Use Tag Editor and change the properties of the <BR> tag Jan 16, 2010

You could easily change the behavior of the <BR> tag if you used Tag Editor instead. Word is really ill-suited for the translation of tagged files.

All you'd have to do is change the <BR> tag Element Property Type from Internal to External.

To change the property type:
1. Open Tag Editor.
2. Choose Tag Settings from the Tools Menu.
3. Double-click the Predefined HTML Settings entry
(If the entry doesn't exist you'll need to open HTLM4.INI and add it to the list)
4. Click the Elements tab, scroll-down the list box until you see BR.
5. Double-click the BR entry, change the Type from Internal to External and click OK.

This will make <BR> a segment delimiter.
BTW, you could also modify the behavior of other tags in the same way.

Olaf

[Edited at 2010-01-16 15:23 GMT]


Direct link Reply with quote
 
Adam Łobatiuk  Identity Verified
Poland
Local time: 11:15
Member (2009)
English to Polish
+ ...
Search and replace Jan 16, 2010

Search for <br> in Word and replace it with <br> but with the tw4winExternal style applied. From Word 2003 (or maybe XP) up, you can also use Find to select all instances of a string (<br> in this case) and apply the style from the style drop down list.

I wouldn't recommend changing all the other tags, because that would break your sentences.


Edit: fixed the tag display

[Edited at 2010-01-16 21:06 GMT]

[Edited at 2010-01-16 21:07 GMT]


Direct link Reply with quote
 
Stefan de Boeck  Identity Verified
Belgium
Local time: 11:15
English to Dutch
+ ...
paragraph ends Jan 16, 2010

Adam Łobatiuk wrote:

Search for <br> in Word and replace it with <br> but with the tw4winExternal style applied. From Word 2003 (or maybe XP) up, you can also use Find to select all instances of a string (<br> in this case) and apply the style from the style drop down list.

I wouldn't recommend changing all the other tags, because that would break your sentences.


If this doesn't quite cut it, and while you're at it, you might as well replace <br> by

<br> ¶

-- mind the space between the tag and the paragraph mark (it may matter).

It's possible as well to do some manual 'cutting' of unopened source segments in TE (unprotect document and just start slashing*).

* but, as this is a Word file, probably better not.

[Edited at 2010-01-16 19:36 GMT]


Direct link Reply with quote
 

Mohammad Reza Razaghi  Identity Verified
Iran
Local time: 12:45
Member (2006)
English to Farsi (Persian)
+ ...
TOPIC STARTER
Many thanks! Jan 18, 2010

Thank you Olaf, Adam and Stefan!

I will try your useful solutions.


Cheers!

Mohammad Reza


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 »

How can I add a specific segmentation rule in Workbench?

Advanced search







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 »
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