C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DecodeReturnedText ( string strInput ) : string
GetSourceTagsDict ( ) : MtTag>.Dictionary
GetTargetElements ( ) : string[]

puts returned string into an array of elements

Описание методов

GetTaggedSegment() публичный Метод

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
Результат Segment

MtTranslationProviderTagPlacer() публичный Метод

public MtTranslationProviderTagPlacer ( Segment _sourceSegment ) : System
_sourceSegment Segment
Результат System

RemoveTrailingClosingTags() публичный Метод

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
Результат Segment