Click or drag to resize
IRepetitionsTable Interface
Used in Repetitions to keep track of segments with the same source language content that appear in multiple locations within the document (potentially in different files).

Namespace: Sdl.FileTypeSupport.Framework.BilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core (in Sdl.FileTypeSupport.Framework.Core.dll) Version: 1.0.0.0 (1.0.2551.0)
Syntax
public interface IRepetitionsTable : ICloneable

The IRepetitionsTable type exposes the following members.

Properties
  NameDescription
Public propertyCount
The number of repetition ids in the table
Public propertyRepetitionIds
Use this iterator to iterate over the pepetition ids in the repetitions table.
Top
Methods
  NameDescription
Public methodAdd
Adds a repeated segment to the table.
Public methodClear
Remove all entries from the table.
Public methodDeleteKey
Removes all repetitions with the specified id from the table.
Public methodGetRepetitionId
Finds the repetition id of a segment.
Public methodGetRepetitions
Returns the repetition list relating to a specific RepetitionId.
Public methodRemove
Remove a repeated segment from the table.
Top
Remarks

This table is built by a dedicated component during initial content processing. Assuming that the source content does not change, the table should remain valid as long as the document contains the same files.

The table is used during editing to implement the auto-propagation feature, whereby the translation of a repeated segment can be immediately propagated to other locations in the same document.

A RepetitionId is used to identify a set of source segments with the same content (repetitions) in the table. The actual segments that are associated with the repetition can be retrieved by calling GetRepetitions(RepetitionId). A segment is referenced as a paragraph unit id and the associated segment id (this is necessary since the same segment ids can be re-used in multiple files in the document (in fact, it is only guaranteed to be unique within a paragraph unit).

It is left to the implementation to determine how repetitions are calculated and propagated. Sophisticated algorithms can apply repetitions also when the source content differs, for example, with regards to tagging and placeables. Very often, a temporary translation memory is used to build the repetition table.

When a translation is applied using auto-propagation, the corresponding repetition id should be stored in the RepetitionTableId property. This allows the editor to better track auto-propagated segments.

See Also
Community
Edit

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