Option Setting File

Conversion option setting file

The conversion option setting file is a file that saves parameter values for conversion options.It is read at command line execution by specifying the name of the conversion option setting file.If you repeatedly convert using the same settings, you can save the conversion options in a settings file so that the next time you convert, you only need to specify the settings file instead of specifying the same options.The file name of the conversion option setting file is optional.The conversion option setting file can be created as a file specified by the "-savesettings" conversion option when the command line is executed.

The conversion option setting file is in XML format, so parameter values can be modified using a text editor.

Setting file formatThe settings file is an XML file whose root element is "word-to-html-settings" and the items to be set for conversion options are the child element type names. The format of the default setting file and the conversion option setting file are the same. The correspondence between each element type name and the conversion option parameters is shown in the table below.
Element Location Attribute Default Corresponding conversion option parameter
<word-to-html-settings> root
enable-XHTML enable false -xhtml
viewport content -viewport
enable-endl enable false -endl
enable-empty-paragraph enable false -emptyP
enable-non-reference-id enable false -nonrefiid
enable-image-width enable false -imgwidth
enable-heading-strong enable true -hstrong
enable-embed-image enable false -embedimg
enable-mathml enable false -math
xml-mathml enable false -xmath
xml-omath enable false -omath
through-image enable false -throughimg
enable-pstyle enable false -pstyle
enable-citation enable false -citation
text-color enable false -textcolor
output-br enable false -outputbr
style-tag enable true -defstyle
space-indent enable false -spaceindent
fil-images enable false -fileimages
table-style enable N/A -tablestyle
italic out n -italic n|t|s
underline out n -underline n|t|s
linethrough out n -linethrough n|t|s
encoding encoding N/A -encoding
link-css src N/A -css css-file
link-js src N/A -js javascript-path
split val 0 -split 1|2|3
tocout enable false -tocout
pagenavi N/A -pagenavi language
lang val 0 -lang language
section val 6 -section 1|2|3|4|5|6
endnoteId enable false -endnoteId
footnote out f -footnote f|t|n
customSep enable false -customSep

Example

The following is the default settings file created by specifying "-clrsettings -savedefault" as a conversion option parameter. Parameters with no default values will not be set.

<?xml version="1.0"?>
<word-to-html-settings>
 <enable-XHTML enable="false"/>
 <viewport content=""/>
 <enable-endl enable="false"/>
 <enable-empty-paragraph enable="false"/>
 <enable-non-reference-id enable="false"/>
 <enable-image-width enable="false"/>
 <enable-heading-strong enable="true"/>
 <enable-embed-image enable="false"/>
 <enable-mathml enable="false"/>
 <xml-mathml enable="false"/>
 <xml-omath enable="false"/>
 <through-image enable="false"/>
 <enable-pstyle enable="false"/>
 <enable-citation enable="false"/>
 <text-color enable="false"/>
 <output-br enable="false"/>
 <style-tag enable="true"/>
 <space-indent enable="false"/>
 <fil-images enable="false"/>
 <italic out="n"/>
 <underline out="n"/>
 <linethrough out="n"/>
 <split val="0"/>
 <tocout enable="false"/>
 <lang val=""/>
 <section val="6"/>
 <endnoteId enable="false"/>
 <footnote out="f"/>
 <customSep enable="false"/>
</word-to-html-settings>