Apache OpenOffice (AOO) Bugzilla – Issue 47801
WW8: Thai justification from Word 2003 not imported correctly
Last modified: 2017-05-20 11:19:35 UTC
A paragraph with "thai distribute" alignment exported as a .doc from Word 2003 will be treated as left-aligned when imported into OOo. The Thai version of Word 2003 provides paragraph alignment choices of left, center, right, justified and thai distribute (I'm not sure exactly what it calls these in the English UI; I only have the Thai UI): "justified" justifies the line by stretching spaces; "thai distribute" justifies the line by adding space between Thai clusters. OOo does not provide a separate "thai distribute" type of alignment but instead automatically does the "thai distribute" alignment for justified Thai text. Thus a Word paragraph that has alignment of "thai distribute" should turn into a OOo paragraph with alignment of "justified".
Created attachment 25247 [details] .doc with Thai justified text exported from Word 2003
The Office 2003 XML docs list 10 different types of paragraph alignment. I experimented with how Word 2003 represents these in .doc files. On export, Word always generates a pair of SPRMs: 2403 (sprmPJc) and 2461 (undocumented). The parameters it generates are as follows: XML 2403 2461 ---------------------------- left 0 0 center 1 1 right 2 2 both 3 3 distribute 4 4 medium-kashida 4 5 list-tab 6 6 high-kashida 5 7 low-kashida 3 8 thai-distribute 4 9 On import, it appears to ignore the 2403 parameter and pay attention only to the 2461 parameter.
Considering the effort, the priority, the risk and our resource planning I've to retarget this issue to OOo Later.
There is a related problem with Word97. See issue 55339. Word97 just understands the 2403 SPRM. Word 2003 can import this correctly: apparently it pays attention to the 2403 SPRM if there is no 2461 SPRM.
assigned to hbrinkm
Reset assigne to the default "issues@openoffice.apache.org".