Kazuko O. wrote:
I converted a Japanese docx file to dita files with the parameter
"-p convert.set-lang ja-JP" by using w2x.
As the result, I could get the dita files with "xml:lang="ja-JP" in the
root element",
but other xml:lang attribute value ("en-US" in the example below) was
specified in other parts.
Result example:
---------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
"concept.dtd">
<concept id="temp_chap1_1_1" xml:lang="ja-JP">
<title xml:lang="en-US">見出し3</title>
<conbody>
<section><p xml:lang="en-US">本文Lv0</p></section>
</conbody>
</concept>
----------------------
I want to get dita files where "xml:lang" attribute is specified
only in the root element (ex. concept).
Would it be possible for you to let me know how to specify parameters
when converting docx file into dita files?
In principle, there is nothing special to do, not even specify "-p
convert.set-lang ja-JP". XMLmind Word To XML simply uses the language
information found in its input DOCX file.
If your DOCX is all Japanese, you should get a single xml:lang="ja-JP"
set on the root element.
If your DOCX is in Japanese but also contains a few English sentences,
you should get a xml:lang="ja-JP" set on the root element and also a few
xml:lang="en-US" on some paragraphs or phrases.
We have re-checked this and it works fine for DOCX files written in a
Western language (e.g. French).
However this does NOT work for "East Asian" languages like Japanese.
This is clearly a bug and we'll fix it in the next version of XMLmind
Word To XML.
--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support