Bug 162376 - FILEOPEN DOC: Left tab in RTL textbox imported as Right tab
Summary: FILEOPEN DOC: Left tab in RTL textbox imported as Right tab
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: 50301 Tab-Stops RTL-Textbox DOC-RTL
  Show dependency treegraph
 
Reported: 2024-08-06 19:13 UTC by Eyal Rozenberg
Modified: 2024-10-29 16:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
DOC file exhibiting the bug when opened in Writer (797.00 KB, application/msword)
2024-09-02 21:50 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-08-06 19:13:29 UTC
Context-free description:

Consider the attached DOC file. It contains a shape with a single line of text: some untabbed text, and some text after a tab. The shape paragraph direction is RTL and the tab should be a Left tab at 13.25cm .

Unfortunately, when the document is opened in LO Writer, the tab is created as a Right tab. That causes the text to overflow to a second line.

As tabulation in text boxes is typically intended to produce precise positioning, such overflow is likely to interfere severely with the layout of documents with such features, especially forms.

Now for some background:

This is the first of several bugs separating out the issuess we see in the infamous DOC from in bug 50301.

The attached document is attachment 62050 [details] with the following changes:

* All tables, text and images removed
* Everything on the second column removed
* All lines, shapes and frames removed - except for the top shape of almost-whole-page width - removed
* Number of columns reduced to 1
* Page layout changed to portrait
* Added a bit of explanatory text
* Kept one of two tabs in the single remaining shape
* Replaced the text of that single shape with some English 
* Removed irrelevant styles and DF
* Changed the Normal style font to Liberation Sans
Comment 1 raal 2024-08-18 05:30:01 UTC
Please attach reduced document. Thank you.
Comment 2 Eyal Rozenberg 2024-09-02 21:50:46 UTC
Created attachment 196191 [details]
DOC file exhibiting the bug when opened in Writer

When you open this in MS word you'll notice the text fits on the first line;
when you open it in LO Writer you'll notice it overflows to the second.

Again, this is because of the mis-direction of the tab.
Comment 3 Buovjaga 2024-10-29 16:16:40 UTC
Confirmed.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7b91fc00a01e973937861a212750b12ffaaf9501
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 29 October 2024