Bug 149534 - Japanese character spacing does not work correctly when grid is enabled
Summary: Japanese character spacing does not work correctly when grid is enabled
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.8.2 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Text-Grid CJK-Japanese
  Show dependency treegraph
 
Reported: 2022-06-12 17:06 UTC by nnn1590+libreoffice
Modified: 2022-11-28 04:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Recorded video (15.81 MB, video/webm)
2022-06-12 17:27 UTC, nnn1590+libreoffice
Details
Sample document (13.95 KB, application/vnd.oasis.opendocument.text)
2022-09-13 18:17 UTC, nnn1590+libreoffice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nnn1590+libreoffice 2022-06-12 17:06:19 UTC
Description:
Character spacing setting is only applied to some characters when Japanese characters are used and grid (lines and characters) is enabled.

I tried with:
LibreOffice 6.2.8.2 f82ddfca21ebc1e222a662a32b25c0c9d20169ee (LibreOffice-still.standard-x86_64.AppImage)
LibreOffice 7.3.3.2 30(Build:2) (APT-Sources: 
 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal/main amd64 Packages)

(I'm sorry if my English is wrong.)

Steps to Reproduce:
1. Open LibreOffice Writer
2. Open "Page Style" dialog
3. On the "Text Grid" tab, select "Grid (lines and characters)"
4. Click "OK" button (or press enter key)
5. Enter Japanese text (e.g., "ああああああああああああ")
6. Select some text and set character spacing


Actual Results:
The character spacing is applied to only a portion of the set area

Expected Results:
Applies to all parts of the set area


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.3.3.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 1 nnn1590+libreoffice 2022-06-12 17:27:18 UTC
Created attachment 180691 [details]
Recorded video
Comment 2 Dieter 2022-06-27 06:06:35 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 3 nnn1590+libreoffice 2022-09-13 18:17:39 UTC
Created attachment 182420 [details]
Sample document
Comment 4 nnn1590+libreoffice 2022-09-13 18:19:55 UTC
Please accept my apologies for the delay.

Created with LibreOffice Writer
Version: 7.3.6.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Ubuntu package version: 1:7.3.6~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 5 Dieter 2022-10-05 05:12:40 UTC
I confirm it with

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c3b5eea4304ad6815b491f549fce008a9630c213
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded
Comment 6 Kevin Suo 2022-11-12 05:12:10 UTC
> 6. Select some text and set character spacing
In this step, on which dialog do you set the character spacing? Is it Format > Character > Position > Spacing?

For me, when I open your test document, select all, then changing the character spacing on Format > Character > Position > Spacing, none of the character spacing is changed. This is expected, as the page has Text Grid enabled and the paragraph has "Snap to text grid (if active)" enabled thus the characters should snap to text grids and any explicit character space setting is ignored by design.

To let the character spacing taken into effect, you need to disable text grid, or disable the "Snap to text grid (if active)" for this paragraph (select the paragraph and uncheck this option on Format > Paragraph > Alignment).

I set this to NEEDINFO and awaiting your clarify.
Comment 7 Kevin Suo 2022-11-12 05:23:21 UTC
Well, I took a look of your screencast. You set the text grid, then selected a portion of the text and apply character spacing. The spacing was not shown, this is expected. Then you disabled the text grid, and then you see that the spacing are shown for that portion of the text you have applied spacing, this is also expected.

Am I missing something?
Comment 8 nnn1590+libreoffice 2022-11-28 04:01:33 UTC
Oh, I didn't know that.
I disabled "Snap to text grid (if active)" and the result is what I expected!
Thank you very much!