Bug 104353 - FORMATTING: Rotated text with new lines in text boxes from DOCX not properly displayed (not supported?)
Summary: FORMATTING: Rotated text with new lines in text boxes from DOCX not properly ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Textbox Text-Direction-Unification
  Show dependency treegraph
 
Reported: 2016-12-02 11:52 UTC by Gabor Kelemen (allotropia)
Modified: 2019-10-03 12:49 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Textboxes with rotated text direction (66.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-12-02 11:52 UTC, Gabor Kelemen (allotropia)
Details
Screenshot of the document in the current master build (113.90 KB, image/png)
2016-12-02 11:53 UTC, Gabor Kelemen (allotropia)
Details
The document in Word 2013 (80.71 KB, image/png)
2016-12-02 11:54 UTC, Gabor Kelemen (allotropia)
Details
Current state in LO master (238.05 KB, image/png)
2019-06-06 12:37 UTC, Gabor Kelemen (allotropia)
Details
Current state in LO master (79.69 KB, image/png)
2019-06-11 08:03 UTC, Gabor Kelemen (allotropia)
Details
Current state in LO 6.4 master (169.90 KB, image/png)
2019-10-03 12:35 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2016-12-02 11:52:37 UTC
Created attachment 129243 [details]
Textboxes with rotated text direction

Attached file contains two text boxes: the top left has 90 degrees rotated text direction and the bottom right one has 270 degrees rotated text direction in Word.

Writer in a current master build does not support these settings:
- 270 degrees rotation is imported as 90 degrees character rotation (but does the same thing, so the directions are switched between the two products)
- 90 degrees rotation is imported as 0 degrees rotation
- The original has three consecutive paragraphs in both boxes, this is not supported either: they appear in the same row. 

All in all the document falls apart spectacularly in LO.
Comment 1 Gabor Kelemen (allotropia) 2016-12-02 11:53:19 UTC
Created attachment 129244 [details]
Screenshot of the document in the current master build
Comment 2 Gabor Kelemen (allotropia) 2016-12-02 11:54:01 UTC
Created attachment 129245 [details]
The document in Word 2013
Comment 3 Telesto 2016-12-02 12:41:14 UTC
Confirming with:
Version: 5.4.0.0.alpha0+
Build ID: 4130c8def811d1dcc87eacaa8ae48ba02738a790
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-11-29_01:03:18
Locale: nl-NL (nl_NL); Calc: CL

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: en-US (nl_NL)

Versie: 4.4.6.3 
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL

and with
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 4 Cor Nouws 2016-12-02 13:41:47 UTC
3.3.4 only showed empty frames
3.6.7 more or less the same problem as in master
Comment 5 m_a_riosv 2016-12-03 16:14:44 UTC Comment hidden (obsolete)
Comment 6 Cor Nouws 2016-12-04 11:45:23 UTC
In bug 82627 the text box itself has rotation.
In this issue, the rotated text is imported wrong
Comment 7 Cor Nouws 2016-12-04 11:49:19 UTC Comment hidden (obsolete)
Comment 8 Volga 2017-02-24 23:07:04 UTC
This file including two sideways directions that have not implemented in LibreOffice. On this page I found MS Word have already provided related options in 2010:
http://www.mgzwz.com/post-383.html
Comment 9 Volga 2017-06-23 11:30:16 UTC
(In reply to Gabor Kelemen from comment #1)
> Created attachment 129244 [details]
> Screenshot of the document in the current master build

I saw the same effect in 5.4.0.0.beta2.
Version: 5.4.0.0.beta2 (x64)
Build ID: 3cc1cdd8ee50f144e5514da51800a08119754d8f
CPU threads: 4; OS: Windows 6.19; UI render: default; 
Locale: zh-CN (zh_CN); Calc: group
Comment 10 Volga 2017-06-23 11:36:41 UTC Comment hidden (obsolete)
Comment 11 Tamás Zolnai 2017-07-08 10:14:42 UTC
(In reply to Volga from comment #10)
> Tamás, can you fix this bug as you made for bug 100926?

Hi Volga, I'm busy now with other stuff, so I have no time to implement this.
Since rotated text is not supported for Writer text boxes it can take a bigger amount of time to solve it. For example ODF specification supported text rotation for table cells so I did not need to extend the standard, but I'm not sure we have the same for text boxes. Also Impress table and Writer textbox have a slightly different implementation, so might need more effort to transfer the same functionality to text boxes.
Comment 12 Volga 2017-07-25 16:09:38 UTC Comment hidden (no-value)
Comment 13 QA Administrators 2018-08-09 02:35:36 UTC Comment hidden (obsolete, spam)
Comment 14 Gabor Kelemen (allotropia) 2019-06-06 12:37:20 UTC Comment hidden (obsolete)
Comment 15 Gabor Kelemen (allotropia) 2019-06-11 08:03:30 UTC
Created attachment 152092 [details]
Current state in LO master

With current master it's even better: now the other rotation direction is also correct.

Version: 6.4.0.0.alpha0+ (x86)
Build ID: 5e74085e07bbeb23c7d29fc3c5f6f6d2b7ff97e7
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-06-10_00:14:28
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded

Although the text is off a bit: the last 1-2 characters and accents (even on newly typed words) are missing.
Comment 16 NISZ LibreOffice Team 2019-10-03 12:35:26 UTC
Created attachment 154731 [details]
Current state in LO 6.4 master

Looks quite good in:

Version: 6.4.0.0.alpha0+ (x86)
Build ID: 489eef894e7034873ad262f9dfca554022db1b09
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-10-01_23:43:38
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

Turns out the missing text parts is an OpenGL issue (filed as bug #126405), without that the text is well readable.
Comment 17 NISZ LibreOffice Team 2019-10-03 12:49:34 UTC
I mark this as WFM, thanks to the amazing work of Miklos presented here: https://vmiklos.hu/blog/libocon2019.html