Kazuko O. wrote:
Please find the attached file "Sample.docx" to see Japanese
custom styles.
After examining the sample Japanese DOCX file you sent us, we haven't
found anything really incorrect in what does XMLmind Word to XML.
1) It seems to work almost as well as with DOCX files using a Western
language.
2) When generating Styled XHTML (probably not what interests you), it
indeed completely ignores the "East Asia" font families. Example
(excerpt of your sample DOCX file):
<w:rFonts w:eastAsia="MS P明朝"/>
is ignored.
3) Custom style names using Japanese characters are translated to hard
to understand automatically generated names. Example (excerpt of
generated Styled XHTML corresponding to your sample DOCX):
.p-4 {
-ms-textAlignment: center;
font-family: Arial;
font-size: 12pt;
font-weight: bold;
line-height: 21pt;
margin-bottom: 6pt;
margin-left: 42.55pt;
margin-top: 0.5em;
orphans: 1;
page-break-inside: avoid;
text-align: justify;
text-indent: -42.55pt;
widows: 1;
}
BUT:
a) You can use XMLmind Word to XML without mapping any MS-Word character
and paragraph styles (e.g. p-SideBar) to XML elements possibly having
attributes (e.g. DITA note type="other" othertype="sidebar"). See
http://www.xmlmind.com/w2x/_distrib/doc/w2x_app_help/options_wizard_style_mapping_screen.html
b) Though hard to use, you can of course map MS-Word character and
paragraph styles using automatically generated names like "p-4" or "p-af0".
====================================================================
We could improve this facility if you are really, *really* interested.
Please understand that we have very few Japanese customers. In order to
improve things, we need a strong incentive. For example, if you are
currently evaluating XMLmind Word to XML, then aside this problem, your
evaluation should be positive and you must have decided to actually use
the product.
Styles would still be given ugly names like "p-4" or "p-affe" but we may
keep as an extension CSS property the original name of your custom
style. Example:
.p-4 {
-ns-style-name: "表内−本文";
...
}
-ns-style-name would be displayed by the "Add" dialog of "MS-Word style
to XML element map"
(http://www.xmlmind.com/w2x/_distrib/doc/w2x_app_help/style_mapping_editor.html).
====================================================================
c) Standard styles like "Heading1", "Heading2", etc, have no such
problem. Example:
.p-Heading3 {
-ms-outlineLvl: 2;
-ms-textAlignment: center;
font-family: Arial;
font-size: 16pt;
line-height: 27pt;
margin-bottom: 6pt;
margin-left: 35.45pt;
margin-top: 0.5em;
orphans: 1;
page-break-after: avoid;
text-align: justify;
text-indent: -35.45pt;
widows: 1;
}
However these standard styles are currently NOT displayed by the "Add"
dialog of "MS-Word style to XML element map"
(http://www.xmlmind.com/w2x/_distrib/doc/w2x_app_help/style_mapping_editor.html).
Rationale: the user is not supposed to map these standard styles to
semantic XML elements. This is generally done out of the box by the
stock XED scripts and/or XSLT stylesheets. Mapping these standard styles
would probably have undesired effects on the output of XMLmind Word to XML.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support