Package org.omegat.filters3.xml.xliff
Class XLIFFOptions
- java.lang.Object
-
- org.omegat.filters2.AbstractOptions
-
- org.omegat.filters3.xml.xliff.XLIFFOptions
-
public class XLIFFOptions extends AbstractOptions
Options for the XLIFF filter. Serializable to allow saving to / reading from configuration file.OpenDoc filter have the following options ([+] means default on). Translatable elements:
- [] Compatibility with 2.6
- [x]Previous and next paragraphs
- []<trans-unit>> ID
- []Force shortcut to "f" for <it pos="end> tags
- []Ignore type and ctype attributes when building <ph> tag shortcuts
- []Ignore type and ctype attributes when building <bpt>/<ept> tag shortcuts
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXLIFFOptions.ID_TYPEIdentify how the ID for alternative translations is decided.
-
Constructor Summary
Constructors Constructor Description XLIFFOptions(java.util.Map<java.lang.String,java.lang.String> config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanget26Compatibility()Returns whether 2.6 compatibility should be appliedXLIFFOptions.ID_TYPEgetAltTransIDType()Return how the ID for alternative translations should be taken: previous and next paragraph (XLIFFOptions.ID_TYPE.CONTEXT, default) the <trans-unit> id (XLIFFOptions.ID_TYPE.ELEMENT_ID) the <trans-unit> resname attribute (XLIFFOptions.ID_TYPE.RESNAME_ATTR)booleangetChangeStateToNeedsReviewTranslation()Return whether transit to state="needs-review-translation" instead of "translated"booleangetForceShortcutToF()Return whether the shortcut should be set to "f" for <it pos="end> tagsbooleangetIgnoreTypeForBptTags()Return whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcutsbooleangetIgnoreTypeForPhTags()Return whether the type and ctype attributes of <ph> tag should be ignored when building shortcutsvoidset26Compatibility(boolean compatibility26)Sets whether 2.6 compatibility should be applied.voidsetAltTransIDType(XLIFFOptions.ID_TYPE idType)Set how the ID for alternative translations should be taken: previous and next paragraph (XLIFFOptions.ID_TYPE.CONTEXT, default) the <trans-unit> id (XLIFFOptions.ID_TYPE.ELEMENT_ID) the <trans-unit> resname attribute (XLIFFOptions.ID_TYPE.RESNAME_ATTR)voidsetForceShortcutToF(boolean forceshortcut2f)Set whether the shortcut should be set to "f" for <it pos="end> tagsvoidsetIgnoreTypeForBptTags(boolean ignoreTypeForBptTags)Set whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcutsvoidsetIgnoreTypeForPhTags(boolean ignoreTypeForPhTags)Set whether the type and ctype attributes of <ph> tag should be ignored when building shortcutsvoidsetStateToReview(boolean stateToReview)Set behavior flag whether change to state="needs-review-translation" instead of "translated"-
Methods inherited from class org.omegat.filters2.AbstractOptions
getOptionsMap
-
-
-
-
Method Detail
-
get26Compatibility
public boolean get26Compatibility()
Returns whether 2.6 compatibility should be applied
-
set26Compatibility
public void set26Compatibility(boolean compatibility26)
Sets whether 2.6 compatibility should be applied.
-
getForceShortcutToF
public boolean getForceShortcutToF()
Return whether the shortcut should be set to "f" for <it pos="end> tags
-
setForceShortcutToF
public void setForceShortcutToF(boolean forceshortcut2f)
Set whether the shortcut should be set to "f" for <it pos="end> tags
-
getIgnoreTypeForPhTags
public boolean getIgnoreTypeForPhTags()
Return whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts
-
setIgnoreTypeForPhTags
public void setIgnoreTypeForPhTags(boolean ignoreTypeForPhTags)
Set whether the type and ctype attributes of <ph> tag should be ignored when building shortcuts
-
getIgnoreTypeForBptTags
public boolean getIgnoreTypeForBptTags()
Return whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts
-
setIgnoreTypeForBptTags
public void setIgnoreTypeForBptTags(boolean ignoreTypeForBptTags)
Set whether the type and ctype attributes of <bpt>/<ept> tags should be ignored when building shortcuts
-
getAltTransIDType
public XLIFFOptions.ID_TYPE getAltTransIDType()
Return how the ID for alternative translations should be taken:- previous and next paragraph (
XLIFFOptions.ID_TYPE.CONTEXT, default) - the <trans-unit> id (
XLIFFOptions.ID_TYPE.ELEMENT_ID) - the <trans-unit> resname attribute (
XLIFFOptions.ID_TYPE.RESNAME_ATTR)
- previous and next paragraph (
-
setAltTransIDType
public void setAltTransIDType(XLIFFOptions.ID_TYPE idType)
Set how the ID for alternative translations should be taken:- previous and next paragraph (
XLIFFOptions.ID_TYPE.CONTEXT, default) - the <trans-unit> id (
XLIFFOptions.ID_TYPE.ELEMENT_ID) - the <trans-unit> resname attribute (
XLIFFOptions.ID_TYPE.RESNAME_ATTR)
- previous and next paragraph (
-
getChangeStateToNeedsReviewTranslation
public boolean getChangeStateToNeedsReviewTranslation()
Return whether transit to state="needs-review-translation" instead of "translated"
-
setStateToReview
public void setStateToReview(boolean stateToReview)
Set behavior flag whether change to state="needs-review-translation" instead of "translated"
-
-