Mobile menu

Findig an open segment
Thread poster: Edward Potter

Edward Potter  Identity Verified
Local time: 00:41
Member (2003)
Spanish to English
+ ...
Nov 2, 2004

Hello. I was happily proofreading my WordFast document (I used Ctl - Comma) and I seem to inadvertently corrupted a code. Now I am getting an "open segment" message. My problem is that I can't find which segment that is. I have gone through the entire document and have not found any colored segements.

How do I find the open segment? (And how do I fix it?)


Direct link Reply with quote
 

Graciela Carlyle  Identity Verified
United Kingdom
Local time: 23:41
English to Spanish
+ ...
if you can't find the culprit... Nov 2, 2004

Edward Potter wrote:
I seem to inadvertently corrupted a code. Now I am getting an "open segment" message. My problem is that I can't find which segment that is. I have gone through the entire document and have not found any colored segements.
How do I find the open segment? (And how do I fix it?)


You can try this macro to check for segmentation errors:

Sub ValidateSeg()
'
' Macro recorded 17-2-2003 by Arkady Vysotsky
'
Dim ok As Boolean
Dim stseg As Long
ActiveWindow.View.ShowAll = True
With Selection
.HomeKey Unit:=wdStory, Extend:=wdMove
.Find.ClearFormatting
.Find.Text = ""
.Find.Style = ActiveDocument.Styles("tw4winMark")
Application.ScreenUpdating = False
Do
If Not .Find.Execute Then
ok = True
Exit Do
End If
If .Text "{0>" Then Exit Do stseg = .Start
If Not .Find.Execute Then Exit Do
If Not ((.Text Like "") Or (.Text = "") Or (.Text = "")) Then Exit Do
If Not .Find.Execute Then Exit Do
If .Text "


Direct link Reply with quote
 

Graciela Carlyle  Identity Verified
United Kingdom
Local time: 23:41
English to Spanish
+ ...
if you can't find the culprit... Nov 2, 2004

Edward Potter wrote:
I seem to inadvertently corrupted a code. Now I am getting an "open segment" message. My problem is that I can't find which segment that is. I have gone through the entire document and have not found any colored segements.
How do I find the open segment? (And how do I fix it?)


You can try this macro to check for segmentation errors:

Sub ValidateSeg()
'
' Macro recorded 17-2-2003 by Arkady Vysotsky
'
Dim ok As Boolean
Dim stseg As Long
ActiveWindow.View.ShowAll = True
With Selection
.HomeKey Unit:=wdStory, Extend:=wdMove
.Find.ClearFormatting
.Find.Text = ""
.Find.Style = ActiveDocument.Styles("tw4winMark")
Application.ScreenUpdating = False
Do
If Not .Find.Execute Then
ok = True
Exit Do
End If

forget it Edward, I'll send it through your profile because for some reason my message gets cut when I post.
Grace.


Direct link Reply with quote
 

Harry Bornemann  Identity Verified
Mexico
English to German
+ ...
Close the segment Nov 2, 2004

When you close the open segment, the cursor (and the page view) will go to the beginning of the next segment. If you cannot close it because it is corrupted, you can use the search function of Word to search for the color formatting of an open segment.
Gracielas Macro probably won't work here, because it is meant for Trados segments, not Wordfast.

[Edited at 2004-11-02 15:00]


Direct link Reply with quote
 

Gerard de Noord  Identity Verified
France
Local time: 00:41
Member (2003)
German to Dutch
+ ...
Great macro for Wordfast too Nov 2, 2004

Arkady's macro works for Wordfast too. A Wordfast segmented document looks remarkably similar to a Trados segmented document. That was part of the reasons for Wordfast's instant popularity.

Regards,
Gerard

Harry_B wrote:

When you close the open segment, the cursor (and the page view) will go to the beginning of the next segment. If you cannot close it because it is corrupted, you can use the search function of Word to search for the color formatting of an open segment.
Gracielas Macro probably won't work here, because it is meant for Trados segments, not Wordfast.

[Edited at 2004-11-02 15:00]


Direct link Reply with quote
 

Csaba Ban  Identity Verified
Hungary
Local time: 00:41
Member (2002)
English to Hungarian
+ ...
"clean" the file Nov 2, 2004

When you create a "clean" file from your bilingual one (Tools - Clean Up...), and you open the cleaned file, any corrupted translation units will appear with a green arrow, much like the French quotation marks.
This will help you locate the corrupted or missing codes in the bilingual file.


Direct link Reply with quote
 

Edward Potter  Identity Verified
Local time: 00:41
Member (2003)
Spanish to English
+ ...
TOPIC STARTER
I used Csaba's solution for now Nov 2, 2004

Csaba,

Your suggestion was the simplest. I tried cleaning the file and there was absolutely no problem! So, for my purposes I am quite happy because I have a cleaned file, updated translation memory and a timely delivered translation.

Graciela,

Thank you for your email. That was nice of you. I haven't tried your macro suggestion as I wasn't that desperate yet. However, I will go back and give it a try when I have some time. I don't work with macros much so I would have to figure out the usage anyway.


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 »

Findig an open segment

Advanced search


Translation news related to Wordfast





LSP.expert
You’re a freelance translator? LSP.expert helps you manage your daily translation jobs. It’s easy, fast and secure.

How about you start tracking translation jobs and sending invoices in minutes? You can also manage your clients and generate reports about your business activities. So you always keep a clear view on your planning, AND you get a free 30 day trial period!

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 »



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