Findig an open segment
Thread poster: Edward Potter

Edward Potter  Identity Verified
Spain
Local time: 04:46
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: 03:46
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: 03:46
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: 04:46
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: 04:46
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: 04:46
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





Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »
BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, ProZ.com integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »



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