Class HelpAndManualDialect
- java.lang.Object
-
- org.omegat.filters3.xml.DefaultXMLDialect
-
- org.omegat.filters3.xml.helpandmanual.HelpAndManualDialect
-
- All Implemented Interfaces:
XMLDialect
public class HelpAndManualDialect extends DefaultXMLDialect
This class specifies the Help&Manual XML Dialect.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.Pattern
HAM_ROOT_TAG
-
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 Constructor Description HelpAndManualDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
validateIntactTag(java.lang.String tag, Attributes atts)
In the Help&Manual filter, content should be translated in the following condition: The pair attribute-value should not have been declared as untranslatable in the options-
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, validateParagraphTag, validatePreformatTag, validateTranslatableTag, validateTranslatableTagAttribute
-
-
-
-
Method Detail
-
validateIntactTag
public java.lang.Boolean validateIntactTag(java.lang.String tag, Attributes atts)
In the Help&Manual filter, content should be translated in the following condition: The pair attribute-value should not have been declared as untranslatable in the options- Specified by:
validateIntactTag
in interfaceXMLDialect
- Overrides:
validateIntactTag
in classDefaultXMLDialect
- Parameters:
tag
- An XML tagatts
- The attributes associated with the tag- Returns:
false
if the content of this tag should be translated,true
otherwise
-
-