Bug 89288

Summary: Extra space displayed when Indic text meets non-Indic.
Product: LibreOffice Reporter: ssmithg1
Component: WriterAssignee: ⁨خالد حسني⁩ <khaled>
Status: RESOLVED FIXED    
Severity: minor CC: ilmari.lauhakangas, khaled
Priority: medium    
Version: Inherited From OOo   
Hardware: Other   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=136663
Whiteboard: target:7.6.0 target:24.2.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 43808    
Attachments: Indic-Latin spacing
Bengali letters and latin letters in LibO 4.4
MS-Word

Description ssmithg1 2015-02-10 14:11:45 UTC
Created attachment 113292 [details]
Indic-Latin spacing

It seems that LibO is doing something strange at the boundary between Indic and non-Indic text. Extra space appears on the screen, although there is no space character in the text. See the attached screenshot. There is NO space in the text at the red circles, but space is appearing on the screen. Interestingly, the extra space does not appear when Latin text immediately follows an Indic character that has a combining mark on it (as in the last example on each line).
 
There are often situations where we want characters from two different scripts adjacent to each other. I first noticed this bug when working with a dictionary, in which some words have multiple senses. The different senses are numbered, using subscript Latin digits tight up against the word. The extra space being introduced by LibO really doesn't look good, but I can't find any way to get rid of it.
Comment 1 Buovjaga 2015-02-21 17:54:38 UTC
Created attachment 113580 [details]
Bengali letters and latin letters in LibO 4.4

My result with gaps (different font, I guess).

How does Microsoft Word deal with this?

Ubuntu 14.10 64-bit
Version: 4.4.0.3
Build ID: 40m0(Build:3)
Locale: en_US
Comment 2 ssmithg1 2015-03-02 10:38:05 UTC
Created attachment 113820 [details]
MS-Word
Comment 3 ssmithg1 2015-03-02 10:40:42 UTC
(In reply to Beluga from comment #1)
> Created attachment 113580 [details]
> Bengali letters and latin letters in LibO 4.4
> 
> My result with gaps (different font, I guess).
> 
> How does Microsoft Word deal with this?
> 
> Ubuntu 14.10 64-bit
> Version: 4.4.0.3
> Build ID: 40m0(Build:3)
> Locale: en_US

Microsoft Word displays correctly (no gaps).
See attachment "MS-Word".
Comment 4 Buovjaga 2015-03-02 12:11:40 UTC
Ok, I'll set to NEW as my own results (in comment 1) seem close enough.

Lowering severity a bit per https://wiki.documentfoundation.org/images/0/06/Prioritizing_Bugs_Flowchart.jpg
Comment 5 tommy27 2016-04-16 07:28:10 UTC Comment hidden (noise)
Comment 6 ssmithg1 2016-09-01 11:38:52 UTC Comment hidden (obsolete)
Comment 7 Xisco Faulí 2017-09-29 08:52:06 UTC Comment hidden (noise)
Comment 8 ssmithg1 2017-10-04 15:32:09 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2018-10-05 02:52:34 UTC Comment hidden (noise)
Comment 10 ssmithg1 2018-11-01 15:09:39 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2019-11-02 03:45:27 UTC Comment hidden (noise)
Comment 12 ssmithg1 2019-11-11 09:33:45 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2021-11-11 04:14:59 UTC Comment hidden (noise)
Comment 14 ssmithg1 2021-11-18 13:40:06 UTC Comment hidden (obsolete)
Comment 15 Commit Notification 2023-05-29 15:53:42 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8783f5959c83a4de3b857af3e63d5f3e5d3afdf2

tdf#89288: Insert space between CJK and non-CJK text only

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 16 Commit Notification 2023-06-14 14:06:08 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/91b87ab5ed1d0c3eacf9bf295999bf1786beac34

tdf#89288: Add test

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.