Created attachment 111039 [details] docx file with DrawingML shape rotated 90 degrees and text inside shape rotated -90. Text inside a preset shape diagram imported from docx is rotated in the wrong direction. E.g., the attached document has a shape rotated by 90 degrees which contains text that is rotated by -90 degrees. The rotation of the text is relative to the containing shape, so the two rotations should cancel out and leave the text the right way up. However in Writer the text is upside down. The attached file contains only hand-crafted DrawingML so won't be usable in programs like Word that read SmartArt. However it can be opened in Google Docs and the text will be the right way up. I have a patch, I'll try to submit it some time using gerrit.
Comment on attachment 111039 [details] docx file with DrawingML shape rotated 90 degrees and text inside shape rotated -90. Fix mimetype
Created attachment 111088 [details] 2014-12-19 test file opened with Word 2011 on OSX 10.10.1
Interesting, I didn't think Word would open the document at all (since Microsoft's word viewer doesn't). Unfortuately I don't have a copy of Word available to experiment with it myself. I think it would be possible to create a well-formed test document within Word by making diagram containing one of the pre-defined shapes (one without rotational symmetry), rotating it 90 degrees and putting some right-way-up text inside it.
I do have an original Word document that exhibits the problem, and which is fixed by my patch, but I don't want to attach it here due to copyright/privacy issues.
I got access to a machine with Word and attempted to duplicate it, but ended up with fdo#87811 instead. Perhaps it needs to be created as a SmartArt document. Don't have a good test document yet.
I created a couple more test documents using SmartArt, but neither comes out identically to this bug. See 88090 and 88091. I'm mystified about how the original document was created.
Created attachment 111875 [details] Another test case. Two shapes with text, but the one on the right is inverted in LibreOffice.
Comment on attachment 111875 [details] Another test case. Two shapes with text, but the one on the right is inverted in LibreOffice. Created this one in Word 2010 by cutting down the original document.
Created attachment 111877 [details] PDF version of test case exported from Word.
(In reply to Gary Houston from comment #6) > I created a couple more test documents using SmartArt, but neither comes out > identically to this bug. See 88090 and 88091. I'm mystified about how the > original document was created. Fair enough. I'll toss this in NEEDINFO. Feel free to change the Status back to UNCONFIRMED once you have enough information assembled for us to (try to) reproduce it.
I still don't know how to create such a document in Word from scratch, but the document that I uploaded in Comment 7 should be enough to verify the behaviour in Word vs LibreOffice.
TESTING with Lo 4.4.0.2 + Ubuntu 14.04 (In reply to Gary Houston from comment #7) > Created attachment 111875 [details] > Another test case. Two shapes with text, Ok > but the one on the right is > inverted in LibreOffice. CONFIRMED: Yep, the text in the right-hand object is upside down > PDF version of test case in Word: attachment 111877 [details] If that's how the test document appears in Word, then LibreOffice is definitely doing something differently. Status -> NEW
Gary Houston committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=921cea89da8adbe714ea8f71169dd6afc42354c4 fdo#87488 Wrong text rotation inside a preset shape from docx It will be available in 4.5.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.
Gary Houston committed a patch related to this issue. It has been pushed to "libreoffice-4-4": http://cgit.freedesktop.org/libreoffice/core/commit/?id=b8fdf370d8732d39d6739e320aa1450ead5a31b7&h=libreoffice-4-4 fdo#87488 Wrong text rotation inside a preset shape from docx It will be available in 4.4.3. 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.
Gary Houston committed a patch related to this issue. It has been pushed to "libreoffice-4-3": http://cgit.freedesktop.org/libreoffice/core/commit/?id=89032c4b7344139b7e3608d09e8c63b3eafd534b&h=libreoffice-4-3 fdo#87488 Wrong text rotation inside a preset shape from docx It will be available in 4.3.7. 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.
Migrating Whiteboard tags to Keywords: (filter:docx) [NinjaEdit]