- edited description
Why is the wordConfiguration.yml file not used when parsing the document.xml subfile in the docx file?
Issue #1357
resolved
I want to exclude the attribute names of text boxes and pictures through configuration
Original configuration file:
'pic:cnvpr':
ruleTypes: [ATTRIBUTES_ONLY]
translatableAttributes: [ name ]
elementType: image
'wp:docpr':
ruleTypes: [ATTRIBUTES_ONLY]
translatableAttributes: [ name ]
I changed the configuration to:
'pic:cnvpr':
ruleTypes: [ EXCLUDE ]
'wp:docpr':
ruleTypes: [ EXCLUDE ]
I found that the configuration did not take effect. Then I read the source code and found that ContentFilter
was not used when parsing the document.xml
file. I was very confused.
Comments (4)
-
reporter -
reporter - edited description
-
reporter I have solved my problem by
parameters.setTranslateWordExcludeGraphicMetaData(true)
-
- changed status to resolved
- Log in to comment