Class OpenXMLDialect

java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.openxml.OpenXMLDialect
All Implemented Interfaces:
XMLDialect

public class OpenXMLDialect extends DefaultXMLDialect
Dialect of Open XML files.
  • Constructor Details

    • OpenXMLDialect

      public OpenXMLDialect()
  • Method Details

    • defineDialect

      public void defineDialect(OpenXMLOptions options)
      Actually defines the dialect. It cannot be done during creation, because options are not known at that step.
    • validateTranslatableTagAttribute

      public Boolean validateTranslatableTagAttribute(String tag, String attribute, Attributes atts)
      Returns for a given attribute of a given tag if the attribute should be translated with the given other attributes present. If the tagAttribute is returned by getTranslatable(Tag)Attributes(), this function is called to further test the attribute within its context. This allows for example the OpenXML filter to not translate the value attribute of Target, except if TargetMode is External
      Specified by:
      validateTranslatableTagAttribute in interface XMLDialect
      Overrides:
      validateTranslatableTagAttribute in class DefaultXMLDialect