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
  • Constructor Details

  • Method Details

    • 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:
    • setAltTransIDType

      public void setAltTransIDType(XLIFFOptions.ID_TYPE idType)
      Set how the ID for alternative translations should be taken:
    • 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"