| Summary: | FILEOPEN: Vertical alignment settings of table content not possible for docx/doc files created with MSO | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Kevin Suo <suokunlong> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cno, h3734236, vsfoote, yanjingtao |
| Priority: | medium | ||
| Version: | 4.4.0.1 rc | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:5.1.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: |
test DOCX file, created with MSO 2010
screenshot test DOC file, created with MSO 2013 Default template in mso 2013 pro plus zh_CN 64bit |
||
|
Description
Kevin Suo
2014-12-31 02:52:02 UTC
Created attachment 111550 [details]
test DOCX file, created with MSO 2010
This file was created by MSO 2010, using the default blank template.
He Kevin, Thanks for the clear report and testfile. However, I can't reproduce it in 4.2.7.2 and 4.3.5.2 on Ubuntu.. If I select text, or not, or the whole table, in all cases I can do the job via the dialog table (as you mention) ad directly via context menu > Cell .. Cor Created attachment 111618 [details]
screenshot
Hi Cor,
I have reproduce in 4.4.0.1(windows 8.1),look at the attachment 111618 [details], I have set the grid to Vertical Alignment.
PS:
I found when I save as this file to an odt format, it cannot set vertical alignment either.
Hi yanjingtao, interesting that you can confirm this :) I can't. I guess in your situations it is for al documents? Maybe language dependent ?? Hi Cor, I have changed my language to en(US),but I can reproduce it too. On Windows 7 sp1, 64-bit en-US with Version: 4.4.0.0.beta2 Build ID: be92f32b8f21603a6b7a75dd645f7475bdee519d Locale: en_US only reproducible when opening the attached DOCX file-- https://bugs.freedesktop.org/attachment.cgi?id=111550 Vertical paragraph alignment within the existing 4 cell (2x2) table can not be set. Horizontal alignment does work. Also, if a new 2x2 table is inserted when editing in LO Writer, vertical alignment of paragraphs in those cells can *not* be set. However, it is not reproducible with a new LO Writer document. Paragraphs in the cells of a new 2x2 table respond correctly to any of the 3 vertical alignment buttons. Nor is it reproducible with a new Word 2007created DOCX. Paragraphs in cells in a newly created table respond correctly to to both horizontal and vertical alignment. Nor is it reproducible with Office365 Word newly created DOCX. Paragraphs in cells in newly created table respond correctly to alignment there as well. @Kevin, could there be anything special about the MS Word nomal.dot you are using that could be suppressing vertical alignment within tables? Created attachment 111688 [details]
test DOC file, created with MSO 2013
@Kevin, @yanjingtao, *, Confirmed the same issue with the MS Office 97-2003 formatted .DOC document of attachment 111688 [details] Of note though, in the TableAlignment.docx\word\settings.xml OOXML settings for the document, I found this value: <w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/> http://msdn.microsoft.com/en-us/library/dd944611%28v=office.12%29.aspx When I revert the "1" true, to "0" false; table cell paragraphs honor alignment settings in LibreOffice. I am not sure, but I suppose this could be a value set for CJK versions of Microsoft Office, and a part of the normal.dot used? Anyone up to speed on what MS does for localizing the Word products? (In reply to V Stuart Foote from comment #7) > > only reproducible when opening the attached DOCX file-- > https://bugs.freedesktop.org/attachment.cgi?id=111550 I used this file too, of course. The description was clear. But I can't reproduce. I see only confirmation on Windows? Created attachment 111742 [details]
Default template in mso 2013 pro plus zh_CN 64bit
@ V Stuart Foote I can find Normal.dotm only in my computer, the key "overrideTableStyleFontSizeAndJustification" in this file is 1 by default. @Cor
How about attachment 111688 [details] ?
This issues is related to tdf#77961 and tdf#92535. I've seen that MS Word ( at least for traditional Chinese version ) has text grid on and snap to grid for every paragraph off by default, but seems as if text grid turn off on UI. That's why tdf#77961 said "ODT exported from MS Office has text grid enabled". On the other hand tdf#92535 affect the vertical alignment function that it always align to top when text grid is on. Put them together, .doc and .docx files created by MS Word wont't align properly. For CJK users, my best advice is to turn of the text grid from page style before tdf#92535 been fixed. Mark Hung committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7e383cb50c6020b86ac7857ece8a6273b7eb1a5e Fix tdf#87889 and tdf#92535, vertical align issue when docgrid enable. It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Tested fixed in: Version: 5.1.0.0.beta1-buildfix1 (x64) Build ID: 13010a13177025f633c9b85adcb3edf6920e44e3 Threads 4; Ver: Windows 6.19; Render: GL; Locale: zh-CN (zh_CN) Set to RESOLVED FIXED. @Mark Hung: Any plan to backport this to version 5.0 (or even 4.4.8)? Thanks. P.S. Version 5.1.0.0.beta1-buildfix1 currently has a bug which prevent you from selecting the vertical alignment settings using your mouse - You your UP and DOWN key instead. |