Mobile menu

Findig an open segment
Thread poster: Edward Potter

Edward Potter  Identity Verified
Spain
Local time: 09:37
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: 08:37
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: 08:37
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: 09:37
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: 09:37
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
Spain
Local time: 09:37
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





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 »
Across v6.3
Translation Toolkit and Sales Potential under One Roof

Apart from features that enable you to translate more efficiently, the new Across Translator Edition v6.3 comprises your crossMarket membership. The new online network for Across users assists you in exploring new sales potential and generating revenue.

More info »



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