I want to translate QM help documentation, but some places in the document should not be translated, so I need to highlight these places, then hide them and import them into translation software: trados or memoq
If I do all the manual operation, it is very time-consuming, I feel that some of the rules of QM should be able to easily complete this work, but I do not know how to operate, I hope the developer can guide me, I am translating help documentation, I hope my friends can also understand QM help, to facilitate their study and work!Thank you very much!
I checked a lot of information, professional translation software, such as: trados, memoq, etc., can be quickly translated word of content of show!
I copied tips.txt to the word, I just want to hidden the characters of the highlight content, And then into the translation software, translation of the characters of displayed, after translation, and then show the characters of hidden, The following tool can be hidden, showing the highlight of the content
I checked some of the information on the Internet, the word macro command can be resolved, as the following code, but I can not write part of the regular expression :oops:
Can I use QM to achieve the following functions?
Sub HighlightColor()
Dim mt, n&, m&, reg As Object
Set reg = CreateObject("vbscript.regexp")
reg.Global = True: reg.MultiLine = True
reg.Pattern = "(????????????????????????)"
For Each mt In reg.Execute(ActiveDocument.Content)
m = mt.FirstIndex: n = mt.Length
With ActiveDocument.Range(m, m + n)
.HighlightColorIndex = wdYellow
End With
Next
End Sub
Test success, QM is too great, but the following picture of the content, no highlight
Now, want to localize the QM help document friends, you can try, in the translation software memoq, the use of machine translation engine, you can get the translation file in a few minutes
Thank you very much for the technical support of QM developers
I use Qm in Word to find and replacement function, but can not succeed :oops:
In addition, I would like to ask, How to handle multiple word documents,thank you very much
Can I run the macro of created by VBA in QM?
If someone makes a tool, I can convert the VBA macro into QM code, it's great
Sub SelectRange()
Dim rngParagraphs As Range
Set rngParagraphs = ActiveDocument.Range( _
Start:=ActiveDocument.Paragraphs(1).Range.Start, _
End:=ActiveDocument.Paragraphs(4).Range.End)
rngParagraphs.Select
End Sub
kyjdp Wrote:I would like to select three paragraphs in the word, but out of the following mistakes, I hope someone can help me look, thank you very much