Bug 144450 - FILEOPEN DOC English text in Japanese file, Text Grid being active results in unexpected paragraph line height
Summary: FILEOPEN DOC English text in Japanese file, Text Grid being active results in...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: Text-Grid
  Show dependency treegraph
 
Reported: 2021-09-12 03:00 UTC by Sylvain
Modified: 2022-05-24 07:23 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
PDF exported from Office Web Viewer (228.24 KB, application/pdf)
2022-05-24 06:57 UTC, Buovjaga
Details
The English doc file (66.50 KB, application/msword)
2022-05-24 07:23 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain 2021-09-12 03:00:20 UTC
Description:
I think it is linked with files that were first created in Japanese in the doc format, as I have seen this for lots of translated file. For example, see the japanese government funding application: https://www.jsps.go.jp/english/e-grants/data/09/2022/s-13_e.doc
The text alignment and spacing is broken and leave "ghost" text outside of the document. I think it is related to the setting, "snap to grid" as removing this option tends to fix the problem.

Steps to Reproduce:
1. Open link file
2. Observe the bad alignment and scroll up and down
3. Untick "snap to grid" in the paragraph format options

Actual Results:
Alignment of text is broken (snap to grid is not working)

Expected Results:
Alignment should be correct


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Seems to be linked with files that were first created in Japanese
Comment 1 Shinji Enoki 2021-09-12 15:59:45 UTC
Probably Japanese document of S-13 is below:
https://www.jsps.go.jp/j-grantsinaid/03_keikaku/data/r04/s-13.doc

Download link page:
https://www.jsps.go.jp/j-grantsinaid/03_keikaku/download.html

> 3. Untick "snap to grid" in the paragraph format options

Select menu [Format] - [Paragraph], [Alignment]tab
Clear check box "Snap to text grid"


Following "Steps to Reproduce", the display changed correctly.
I don't know why the Japanese file didn't require that procedure.

Tested with the following versions:

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded


By the way, Crashes when I opened the English and Japanese file with a daily build.That's another problem.

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 84e1c79dd7394168459a3bbdea8bd94d765708e0
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-09-10_21:28:22
Calc: threaded
Comment 2 Buovjaga 2022-05-24 06:57:34 UTC
Created attachment 180323 [details]
PDF exported from Office Web Viewer

From https://view.officeapps.live.com/op/view.aspx?src=
Comment 3 Buovjaga 2022-05-24 07:13:09 UTC
Reproduced. Already in 3.3.0

1. Select the paragraphs between "Research Objectives, Research Method, etc." and "[SUMMARY]"
2. Right-click - Paragraph - Paragraph
3. Uncheck Alignment - Snap to text grid (if active), OK

Alternatively:
1. Format - Page style - Text grid
2. No Grid, OK

Now the line height matches the PDF exported from Office Web Viewer.

It should be researched what is the cause for the Text Grid being active. What exactly in the .doc makes it active?

Arch Linux 64-bit
Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: f817b3de1aa827d93e2a622735c4d570514f4849
CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 24 May 2022
Comment 4 Buovjaga 2022-05-24 07:23:02 UTC
Created attachment 180324 [details]
The English doc file

By the way, after I tested with 7.3, I see the "ghost" text issue mentioned by Sylvain. It is like paragraphs running on top of each other. Fortunately it is fixed in 7.4.