Findig an open segment
Thread poster: Edward Potter

Edward Potter  Identity Verified
Spain
Local time: 15:36
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?)


 

Graciela Carlyle  Identity Verified
United Kingdom
Local time: 14:36
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 "


 

Graciela Carlyle  Identity Verified
United Kingdom
Local time: 14:36
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.


 

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]


 

Gerard de Noord  Identity Verified
France
Local time: 15:36
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]


 

Csaba Ban  Identity Verified
Hungary
Local time: 15:36
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.


 

Edward Potter  Identity Verified
Spain
Local time: 15:36
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.


 


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





Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

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

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

More info »



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