Click or drag to resize
INativeGenerationContentHandler Interface
Extension of the IAbstractNativeContentHandler with additional methods used to communicate information that is only available during generation (i.e. when writing native output files from content that originates from the bilingual content model).

Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2343.0)
Syntax
public interface INativeGenerationContentHandler : IAbstractNativeContentHandler

The INativeGenerationContentHandler type exposes the following members.

Methods
  NameDescription
Public methodChangeContext
Sets or changes translation related context information. Context changes will most often be associated with structure tags. Context changes inside text will cause the text to be split into separate units during translation, which should normally be avoided (if possible).
(Inherited from IAbstractNativeContentHandler.)
Public methodCommentEnd
Used to indicate the end of commented content in the stream.
(Inherited from IAbstractNativeContentHandler.)
Public methodCommentStart
Used to indicate that the following content should be treated as commented content until a matched CommentEnd() call is made.
(Inherited from IAbstractNativeContentHandler.)
Public methodCustomInfo
Temporary custom information, which can be used for communication between native content processing components.
(Inherited from IAbstractNativeContentHandler.)
Public methodInlineEndTag
Content that is interpreted as the end of a previously emitted start tag.
(Inherited from IAbstractNativeContentHandler.)
Public methodInlinePlaceholderTag
Content interpreted as a placeholder that may appear inside text. Do not use this for method for paired placeholders.
(Inherited from IAbstractNativeContentHandler.)
Public methodInlineStartTag
Content that is interpreted as the first of a set of paired tags that may appear inside text.
(Inherited from IAbstractNativeContentHandler.)
Public methodLocationMark
Used with the message reporting mechanism to communicate locations associated with messages reported using the INativeContentStreamMessageReporter.
(Inherited from IAbstractNativeContentHandler.)
Public methodLockedContentEnd
Used to indicate the end of locked content in the stream.
(Inherited from IAbstractNativeContentHandler.)
Public methodLockedContentStart
Used to indicate that the following content should be treated as locked content until a matched EndLockedContent() call is made.
(Inherited from IAbstractNativeContentHandler.)
Public methodParagraphComments
Used to set Paragraph comments to the current paragraph.
(Inherited from IAbstractNativeContentHandler.)
Public methodParagraphUnitEnd
Indicates the location of a paragraph unit boundary in the bilingual content model.
Public methodParagraphUnitStart
Indicates the location of a paragraph unit boundary in the bilingual content model.
Public methodRevisionEnd
Used to indicate the end of revisioned content in the stream.
(Inherited from IAbstractNativeContentHandler.)
Public methodRevisionStart
Used to indicate that the following content should be treated as revisioned content until a matched RevisionEnd() call is made.
(Inherited from IAbstractNativeContentHandler.)
Public methodSegmentEnd
Indicates the location of a segment boundary in the bilingual content model.
Public methodSegmentStart
Indicates the location of a segment boundary in the bilingual content model.
Public methodStructureTag
Content that is interpreted as a structural tag, i.e. a tag that does not appear inside translatable text.
(Inherited from IAbstractNativeContentHandler.)
Public methodText
Content that represents translatable text
(Inherited from IAbstractNativeContentHandler.)
Top
Remarks

The additional information, which is communicated, includes start and end of paragraph units and segments as they appear in the bilingual content model.

This information is useful for determining whether any content has been left in original source language or whether it has been translated. It is also used by the framework when mapping locations in the native content stream to locations in the bilingual content model, during message reporting.

Note that the locations of the segment boundaries may have to be approximated, e.g. if tag pairs that were split due to the presence of the segments in the native content model have been re-combined when converting from bilingual to native.

See Also
Community
Edit
Be the first to Edit the community content of this topic.
Comments