Package org.omegat.filters3.xml.openxml
Class OpenXMLDialect
java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.openxml.OpenXMLDialect
- All Implemented Interfaces:
XMLDialect
Dialect of Open XML files.
-
Field Summary
Fields inherited from interface org.omegat.filters3.xml.XMLDialect
CONSTRAINT_DOCTYPE, CONSTRAINT_DOCTYPE_UNBOXED, CONSTRAINT_PUBLIC_DOCTYPE, CONSTRAINT_PUBLIC_DOCTYPE_UNBOXED, CONSTRAINT_ROOT, CONSTRAINT_ROOT_UNBOXED, CONSTRAINT_SYSTEM_DOCTYPE, CONSTRAINT_SYSTEM_DOCTYPE_UNBOXED, CONSTRAINT_XMLNS, CONSTRAINT_XMLNS_UNBOXED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineDialect(OpenXMLOptions options) Actually defines the dialect.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.Methods inherited from class org.omegat.filters3.xml.DefaultXMLDialect
constructShortcuts, defineConstraint, defineContentBasedTag, defineIntactTag, defineIntactTags, defineOutOfTurnTag, defineOutOfTurnTags, defineParagraphTag, defineParagraphTags, definePreformatTag, definePreformatTags, defineShortcut, defineShortcuts, defineTranslatableAttribute, defineTranslatableAttributes, defineTranslatableTagAttribute, defineTranslatableTagAttributes, defineTranslatableTagsAttribute, getClosingTagRequired, getConstraints, getContentBasedTags, getForceSpacePreserving, getIntactTags, getOutOfTurnTags, getParagraphTags, getPreformatTags, getShortcuts, getTagsAggregationEnabled, getTranslatableAttributes, getTranslatableTagAttributes, handleXMLTag, resolveEntity, setClosingTagRequired, setForceSpacePreserving, setTagsAggregationEnabled, validateContentBasedTag, validateIntactTag, validateParagraphTag, validatePreformatTag, validateTranslatableTag
-
Constructor Details
-
OpenXMLDialect
public OpenXMLDialect()
-
-
Method Details
-
defineDialect
Actually defines the dialect. It cannot be done during creation, because options are not known at that step. -
validateTranslatableTagAttribute
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:
validateTranslatableTagAttributein interfaceXMLDialect- Overrides:
validateTranslatableTagAttributein classDefaultXMLDialect
-