Created attachment 142413 [details] Simple Table with both kinds of Vertical Text. Bottom to Top text incorrect. Text Boxes can have 2 vertical text directions. We only correctly import the bottom to top (90 deg). The more common top to bottom ( 270 deg) is imported as horizontal.
Created attachment 142414 [details] comparison MSO 2010 and LibreOffice 6.1
Reproduced in Version: 6.1.0.0.beta1+ Build ID: da49f4aeb8d5e9a7d2cba8855d911e7cc1d2f1e2 CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: gtk3; Locale: ca-ES (ca_ES.UTF-8); Calc: group threaded
Arrgh. I screwed up my description as I was simultaneously creating test documents for 2 vertical text issue that I discovered. Let's track the table bug here. Updated the summary.
The text that is correctly positioned uses Table Format->Text Flow->Text Orientation = "Vertical" The incorrectly positioned vertical text uses: Table Format->Text Flow->Text Orientation = "Horizontal" with a Character->Position->Rotation = 90 One approach to fixing this might be to add a new Vertical 90, Text Flow option. Otherwise, we'd probably need a special compatibility mode to avoid regressions in ODT that use character rotation in tables. Mark, You're working on this area now. Any thoughts on this?
(In reply to Luke from comment #4) > The text that is correctly positioned uses > Table Format->Text Flow->Text Orientation = "Vertical" > > The incorrectly positioned vertical text uses: > Table Format->Text Flow->Text Orientation = "Horizontal" > with a Character->Position->Rotation = 90 > > > One approach to fixing this might be to add a new Vertical 90, Text Flow > option. Otherwise, we'd probably need a special compatibility mode to avoid ODF allows writing-mode to be "tb-lr" in table cells[1] and it is already supported. One can manually crafts odt files and they format correctly. On the page level, it's enabled by Khaled Hosny[2]. So I think it's good to add "Vertical(Left-to-Right)" for text orientation option. We can create another EDITING issue for this. > regressions in ODT that use character rotation in tables. What regression do you mean? I speculate that import filter for doc format try to emulate vertical (left-to-right) with character rotation. We should use tb-lr directly. Still need further investigation on this. > > Mark, > You're working on this area now. Any thoughts on this? [1]http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1420404_253892949 [2]https://cgit.freedesktop.org/libreoffice/core/commit/?id=930a3d462b05e111da37d31de7f60998ce9454b3
Miklos is working on text direction in tables.
Verified FIXED by https://cgit.freedesktop.org/libreoffice/core/commit/?id=8fdbda18b593e7014e44a0fd590bbf98d83258b7 Thanks Miklos!
Indeed -- sorry for not searching the bugzilla when writing the commit message. One problematic area I'm aware of is cursor / selection handling, I still plan to improve things there. E.g. you go to the table cell with btlr text direction, do Ctrl-A, then the selection rectangle is still bad. I plan to still fix that.