Kazuko O. wrote:
I want to report the bug (maybe) of w2x to you.
Please find the attached sample files (report_for_list.zip).
Target docx file:
list_with_character_indents.docx
Conditions:
* Convert docx file to dita.
* In the docx file, list and following paragraphs exist.
* Stock style List Paragraph(リスト段落)'s left indentation unit is “字
(=Character)”.
Please see the following image.
Result:
Unexpected paragraphs may become the list’s children, as follows;
<ul>
<li>List<p>Next paragraph.</p><p>Last paragraph.</p></li>
</ul>
-------
If the Stock style List Pragraph's left indentation unit is
mm(list_with_mm_indents.docx),
we can get the expected result as follows;
<ul>
<li>List with<p>Next paragraph.</p></li>
</ul>
<p>Last paragraph.</p>
I consider this symptom is caused by Japanese list paragraph unit
"Character".
Is ths a bug of w2x?
Observations:
When you convert "list_with_mm_indents.docx" to raw xml with w2x, the
value of the margin-left
is correctly set in the "list_with_mm_indents.xml", as follows.
...
.p-ListParagraph {
margin-left: *64.95pt*;
orphans: 1;
text-align: justify;
text-indent: -21pt;
widows: 1;
}
...
<p class="p-ListParagraph pn-19-0 n-19-0">List with</p>
...
<p class="p-ListParagraph pn-19-0 n-19-0"
style="margin-left: *42.55pt*; text-indent: -14.2pt;">List with</p>
...
When you convert "list_with_character_indents.docx" to raw xml with w2x,
the value of the margin-left is 0em in the
"list_with_character_indents.xml" as follows;
...
.p-ListParagraph {
margin-left: *4em*;
orphans: 1;
text-align: justify;
text-indent: -1em;
widows: 1;
}
...
<p class="p-ListParagraph pn-21-0 n-21-0"
style="margin-left: *0em*; text-indent: 0em;">List</p>
...
<p class="p-ListParagraph pn-21-0 n-21-0"
style="margin-left: *0em*; text-indent: -28.35pt;">List</p>
...
This sure looks like a bug. Thanks to your excellent bug report, we'll
try to reproduce it (using the current development version of w2x) and
hopefully fix it.
---
PS: By the way, the very last bug you have reported --in fact, more
general and much more nasty than it first looked-- is now fixed in the
current development version of w2x:
---
Bug fixes:
* Defining a custom style named "Normal +" caused XMLmind Word To XML to
enter an endless loop.
---
--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support