C# Class MtEnhancedTradosPlugin.MtTranslationProviderTagPlacer

Holds data on a source segment and the tags it contains, which can be used to insert the tags in the target segment
Exibir arquivo Open project: patrickporter/MT-Enhanced-Trados-Plugin Class Usage Examples

Public Methods

Method Description
GetTaggedSegment ( string _returnedText ) : Segment

Returns a tagged segments from a target string containing markup, where the target string represents the translation of the class instance's source segment

MtTranslationProviderTagPlacer ( Segment _sourceSegment ) : System
RemoveTrailingClosingTags ( Segment segment ) : Segment

Microsoft always adds closing tags, but we don't keep track of our tags that way..so the segments always have garbage text at the end with the closing tag markup...this method removes them

Private Methods

Method Description
DecodeReturnedText ( string strInput ) : string
GetSourceTagsDict ( ) : MtTag>.Dictionary
GetTargetElements ( ) : string[]

puts returned string into an array of elements

Method Details

GetTaggedSegment() public method

Returns a tagged segments from a target string containing markup, where the target string represents the translation of the class instance's source segment
public GetTaggedSegment ( string _returnedText ) : Segment
_returnedText string
return Segment

MtTranslationProviderTagPlacer() public method

public MtTranslationProviderTagPlacer ( Segment _sourceSegment ) : System
_sourceSegment Segment
return System

RemoveTrailingClosingTags() public method

Microsoft always adds closing tags, but we don't keep track of our tags that way..so the segments always have garbage text at the end with the closing tag markup...this method removes them
public RemoveTrailingClosingTags ( Segment segment ) : Segment
segment Segment
return Segment