Interface IPlaceholderTagProperties
Information on a standalone inline tag, i.e. a tag that can appear inside translatable content, representing a placeholder that should be treated as part of the text and may need to be moved to a different location in the translation.
Inherited Members
Namespace: Sdl.FileTypeSupport.Framework.NativeApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public interface IPlaceholderTagProperties : IAbstractTagProperties, IAbstractBasicTagProperties, IMetaDataContainer, ICloneable, IAbstractInlineTagProperties
Properties
HasTextEquivalent
True
if the TextEquivalent property has been set to a value that is not
null
or an empty string.
Declaration
bool HasTextEquivalent { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsBreakableWhiteSpace
Indicates whether the tag can be treated as one of the many Unicode characters that are classified as breakable white space, i.e. all white space except NBSP (nonbreaking space) and ZWNBSP (zero-width non-breaking space).
Declaration
bool IsBreakableWhiteSpace { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
This is false
by default.
SegmentationHint
Indicates for how the placeholder should be treated during segmentation.
Declaration
SegmentationHint SegmentationHint { get; set; }
Property Value
Type | Description |
---|---|
SegmentationHint |
TextEquivalent
May contain the linguistic text equivalent for the tag, if one exists.
Declaration
string TextEquivalent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
If the tag should be treated linguistically similar to a piece of text, this property
can be set to that text. If a tag has no linguistic text equivalent (e.g. if it can be a
marker for a location or represent the start or end of formatting), this property
should be null
or an empty string.
Note that text stored in this property is typically not the exact equivalent of the tag. (If it were, there would be no reason to use a tag in the first place.) However, from a linguistic processing point of view this text can be used to determine grammatical properties of the tag that may affect the surrounding text, e.g. gender, numericals and singular/plural form.
This is null
by default.