Findig an open segment
Автор темы: Edward Potter
Edward Potter
Edward Potter  Identity Verified
США
Local time: 00:19
Член ProZ.com c 2003
испанский => английский
+ ...
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
Graciela Carlyle  Identity Verified
Великобритания
Local time: 05:19
английский => испанский
+ ...
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
Graciela Carlyle  Identity Verified
Великобритания
Local time: 05:19
английский => испанский
+ ...
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
Harry Bornemann  Identity Verified
Мексика
Local time: 22:19
английский => немецкий
+ ...
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
Gerard de Noord  Identity Verified
Франция
Local time: 06:19
Член ProZ.com c 2003
английский => голландский
+ ...
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
Csaba Ban  Identity Verified
Венгрия
Local time: 06:19
Член ProZ.com c 2002
английский => венгерский
+ ...
"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
Edward Potter  Identity Verified
США
Local time: 00:19
Член ProZ.com c 2003
испанский => английский
+ ...
Автор темы
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 mu
... See more
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.
Collapse


 


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







Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »