Hi friends,
I'm having a bit of a problem here:
Some of our Word documents get damaged while processing. The formatting still "looks" good, alas it isn't.
With "processing" I mean "translating". The translation is done by various freelance translators, who work with a CAT tool (Computer Aided Translation software) that plugs on to Word.
There are different versions of that CAT tool in use, as well as different versions of MS Word.
This cannot be helped, we have to live with that. In the vast majority of projects, this is no problem at all and all works fine.
In one project however, the files always get back with altered formatting.
SPOILER ALERT:
Although I say "styles" in the heading, this is not quite correct; this is all plain character formatting!
I know this problem probably would not occur at all if these files were formatted using paragraph styles. Alas, they aren't because these files will later be processed by an age old legacy software wich does not know styles, hence all is character formatted.
This situation is by design and by customer. Cannot be altered.
So here's the dillio:
e.g. Original formatting: "Arial 14 pt, bold, black"
Formatting after translation: "(Latin) Arial (Asian) Times New Roman, (Standard) Arial, 14pt, bold, black"
As you can see, the formatting information is preserved; internally however, the paragraph is treated as "Asian" (the language is actually e.g. French, Spanish or good old English) resulting in an output of Times New Roman rather than Arial, as well as multiple other highly unwanted side effects.
I repair such paragraphs by selecting all paragraphs of that formatting, applying a Font reset, and re-assigning the desired formatting.
This works OK, but with growing document size, this process is getting increasingly tedious and unnerving.
I'd like to cycle through all these "Asian" formattings, resp. pseudo-styles, in order to do the font resetting automatically rather than manually.
Alas, I have no clue as to how to identify these "styles" in the Styles collection. I have already used the VBA watch window to scrutinize the selected Style properties to no avail.
I've already assigned a little macro to an F key to ease my pain.
This is what I do right now:
Font is always Arial, hence no need to read that info...
The "Asian" is also in the "description" property of its non-Asian variant, the local name is simply "Standard".
:-(
Do you guys have any idea on how I can automatise my "cleaning"?
Thanks in advance!
MakeItSo
[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
I'm having a bit of a problem here:
Some of our Word documents get damaged while processing. The formatting still "looks" good, alas it isn't.
With "processing" I mean "translating". The translation is done by various freelance translators, who work with a CAT tool (Computer Aided Translation software) that plugs on to Word.
There are different versions of that CAT tool in use, as well as different versions of MS Word.
This cannot be helped, we have to live with that. In the vast majority of projects, this is no problem at all and all works fine.
In one project however, the files always get back with altered formatting.
SPOILER ALERT:
Although I say "styles" in the heading, this is not quite correct; this is all plain character formatting!
I know this problem probably would not occur at all if these files were formatted using paragraph styles. Alas, they aren't because these files will later be processed by an age old legacy software wich does not know styles, hence all is character formatted.
This situation is by design and by customer. Cannot be altered.
So here's the dillio:
e.g. Original formatting: "Arial 14 pt, bold, black"
Formatting after translation: "(Latin) Arial (Asian) Times New Roman, (Standard) Arial, 14pt, bold, black"
As you can see, the formatting information is preserved; internally however, the paragraph is treated as "Asian" (the language is actually e.g. French, Spanish or good old English) resulting in an output of Times New Roman rather than Arial, as well as multiple other highly unwanted side effects.
I repair such paragraphs by selecting all paragraphs of that formatting, applying a Font reset, and re-assigning the desired formatting.
This works OK, but with growing document size, this process is getting increasingly tedious and unnerving.
I'd like to cycle through all these "Asian" formattings, resp. pseudo-styles, in order to do the font resetting automatically rather than manually.
Alas, I have no clue as to how to identify these "styles" in the Styles collection. I have already used the VBA watch window to scrutinize the selected Style properties to no avail.
I've already assigned a little macro to an F key to ease my pain.
This is what I do right now:
Code:
Sub resettononasia()
Dim kur As Integer, fet As Integer, siz As Long, col As Long, hili As Long
On Error Resume Next
kur = Selection.Font.Italic
fet = Selection.Font.Bold
siz = Selection.Font.Size
col = Selection.Font.Color
hili = Selection.Range.HighlightColorIndex
Selection.Font.Reset
Selection.Font.Name = "Arial"
Selection.Font.Italic = kur
Selection.Font.Bold = fet
Selection.Font.Size = siz
Selection.Font.Color = col
Selection.Range.HighlightColorIndex = hili
End Sub
Font is always Arial, hence no need to read that info...
The "Asian" is also in the "description" property of its non-Asian variant, the local name is simply "Standard".
:-(
Do you guys have any idea on how I can automatise my "cleaning"?
Thanks in advance!
MakeItSo
[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell