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
Afficher le fichier Open project: patrickporter/MT-Enhanced-Trados-Plugin Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
DecodeReturnedText ( string strInput ) : string
GetSourceTagsDict ( ) : MtTag>.Dictionary
GetTargetElements ( ) : string[]

puts returned string into an array of elements

Method Details

GetTaggedSegment() public méthode

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
Résultat Segment

MtTranslationProviderTagPlacer() public méthode

public MtTranslationProviderTagPlacer ( Segment _sourceSegment ) : System
_sourceSegment Segment
Résultat System

RemoveTrailingClosingTags() public méthode

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
Résultat Segment